computeHash static method
Implementation
static Uint8List computeHash(
Uint8List account, Uint8List previous, Uint8List rep, Uint8List balance, Uint8List link
) {
final Pointer<Uint8> hashP = calloc<Uint8>(32);
final Pointer<Uint8> preambleP = _bytesToPointer(NanoHelpers.hexToBytes("0000000000000000000000000000000000000000000000000000000000000006"));
final Pointer<Uint8> accountP = _bytesToPointer(account);
final Pointer<Uint8> previousP = _bytesToPointer(previous);
final Pointer<Uint8> repP = _bytesToPointer(rep);
final Pointer<Uint8> balanceP = _bytesToPointer(balance);
final Pointer<Uint8> linkP = _bytesToPointer(link);
hashFunc(hashP, preambleP, accountP, previousP, repP, balanceP, linkP);
calloc.free(preambleP); calloc.free(accountP); calloc.free(previousP); calloc.free(repP); calloc.free(balanceP); calloc.free(linkP);
return hashP.asTypedList(32);
}