bdk_chain::bitcoin::secp256k1

Trait ThirtyTwoByteHash

pub trait ThirtyTwoByteHash {
    // Required method
    fn into_32(self) -> [u8; 32];
}
๐Ÿ‘ŽDeprecated since 0.29.0: Please see v0.29.0 rust-secp256k1/CHANGELOG.md for suggestion
Expand description

Trait describing something that promises to be a 32-byte random number; in particular, it has negligible probability of being zero or overflowing the group order. Such objects may be converted to Messages without any error paths.

Required Methodsยง

fn into_32(self) -> [u8; 32]

๐Ÿ‘ŽDeprecated since 0.29.0: Please see v0.29.0 rust-secp256k1/CHANGELOG.md for suggestion

Converts the object into a 32-byte array

Implementorsยง