hash static method

BuBytes hash(
  1. List<int> data, [
  2. int digestLength = 32
])
override

Computes the Keccak hash of the provided data.

Implementation

static BuBytes hash(List<int> data, [int digestLength = 32]) {
  final h = Keccak(digestLength);
  h.update(data);
  final digest = h.digest();
  h.clean();
  return digest;
}