addrHashGenerate static method

Uint8List addrHashGenerate(
  1. Uint8List input
)

Generates an address hash from an input byte array. Performs a SHA3-512 hash followed by a RIPEMD160 hash. @param input The input byte array for hashing. @returns The calculated address hash as a byte array.

Implementation

static Uint8List addrHashGenerate(Uint8List input) {
  // First pass: SHA3-512
  final sha3Hash = MochimoHasher.hashWith('sha3-512', input);

  // Second pass: RIPEMD160
  return MochimoHasher.hashWith('ripemd160', sha3Hash);
}