public class HashService
extends java.lang.Object
| Constructor and Description |
|---|
HashService() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAccountHash(byte[] accountKey)
Create a 32byte hashed array from the provided byte array
|
java.lang.String |
getAccountHash(java.lang.String accountKey)
Get the blake2b hash
|
byte[] |
getHash(byte[] in)
Create a 32byte hashed array from the provided byte array
|
public java.lang.String getAccountHash(java.lang.String accountKey)
accountKey - string key used to generate the hashpublic byte[] getAccountHash(byte[] accountKey)
accountKey - the input bytespublic byte[] getHash(byte[] in)
in - the input bytes