hash static method

List<int> hash(
  1. List<int> data
)
override

Computes the SHA3/256 hash of the provided data.

Implementation

static List<int> hash(List<int> data) {
  final h = SHA3256();
  h.update(data);
  final digest = h.digest();
  h.clean();
  return digest;
}