Skip to main content

hash160

Function hash160 

Source
pub fn hash160(data: &[u8]) -> [u8; 20]
Expand description

Computes HASH160: RIPEMD-160 of SHA-256.

This is the standard Bitcoin address hash function, used in P2PKH to derive a 20-byte address from a public key.

hash160(data) = ripemd160(sha256(data))