public class HashService extends Object
| Constructor and Description |
|---|
HashService() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAccountHash(byte[] in)
Create a 32byte hashed array from the provided byte array
|
String |
getAccountHash(String accountKey)
Get the blake2b hash
|
byte[] |
getHash(byte[] in)
Create a 32byte hashed array from the provided byte array
|
public String getAccountHash(String accountKey) throws NoSuchAlgorithmException
accountKey - string key used to generate the hashNoSuchAlgorithmException - library errorpublic byte[] getAccountHash(byte[] in)
in - the input bytespublic byte[] getHash(byte[] in)
in - the input bytesCopyright © 2021. All rights reserved.