- hash160(payload, crypto?): Uint8Array
Parameters
payload: Uint8Array
crypto: {
ripemd160: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
};
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
};
} = ...
ripemd160: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
}
hash: ((input) => Uint8Array) & ((input) => Uint8Array)
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
}
hash: ((input) => Uint8Array) & ((input) => Uint8Array)
Returns Uint8Array
Hash the given payload with sha256, then hash the 32-byte result with ripemd160, returning a 20-byte hash.
This hash is used in both AddressType.p2pkh and AddressType.p2sh20 addresses.