/** * Compute an address from an encoded public key. * * @param pubBytes an encoded (uncompressed) public key * @return 20-byte address */ public static byte[] computeAddress(byte[] pubBytes) { return HashUtil.sha3omit12( Arrays.copyOfRange(pubBytes, 1, pubBytes.length)); }
public static byte[] calculateAddress(byte[] publicKey) { return HashUtil.sha3omit12( Arrays.copyOfRange(publicKey, 1, publicKey.length)); }
/** * Get the address as binary. * * @return address */ public byte[] getAddress() throws SignatureException { byte[] pubKey = this.getPubKey(); return HashUtil.sha3omit12( Arrays.copyOfRange(pubKey, 1, pubKey.length)); }
public byte[] getAddress() { byte[] pubBytes = this.getPubKey(); return HashUtil.sha3omit12( Arrays.copyOfRange(pubBytes, 1, pubBytes.length)); }
public static PeerId of(String ynodeUri) { return of(HashUtil.sha3omit12(ynodeUri.getBytes())); }
private BranchId(JsonObject branch) { this(HashUtil.sha3omit12(getRawBranch(branch))); }
txBody); byte[] chain = HashUtil.sha3omit12(txHeader.toBinary());