hashedKeyFor method

Uint8List hashedKeyFor(
  1. K1 key1,
  2. K2 key2
)

Implementation

Uint8List hashedKeyFor(K1 key1, K2 key2) {
  final Uint8List hash =
      Uint8List(32 + hasher1.size(key1) + hasher2.size(key2));
  _hashPrefixTo(key1, output: hash);

  final cursor = hash.offsetInBytes + 32 + hasher1.size(key1);
  hasher2.hashTo(key: key2, output: hash.buffer.asUint8List(cursor));
  return hash;
}