computeKeyHash static method
Implementation
static String computeKeyHash(Uint8List publicKey, String hint) {
Uint8List blake2bHash = Blake2bHash.hashWithDigestSize(160, publicKey);
String uintToString = String.fromCharCodes(blake2bHash);
String stringToHexString = hex.encode(uintToString.codeUnits);
String finalStringToDecode = hint + stringToHexString;
List<int> listOfHexDecodedInt = hex.decode(finalStringToDecode);
String publicKeyHash = bs58check.encode(listOfHexDecodedInt as Uint8List);
return publicKeyHash;
}