keccak function

Uint8List keccak(
  1. dynamic a, {
  2. int bits = 256,
})

Creates Keccak hash of the input

Implementation

Uint8List keccak(dynamic a, {int bits: 256}) {
  a = bytes.toBuffer(a);
  Digest sha3 = new Digest("SHA-3/${bits}");
  return sha3.process(a);
}