pub fn sha256(data: &[u8]) -> [u8; 32]
Computes the SHA-256 hash of the input data.
Returns a 32-byte digest. This is the fundamental hash primitive used throughout Bitcoin for transaction hashing, block hashing, and as a building block for hash160 and hash256.
hash160
hash256