hash static method

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

Computes the Keccack hash of the provided data.

Implementation

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