Module bitcoin::util::hash [−][src]
Hash functions
Utility functions related to hashing data, including merkleization
Structs
Hash32 |
A 32-bit hash obtained by truncating a real hash |
Hash48 |
A 48-bit hash obtained by truncating a real hash |
Hash64 |
A 64-bit hash obtained by truncating a real hash |
Hash160 |
A Bitcoin hash160, 20-bytes, computed from x as RIPEMD160(SHA256(x)) |
Ripemd160Hash |
A RIPEMD-160 hash |
Sha256dEncoder |
An object that allows serializing data into a sha256d |
Sha256dHash |
A Bitcoin hash, 32-bytes, computed from x as SHA256(SHA256(x)) |
Enums
HexError |
Hex deserialization error |
Traits
MerkleRoot |
Any collection of objects for which a merkle root makes sense to calculate |
Functions
bitcoin_merkle_root |
Calculates the merkle root of a list of txids hashes directly |