Skip to main content

sha256

Function sha256 

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

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.