hmacsha256Hash static method
Calculate the HMAC-SHA-256 hash of the input data using the provided key
Implementation
static BuBytes hmacsha256Hash(List<int> key, List<int> data) {
final hm = blockchainUtils.api.hash.hmacSha256(key);
try {
hm.update(data);
return hm.digest().asBytes;
} finally {
hm.clean();
}
}