hash_key_val function

Uint8List hash_key_val(
  1. dynamic key,
  2. dynamic val
)

@param {string} key @param {string|Buffer|BigInt} val @returns {Buffer}

Implementation

// ignore: non_constant_identifier_names
Uint8List hash_key_val(dynamic key, dynamic val) {
  return u8aConcat([hash_string(key.toString()), hash_val(val)]);
}