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}) {
  bytes = [...bytes, scheme];
  bytes = QuickCrypto.sha3256Hash(bytes);
  return bytes;
}