breez_sdk_liquid::bitcoin::util::key::secp256k1

Trait ThirtyTwoByteHash

pub trait ThirtyTwoByteHash {
    // Required method
    fn into_32(self) -> [u8; 32];
}
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]

Converts the object into a 32-byte array

Implementors§

§

impl ThirtyTwoByteHash for TapSighashHash

§

impl ThirtyTwoByteHash for breez_sdk_liquid::bitcoin::util::key::secp256k1::hashes::sha256::Hash

§

impl ThirtyTwoByteHash for breez_sdk_liquid::bitcoin::util::key::secp256k1::hashes::sha256d::Hash

§

impl<T> ThirtyTwoByteHash for breez_sdk_liquid::bitcoin::util::key::secp256k1::hashes::sha256t::Hash<T>
where T: Tag,