hashKeyBytes static method

List<int> hashKeyBytes({
  1. required List<int> bytes,
  2. required int scheme,
})

convert bytes (ED25519, Secp256k1 or multisig key data) to address with specify scheme

Implementation

static List<int> hashKeyBytes({
  required List<int> bytes,
  required int scheme,
}) {
  return QuickCrypto.blake2b256Hash([scheme, ...bytes]);
}