From c155cbf8b2d400dbaf807dd781b317fca5ca6b35 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 19 Jun 2024 16:21:19 +0000 Subject: [PATCH 1/5] hashes: use workaround to get constfns on tagged hashes with MSRV As you can see from the - lines in the API diff, there is no reduction in API surface (we just remove the T:Tag bound from the sha256t::Tag type, which is not strictly necessary but maybe we would prefer to keep). --- api/hashes/all-features.txt | 6 ++++-- api/hashes/alloc-only.txt | 6 ++++-- api/hashes/no-features.txt | 6 ++++-- hashes/src/sha256t.rs | 29 ++++++++++++++++++++++++----- 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/api/hashes/all-features.txt b/api/hashes/all-features.txt index 6b14979d1..8d6e86a63 100644 --- a/api/hashes/all-features.txt +++ b/api/hashes/all-features.txt @@ -5,7 +5,7 @@ #[repr(transparent)] pub struct bitcoin_hashes::sha1::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha256::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha256d::Hash(_) -#[repr(transparent)] pub struct bitcoin_hashes::sha256t::Hash(_, _) +#[repr(transparent)] pub struct bitcoin_hashes::sha256t::Hash(_, _) #[repr(transparent)] pub struct bitcoin_hashes::sha384::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha512::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha512_256::Hash(_) @@ -431,7 +431,6 @@ impl core::marker::StructuralPartialEq for bitcoin_hash impl std::io::Write for bitcoin_hashes::hmac::HmacEngine impl bitcoin_hashes::Hash for bitcoin_hashes::sha256t::Hash impl bitcoin_hashes::serde_macros::serde_details::SerdeHash for bitcoin_hashes::sha256t::Hash -impl bitcoin_hashes::sha256t::Hash impl core::borrow::Borrow<[u8]> for bitcoin_hashes::sha256t::Hash impl core::clone::Clone for bitcoin_hashes::sha256t::Hash impl core::cmp::Eq for bitcoin_hashes::sha256t::Hash @@ -458,6 +457,8 @@ impl core::cmp::PartialEq for bi impl core::cmp::PartialOrd for bitcoin_hashes::hmac::Hmac impl core::hash::Hash for bitcoin_hashes::hmac::Hmac impl core::marker::Copy for bitcoin_hashes::hmac::Hmac +impl bitcoin_hashes::sha256t::Hash where (T): bitcoin_hashes::sha256t::Tag +impl bitcoin_hashes::sha256t::Tag for (T) where T: bitcoin_hashes::sha256t::Tag impl core::marker::Freeze for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::hmac::Hmac where T: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Freeze @@ -578,6 +579,7 @@ pub const fn bitcoin_hashes::siphash24::HashEngine::new() -> bitcoin_hashes::sip pub const fn bitcoin_hashes::siphash24::HashEngine::with_keys(k0: u64, k1: u64) -> bitcoin_hashes::siphash24::HashEngine pub extern crate bitcoin_hashes::hex pub extern crate bitcoin_hashes::serde +pub fn (T)::engine() -> bitcoin_hashes::sha256::HashEngine pub fn bitcoin_hashes::FromSliceError::clone(&self) -> bitcoin_hashes::FromSliceError pub fn bitcoin_hashes::FromSliceError::eq(&self, other: &bitcoin_hashes::FromSliceError) -> bool pub fn bitcoin_hashes::FromSliceError::expected_length(&self) -> usize diff --git a/api/hashes/alloc-only.txt b/api/hashes/alloc-only.txt index f03fb2d6b..7ad1838d9 100644 --- a/api/hashes/alloc-only.txt +++ b/api/hashes/alloc-only.txt @@ -5,7 +5,7 @@ #[repr(transparent)] pub struct bitcoin_hashes::sha1::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha256::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha256d::Hash(_) -#[repr(transparent)] pub struct bitcoin_hashes::sha256t::Hash(_, _) +#[repr(transparent)] pub struct bitcoin_hashes::sha256t::Hash(_, _) #[repr(transparent)] pub struct bitcoin_hashes::sha384::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha512::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha512_256::Hash(_) @@ -373,7 +373,6 @@ impl core::fmt::Display for bitcoin_hashes::hmac::Hmac< impl core::fmt::LowerHex for bitcoin_hashes::hmac::Hmac impl core::marker::StructuralPartialEq for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::Hash for bitcoin_hashes::sha256t::Hash -impl bitcoin_hashes::sha256t::Hash impl core::borrow::Borrow<[u8]> for bitcoin_hashes::sha256t::Hash impl core::clone::Clone for bitcoin_hashes::sha256t::Hash impl core::cmp::Eq for bitcoin_hashes::sha256t::Hash @@ -398,6 +397,8 @@ impl core::cmp::PartialEq for bi impl core::cmp::PartialOrd for bitcoin_hashes::hmac::Hmac impl core::hash::Hash for bitcoin_hashes::hmac::Hmac impl core::marker::Copy for bitcoin_hashes::hmac::Hmac +impl bitcoin_hashes::sha256t::Hash where (T): bitcoin_hashes::sha256t::Tag +impl bitcoin_hashes::sha256t::Tag for (T) where T: bitcoin_hashes::sha256t::Tag impl core::marker::Freeze for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::hmac::Hmac where T: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Freeze @@ -505,6 +506,7 @@ pub const fn bitcoin_hashes::siphash24::Hash::to_byte_array(self) -> [u8; 8] pub const fn bitcoin_hashes::siphash24::HashEngine::new() -> bitcoin_hashes::siphash24::HashEngine pub const fn bitcoin_hashes::siphash24::HashEngine::with_keys(k0: u64, k1: u64) -> bitcoin_hashes::siphash24::HashEngine pub extern crate bitcoin_hashes::hex +pub fn (T)::engine() -> bitcoin_hashes::sha256::HashEngine pub fn bitcoin_hashes::FromSliceError::clone(&self) -> bitcoin_hashes::FromSliceError pub fn bitcoin_hashes::FromSliceError::eq(&self, other: &bitcoin_hashes::FromSliceError) -> bool pub fn bitcoin_hashes::FromSliceError::expected_length(&self) -> usize diff --git a/api/hashes/no-features.txt b/api/hashes/no-features.txt index 225243502..5afb2220b 100644 --- a/api/hashes/no-features.txt +++ b/api/hashes/no-features.txt @@ -5,7 +5,7 @@ #[repr(transparent)] pub struct bitcoin_hashes::sha1::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha256::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha256d::Hash(_) -#[repr(transparent)] pub struct bitcoin_hashes::sha256t::Hash(_, _) +#[repr(transparent)] pub struct bitcoin_hashes::sha256t::Hash(_, _) #[repr(transparent)] pub struct bitcoin_hashes::sha384::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha512::Hash(_) #[repr(transparent)] pub struct bitcoin_hashes::sha512_256::Hash(_) @@ -373,7 +373,6 @@ impl core::fmt::Display for bitcoin_hashes::hmac::Hmac< impl core::fmt::LowerHex for bitcoin_hashes::hmac::Hmac impl core::marker::StructuralPartialEq for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::Hash for bitcoin_hashes::sha256t::Hash -impl bitcoin_hashes::sha256t::Hash impl core::borrow::Borrow<[u8]> for bitcoin_hashes::sha256t::Hash impl core::clone::Clone for bitcoin_hashes::sha256t::Hash impl core::cmp::Eq for bitcoin_hashes::sha256t::Hash @@ -398,6 +397,8 @@ impl core::cmp::PartialEq for bi impl core::cmp::PartialOrd for bitcoin_hashes::hmac::Hmac impl core::hash::Hash for bitcoin_hashes::hmac::Hmac impl core::marker::Copy for bitcoin_hashes::hmac::Hmac +impl bitcoin_hashes::sha256t::Hash where (T): bitcoin_hashes::sha256t::Tag +impl bitcoin_hashes::sha256t::Tag for (T) where T: bitcoin_hashes::sha256t::Tag impl core::marker::Freeze for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::hmac::Hmac where T: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Freeze @@ -505,6 +506,7 @@ pub const fn bitcoin_hashes::siphash24::Hash::to_byte_array(self) -> [u8; 8] pub const fn bitcoin_hashes::siphash24::HashEngine::new() -> bitcoin_hashes::siphash24::HashEngine pub const fn bitcoin_hashes::siphash24::HashEngine::with_keys(k0: u64, k1: u64) -> bitcoin_hashes::siphash24::HashEngine pub extern crate bitcoin_hashes::hex +pub fn (T)::engine() -> bitcoin_hashes::sha256::HashEngine pub fn bitcoin_hashes::FromSliceError::clone(&self) -> bitcoin_hashes::FromSliceError pub fn bitcoin_hashes::FromSliceError::eq(&self, other: &bitcoin_hashes::FromSliceError) -> bool pub fn bitcoin_hashes::FromSliceError::expected_length(&self) -> usize diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index adbba8253..1d72da43f 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -19,7 +19,7 @@ pub trait Tag { /// Output of the SHA256t hash function. #[repr(transparent)] -pub struct Hash([u8; 32], PhantomData); +pub struct Hash([u8; 32], PhantomData); #[cfg(feature = "schemars")] impl schemars::JsonSchema for Hash { @@ -36,8 +36,24 @@ impl schemars::JsonSchema for Hash { } } -impl Hash { - fn internal_new(arr: [u8; 32]) -> Self { Hash(arr, Default::default()) } +// This impl, and the trait bound `(T,): Tag` below, are hacks to allow defining +// constfns on Hash for a generic T. This trick was discovered by +// https://github.com/rust-lang/rust/issues/90912 +// +// When we drop rustc 1.56.1 we will be able to remove this, which will be a +// technically breaking change but in practice probably fine to just drop. +impl Tag for (T,) +where + T: Tag, +{ + fn engine() -> sha256::HashEngine { T::engine() } +} + +impl Hash +where + (T,): Tag, +{ + fn internal_new(arr: [u8; 32]) -> Self { Hash(arr, PhantomData) } /// Zero cost conversion between a fixed length byte array shared reference and /// a shared reference to this Hash type. @@ -54,7 +70,7 @@ impl Hash { } /// Constructs a new engine. - pub fn engine() -> HashEngine { T::engine() } + pub fn engine() -> HashEngine { <(T,)>::engine() } /// Produces a hash from the current state of a given engine. pub fn from_engine(e: HashEngine) -> Hash { from_engine(e) } @@ -135,7 +151,10 @@ impl core::hash::Hash for Hash { crate::internal_macros::hash_trait_impls!(256, false, T: Tag); -fn from_engine(e: sha256::HashEngine) -> Hash { +fn from_engine(e: sha256::HashEngine) -> Hash +where + (T,): Tag, +{ Hash::from_byte_array(sha256::Hash::from_engine(e).to_byte_array()) } From 154e91af8c5ad81753bef3eea331d4b702600cb7 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 19 Jun 2024 16:21:32 +0000 Subject: [PATCH 2/5] hashes: constify a bunch of constructors --- hashes/src/sha256t.rs | 8 ++++---- hashes/src/util.rs | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index 1d72da43f..a315f7f32 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -53,7 +53,7 @@ impl Hash where (T,): Tag, { - fn internal_new(arr: [u8; 32]) -> Self { Hash(arr, PhantomData) } + const fn internal_new(arr: [u8; 32]) -> Self { Hash(arr, PhantomData) } /// Zero cost conversion between a fixed length byte array shared reference and /// a shared reference to this Hash type. @@ -110,13 +110,13 @@ where } /// Returns the underlying byte array. - pub fn to_byte_array(self) -> [u8; 32] { self.0 } + pub const fn to_byte_array(self) -> [u8; 32] { self.0 } /// Returns a reference to the underlying byte array. - pub fn as_byte_array(&self) -> &[u8; 32] { &self.0 } + pub const fn as_byte_array(&self) -> &[u8; 32] { &self.0 } /// Constructs a hash from the underlying byte array. - pub fn from_byte_array(bytes: [u8; 32]) -> Self { Self::internal_new(bytes) } + pub const fn from_byte_array(bytes: [u8; 32]) -> Self { Self::internal_new(bytes) } /// Returns an all zero hash. /// diff --git a/hashes/src/util.rs b/hashes/src/util.rs index f778f098f..fd9589e32 100644 --- a/hashes/src/util.rs +++ b/hashes/src/util.rs @@ -195,17 +195,17 @@ macro_rules! hash_newtype { #[allow(unused)] // Private wrapper types may not need all functions. impl $newtype { /// Creates this wrapper type from the inner hash type. - pub fn from_raw_hash(inner: $hash) -> $newtype { + pub const fn from_raw_hash(inner: $hash) -> $newtype { $newtype(inner) } /// Returns the inner hash (sha256, sh256d etc.). - pub fn to_raw_hash(self) -> $hash { + pub const fn to_raw_hash(self) -> $hash { self.0 } /// Returns a reference to the inner hash (sha256, sh256d etc.). - pub fn as_raw_hash(&self) -> &$hash { + pub const fn as_raw_hash(&self) -> &$hash { &self.0 } @@ -250,18 +250,18 @@ macro_rules! hash_newtype { } /// Returns the underlying byte array. - pub fn to_byte_array(self) -> <$hash as $crate::Hash>::Bytes { + pub const fn to_byte_array(self) -> <$hash as $crate::Hash>::Bytes { self.0.to_byte_array() } /// Returns a reference to the underlying byte array. - pub fn as_byte_array(&self) -> &<$hash as $crate::Hash>::Bytes { + pub const fn as_byte_array(&self) -> &<$hash as $crate::Hash>::Bytes { self.0.as_byte_array() } /// Constructs a hash from the underlying byte array. - pub fn from_byte_array(bytes: <$hash as $crate::Hash>::Bytes) -> Self { - $newtype(<$hash as $crate::Hash>::from_byte_array(bytes)) + pub const fn from_byte_array(bytes: <$hash as $crate::Hash>::Bytes) -> Self { + $newtype(<$hash>::from_byte_array(bytes)) } /// Returns an all zero hash. From 9f8797f4863a4e82d42aa170c750daaf57ad4ed9 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 19 Jun 2024 15:14:31 +0000 Subject: [PATCH 3/5] API changes for constification of hash constructors This is a noisy diff and probably can just be ignored vs reading the source diff in the previous commit. --- api/bitcoin/all-features.txt | 228 +++++++++++++++---------------- api/bitcoin/default-features.txt | 228 +++++++++++++++---------------- api/bitcoin/no-features.txt | 228 +++++++++++++++---------------- api/hashes/all-features.txt | 6 +- api/hashes/alloc-only.txt | 6 +- api/hashes/no-features.txt | 6 +- 6 files changed, 351 insertions(+), 351 deletions(-) diff --git a/api/bitcoin/all-features.txt b/api/bitcoin/all-features.txt index 35bdfcdb6..5c182afa6 100644 --- a/api/bitcoin/all-features.txt +++ b/api/bitcoin/all-features.txt @@ -6364,7 +6364,67 @@ pub const bitcoin::taproot::TapTweakHash::LEN: usize pub const bitcoin::taproot::TapTweakHash::N: usize pub const bitcoin::witness_program::MAX_SIZE: usize = 40usize pub const bitcoin::witness_program::MIN_SIZE: usize = 2usize +pub const fn bitcoin::LegacySighash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::LegacySighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::LegacySighash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::LegacySighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash +pub const fn bitcoin::LegacySighash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::LegacySighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::PubkeyHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::PubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::PubkeyHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::PubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::PubkeyHash +pub const fn bitcoin::PubkeyHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::PubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::SegwitV0Sighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::SegwitV0Sighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash +pub const fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::SegwitV0Sighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::TapSighash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::TapSighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::TapSighash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::TapSighash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash +pub const fn bitcoin::TapSighash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::TapSighash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::WPubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::WPubkeyHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::WPubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash +pub const fn bitcoin::WPubkeyHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::WPubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip158::FilterHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip158::FilterHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash +pub const fn bitcoin::bip158::FilterHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip158::FilterHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip158::FilterHeader::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip158::FilterHeader::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader +pub const fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip158::FilterHeader::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip32::XKeyIdentifier::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip32::XKeyIdentifier::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier +pub const fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip32::XKeyIdentifier::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::block::BlockHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::block::BlockHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash +pub const fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::block::BlockHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::block::Version::from_consensus(v: i32) -> Self +pub const fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::block::WitnessCommitment::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::block::WitnessCommitment::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment +pub const fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::block::WitnessCommitment::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::constants::ChainHash::using_genesis_block_const(network: bitcoin::network::Network) -> Self pub const fn bitcoin::blockdata::locktime::absolute::LockTime::is_block_height(&self) -> bool pub const fn bitcoin::blockdata::locktime::absolute::LockTime::is_block_time(&self) -> bool @@ -6380,17 +6440,71 @@ pub const fn bitcoin::blockdata::opcodes::Opcode::to_u8(self) -> u8 pub const fn bitcoin::blockdata::script::Builder::new() -> Self pub const fn bitcoin::blockdata::script::PushBytesBuf::new() -> Self pub const fn bitcoin::blockdata::script::ScriptBuf::new() -> Self +pub const fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::script::ScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::script::ScriptHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash +pub const fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::script::ScriptHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::script::WScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256::Hash +pub const fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::script::WScriptHash::from_raw_hash(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash +pub const fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::script::WScriptHash::to_raw_hash(self) -> bitcoin_hashes::sha256::Hash pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::from_slice(input_script_len: usize, witness_element_lengths: &[usize]) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::ground_p2pkh_compressed(bytes_to_grind: usize) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::ground_p2wpkh(bytes_to_grind: usize) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::weight(&self) -> bitcoin_units::weight::Weight pub const fn bitcoin::blockdata::transaction::OutPoint::new(txid: bitcoin::blockdata::transaction::Txid, vout: u32) -> bitcoin::blockdata::transaction::OutPoint +pub const fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::transaction::Txid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::transaction::Txid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid +pub const fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::transaction::Txid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::transaction::Wtxid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::transaction::Wtxid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid +pub const fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::transaction::Wtxid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::transaction::predict_weight_from_slices(inputs: &[bitcoin::blockdata::transaction::InputWeightPrediction], output_script_lens: &[usize]) -> bitcoin_units::weight::Weight pub const fn bitcoin::blockdata::witness::Witness::new() -> Self pub const fn bitcoin::consensus::encode::VarInt::size(&self) -> usize pub const fn bitcoin::consensus::params::Params::new(network: bitcoin::network::Network) -> Self +pub const fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::merkle_tree::TxMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::merkle_tree::TxMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode +pub const fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::merkle_tree::TxMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::network::Network::params(self) -> &'static bitcoin::consensus::params::Params pub const fn bitcoin::p2p::Magic::from_bytes(bytes: [u8; 4]) -> bitcoin::p2p::Magic +pub const fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapLeafHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapLeafHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash +pub const fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapLeafHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapNodeHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapNodeHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapNodeHash +pub const fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapNodeHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapTweakHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapTweakHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash +pub const fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapTweakHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub const fn bitcoin::transaction::predict_weight_from_slices(inputs: &[bitcoin::blockdata::transaction::InputWeightPrediction], output_script_lens: &[usize]) -> bitcoin_units::weight::Weight pub enum bitcoin::EcdsaSighashType pub enum bitcoin::NetworkKind @@ -6894,9 +7008,7 @@ pub fn bitcoin::EcdsaSighashType::hash<__H: core::hash::Hasher>(&self, state: &m pub fn bitcoin::EcdsaSighashType::serialize(&self, serializer: S) -> core::result::Result<::Ok, ::Error> where S: serde::ser::Serializer pub fn bitcoin::EcdsaSighashType::to_u32(self) -> u32 pub fn bitcoin::LegacySighash::all_zeros() -> Self -pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::LegacySighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8] pub fn bitcoin::LegacySighash::borrow(&self) -> &[u8] @@ -6907,11 +7019,9 @@ pub fn bitcoin::LegacySighash::engine() -> bool pub fn bitcoin::LegacySighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::LegacySighash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash -pub fn bitcoin::LegacySighash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::LegacySighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::LegacySighash::from_engine(e: ::Engine) -> Self pub fn bitcoin::LegacySighash::from_engine(e: ::Engine) -> bitcoin::LegacySighash -pub fn bitcoin::LegacySighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash pub fn bitcoin::LegacySighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::LegacySighash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::LegacySighash::from_str(s: &str) -> core::result::Result @@ -6921,9 +7031,7 @@ pub fn bitcoin::LegacySighash::hash_byte_chunks(byte_slices: I) -> Self wh pub fn bitcoin::LegacySighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::LegacySighash::partial_cmp(&self, other: &bitcoin::LegacySighash) -> core::option::Option pub fn bitcoin::LegacySighash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::LegacySighash::to_byte_array(self) -> ::Bytes pub fn bitcoin::LegacySighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::LegacySighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::MerkleBlock::clone(&self) -> bitcoin::MerkleBlock pub fn bitcoin::MerkleBlock::consensus_decode(r: &mut R) -> core::result::Result pub fn bitcoin::MerkleBlock::consensus_encode(&self, w: &mut W) -> core::result::Result @@ -6949,9 +7057,7 @@ pub fn bitcoin::PrivateKey::serialize(&self, s: S) -> pub fn bitcoin::PrivateKey::to_bytes(self) -> alloc::vec::Vec pub fn bitcoin::PrivateKey::to_wif(self) -> alloc::string::String pub fn bitcoin::PubkeyHash::all_zeros() -> Self -pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::PubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -6967,11 +7073,9 @@ pub fn bitcoin::PubkeyHash::from(key: &bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::PubkeyHash::from(key: &bitcoin::PublicKey) -> bitcoin::PubkeyHash pub fn bitcoin::PubkeyHash::from(key: bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::PubkeyHash::from(key: bitcoin::PublicKey) -> bitcoin::PubkeyHash -pub fn bitcoin::PubkeyHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::PubkeyHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::PubkeyHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::PubkeyHash::from_engine(e: ::Engine) -> bitcoin::PubkeyHash -pub fn bitcoin::PubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::PubkeyHash pub fn bitcoin::PubkeyHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::PubkeyHash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::PubkeyHash::from_str(s: &str) -> core::result::Result @@ -6981,9 +7085,7 @@ pub fn bitcoin::PubkeyHash::hash_byte_chunks(byte_slices: I) -> Self where pub fn bitcoin::PubkeyHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::PubkeyHash::partial_cmp(&self, other: &bitcoin::PubkeyHash) -> core::option::Option pub fn bitcoin::PubkeyHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::PubkeyHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::PubkeyHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::PubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::PublicKey::clone(&self) -> bitcoin::PublicKey pub fn bitcoin::PublicKey::cmp(&self, other: &bitcoin::PublicKey) -> core::cmp::Ordering pub fn bitcoin::PublicKey::deserialize>(d: D) -> core::result::Result::Error> @@ -7008,9 +7110,7 @@ pub fn bitcoin::PublicKey::verify(&self, se pub fn bitcoin::PublicKey::wpubkey_hash(&self) -> core::result::Result pub fn bitcoin::PublicKey::write_into(&self, writer: &mut W) -> core::result::Result<(), bitcoin_io::error::Error> pub fn bitcoin::SegwitV0Sighash::all_zeros() -> Self -pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::SegwitV0Sighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8] pub fn bitcoin::SegwitV0Sighash::borrow(&self) -> &[u8] @@ -7021,11 +7121,9 @@ pub fn bitcoin::SegwitV0Sighash::engine() -> bool pub fn bitcoin::SegwitV0Sighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::SegwitV0Sighash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash -pub fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::SegwitV0Sighash::from_engine(e: ::Engine) -> Self pub fn bitcoin::SegwitV0Sighash::from_engine(e: ::Engine) -> bitcoin::SegwitV0Sighash -pub fn bitcoin::SegwitV0Sighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash pub fn bitcoin::SegwitV0Sighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::SegwitV0Sighash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::SegwitV0Sighash::from_str(s: &str) -> core::result::Result @@ -7035,13 +7133,9 @@ pub fn bitcoin::SegwitV0Sighash::hash_byte_chunks(byte_slices: I) -> Self pub fn bitcoin::SegwitV0Sighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::SegwitV0Sighash::partial_cmp(&self, other: &bitcoin::SegwitV0Sighash) -> core::option::Option pub fn bitcoin::SegwitV0Sighash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> ::Bytes pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::SegwitV0Sighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::TapSighash::all_zeros() -> Self -pub fn bitcoin::TapSighash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::TapSighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::TapSighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8] pub fn bitcoin::TapSighash::borrow(&self) -> &[u8] @@ -7052,11 +7146,9 @@ pub fn bitcoin::TapSighash::engine() -> bool pub fn bitcoin::TapSighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::TapSighash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash -pub fn bitcoin::TapSighash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::TapSighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::TapSighash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::TapSighash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::TapSighash -pub fn bitcoin::TapSighash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash pub fn bitcoin::TapSighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::TapSighash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::TapSighash::from_str(s: &str) -> core::result::Result @@ -7066,9 +7158,7 @@ pub fn bitcoin::TapSighash::hash_byte_chunks(byte_slices: I) -> Self where pub fn bitcoin::TapSighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::TapSighash::partial_cmp(&self, other: &bitcoin::TapSighash) -> core::option::Option pub fn bitcoin::TapSighash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::TapSighash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::TapSighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::TapSighash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::TapSighashTag::clone(&self) -> bitcoin::TapSighashTag pub fn bitcoin::TapSighashTag::cmp(&self, other: &bitcoin::TapSighashTag) -> core::cmp::Ordering pub fn bitcoin::TapSighashTag::default() -> bitcoin::TapSighashTag @@ -7088,9 +7178,7 @@ pub fn bitcoin::TapSighashType::hash<__H: core::hash::Hasher>(&self, state: &mut pub fn bitcoin::TapSighashType::partial_cmp(&self, other: &bitcoin::TapSighashType) -> core::option::Option pub fn bitcoin::TapSighashType::serialize(&self, serializer: S) -> core::result::Result<::Ok, ::Error> where S: serde::ser::Serializer pub fn bitcoin::WPubkeyHash::all_zeros() -> Self -pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::WPubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -7104,11 +7192,9 @@ pub fn bitcoin::WPubkeyHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> cor pub fn bitcoin::WPubkeyHash::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash pub fn bitcoin::WPubkeyHash::from(key: &bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::WPubkeyHash::from(key: bitcoin::CompressedPublicKey) -> Self -pub fn bitcoin::WPubkeyHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::WPubkeyHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::WPubkeyHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::WPubkeyHash::from_engine(e: ::Engine) -> bitcoin::WPubkeyHash -pub fn bitcoin::WPubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash pub fn bitcoin::WPubkeyHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::WPubkeyHash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::WPubkeyHash::from_str(s: &str) -> core::result::Result @@ -7118,9 +7204,7 @@ pub fn bitcoin::WPubkeyHash::hash_byte_chunks(byte_slices: I) -> Self wher pub fn bitcoin::WPubkeyHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::WPubkeyHash::partial_cmp(&self, other: &bitcoin::WPubkeyHash) -> core::option::Option pub fn bitcoin::WPubkeyHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::WPubkeyHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::WPubkeyHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::WPubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::address::Address::address_type(&self) -> core::option::Option pub fn bitcoin::address::Address::fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::address::Address::from_script(script: &bitcoin::blockdata::script::Script, params: impl core::convert::AsRef) -> core::result::Result @@ -7343,9 +7427,7 @@ pub fn bitcoin::bip158::Error::from(io: bitcoin_io::error::Error) -> Self pub fn bitcoin::bip158::Error::from(never: core::convert::Infallible) -> Self pub fn bitcoin::bip158::Error::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)> pub fn bitcoin::bip158::FilterHash::all_zeros() -> Self -pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip158::FilterHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8] pub fn bitcoin::bip158::FilterHash::borrow(&self) -> &[u8] @@ -7359,11 +7441,9 @@ pub fn bitcoin::bip158::FilterHash::eq(&self, other: &bitcoin::bip158::FilterHas pub fn bitcoin::bip158::FilterHash::filter_header(&self, previous_filter_header: &bitcoin::bip158::FilterHeader) -> bitcoin::bip158::FilterHeader pub fn bitcoin::bip158::FilterHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip158::FilterHash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash -pub fn bitcoin::bip158::FilterHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip158::FilterHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip158::FilterHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip158::FilterHash::from_engine(e: ::Engine) -> bitcoin::bip158::FilterHash -pub fn bitcoin::bip158::FilterHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash pub fn bitcoin::bip158::FilterHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHash::from_str(s: &str) -> core::result::Result @@ -7373,13 +7453,9 @@ pub fn bitcoin::bip158::FilterHash::hash_byte_chunks(byte_slices: I) -> Se pub fn bitcoin::bip158::FilterHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHash::partial_cmp(&self, other: &bitcoin::bip158::FilterHash) -> core::option::Option pub fn bitcoin::bip158::FilterHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHeader::all_zeros() -> Self -pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip158::FilterHeader::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8] pub fn bitcoin::bip158::FilterHeader::borrow(&self) -> &[u8] @@ -7392,11 +7468,9 @@ pub fn bitcoin::bip158::FilterHeader::engine() -> bool pub fn bitcoin::bip158::FilterHeader::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip158::FilterHeader::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader -pub fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip158::FilterHeader::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip158::FilterHeader::from_engine(e: ::Engine) -> bitcoin::bip158::FilterHeader -pub fn bitcoin::bip158::FilterHeader::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader pub fn bitcoin::bip158::FilterHeader::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHeader::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHeader::from_str(s: &str) -> core::result::Result @@ -7406,9 +7480,7 @@ pub fn bitcoin::bip158::FilterHeader::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin::bip158::FilterHeader::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHeader::partial_cmp(&self, other: &bitcoin::bip158::FilterHeader) -> core::option::Option pub fn bitcoin::bip158::FilterHeader::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHeader::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::GcsFilterReader::match_all(&self, reader: &mut R, query: I) -> core::result::Result where I: core::iter::traits::iterator::Iterator, ::Item: core::borrow::Borrow<[u8]>, R: bitcoin_io::BufRead + core::marker::Sized pub fn bitcoin::bip158::GcsFilterReader::match_any(&self, reader: &mut R, query: I) -> core::result::Result where I: core::iter::traits::iterator::Iterator, ::Item: core::borrow::Borrow<[u8]>, R: bitcoin_io::BufRead + core::marker::Sized pub fn bitcoin::bip158::GcsFilterReader::new(k0: u64, k1: u64, m: u64, p: u8) -> bitcoin::bip158::GcsFilterReader @@ -7534,9 +7606,7 @@ pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::eq(&self, other: &bitcoi pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::invalid_base58_payload_length(&self) -> usize pub fn bitcoin::bip32::XKeyIdentifier::all_zeros() -> Self -pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip32::XKeyIdentifier::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8; 20] pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8] pub fn bitcoin::bip32::XKeyIdentifier::borrow(&self) -> &[u8] @@ -7549,11 +7619,9 @@ pub fn bitcoin::bip32::XKeyIdentifier::fmt(&self, f: &mut core::fmt::Formatter<' pub fn bitcoin::bip32::XKeyIdentifier::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from(key: &bitcoin::bip32::Xpub) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from(key: bitcoin::bip32::Xpub) -> bitcoin::bip32::XKeyIdentifier -pub fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_engine(e: ::Engine) -> bitcoin::bip32::XKeyIdentifier -pub fn bitcoin::bip32::XKeyIdentifier::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip32::XKeyIdentifier::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip32::XKeyIdentifier::from_str(s: &str) -> core::result::Result @@ -7563,9 +7631,7 @@ pub fn bitcoin::bip32::XKeyIdentifier::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin::bip32::XKeyIdentifier::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip32::XKeyIdentifier::partial_cmp(&self, other: &bitcoin::bip32::XKeyIdentifier) -> core::option::Option pub fn bitcoin::bip32::XKeyIdentifier::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip32::XKeyIdentifier::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::bip32::Xpriv::clone(&self) -> bitcoin::bip32::Xpriv pub fn bitcoin::bip32::Xpriv::decode(data: &[u8]) -> core::result::Result pub fn bitcoin::bip32::Xpriv::derive_priv>(&self, secp: &secp256k1::Secp256k1, path: &P) -> bitcoin::bip32::Xpriv @@ -7626,9 +7692,7 @@ pub fn bitcoin::blockdata::block::Block::total_size(&self) -> usize pub fn bitcoin::blockdata::block::Block::weight(&self) -> bitcoin_units::weight::Weight pub fn bitcoin::blockdata::block::Block::witness_root(&self) -> core::option::Option pub fn bitcoin::blockdata::block::BlockHash::all_zeros() -> Self -pub fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::block::BlockHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::BlockHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::BlockHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::block::BlockHash::borrow(&self) -> &[u8] @@ -7645,11 +7709,9 @@ pub fn bitcoin::blockdata::block::BlockHash::from(block: bitcoin::blockdata::blo pub fn bitcoin::blockdata::block::BlockHash::from(header: &bitcoin::blockdata::block::Header) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from(header: bitcoin::blockdata::block::Header) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash -pub fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_engine(e: ::Engine) -> bitcoin::blockdata::block::BlockHash -pub fn bitcoin::blockdata::block::BlockHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::BlockHash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::BlockHash::from_str(s: &str) -> core::result::Result @@ -7659,9 +7721,7 @@ pub fn bitcoin::blockdata::block::BlockHash::hash_byte_chunks(byte_slices: pub fn bitcoin::blockdata::block::BlockHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::block::BlockHash::partial_cmp(&self, other: &bitcoin::blockdata::block::BlockHash) -> core::option::Option pub fn bitcoin::blockdata::block::BlockHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::block::BlockHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::Header::block_hash(&self) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::Header::clone(&self) -> bitcoin::blockdata::block::Header pub fn bitcoin::blockdata::block::Header::cmp(&self, other: &bitcoin::blockdata::block::Header) -> core::cmp::Ordering @@ -7698,9 +7758,7 @@ pub fn bitcoin::blockdata::block::Version::partial_cmp(&self, other: &bitcoin::b pub fn bitcoin::blockdata::block::Version::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde::ser::Serializer>::Ok, <__S as serde::ser::Serializer>::Error> where __S: serde::ser::Serializer pub fn bitcoin::blockdata::block::Version::to_consensus(self) -> i32 pub fn bitcoin::blockdata::block::WitnessCommitment::all_zeros() -> Self -pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::block::WitnessCommitment::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::block::WitnessCommitment::borrow(&self) -> &[u8] @@ -7711,11 +7769,9 @@ pub fn bitcoin::blockdata::block::WitnessCommitment::engine() -> bool pub fn bitcoin::blockdata::block::WitnessCommitment::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment -pub fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_engine(e: ::Engine) -> bitcoin::blockdata::block::WitnessCommitment -pub fn bitcoin::blockdata::block::WitnessCommitment::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment pub fn bitcoin::blockdata::block::WitnessCommitment::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from_str(s: &str) -> core::result::Result @@ -7725,9 +7781,7 @@ pub fn bitcoin::blockdata::block::WitnessCommitment::hash_byte_chunks(byte pub fn bitcoin::blockdata::block::WitnessCommitment::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::block::WitnessCommitment::partial_cmp(&self, other: &bitcoin::blockdata::block::WitnessCommitment) -> core::option::Option pub fn bitcoin::blockdata::block::WitnessCommitment::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::block::WitnessCommitment::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::constants::ChainHash::as_byte_array(&self) -> &[u8; 32] pub fn bitcoin::blockdata::constants::ChainHash::as_bytes(&self) -> &[u8] pub fn bitcoin::blockdata::constants::ChainHash::as_mut(&mut self) -> &mut [u8; 32] @@ -8213,9 +8267,7 @@ pub fn bitcoin::blockdata::script::ScriptBuf::scan_and_push_verify(&mut self) pub fn bitcoin::blockdata::script::ScriptBuf::serialize(&self, serializer: S) -> core::result::Result<::Ok, ::Error> where S: serde::ser::Serializer pub fn bitcoin::blockdata::script::ScriptBuf::with_capacity(capacity: usize) -> Self pub fn bitcoin::blockdata::script::ScriptHash::all_zeros() -> Self -pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::script::ScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -8227,11 +8279,9 @@ pub fn bitcoin::blockdata::script::ScriptHash::engine() -> bool pub fn bitcoin::blockdata::script::ScriptHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::script::ScriptHash::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash -pub fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_engine(e: ::Engine) -> bitcoin::blockdata::script::ScriptHash -pub fn bitcoin::blockdata::script::ScriptHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash pub fn bitcoin::blockdata::script::ScriptHash::from_script(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::from_script_unchecked(script: &bitcoin::blockdata::script::Script) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_slice(sl: &[u8]) -> core::result::Result @@ -8243,16 +8293,12 @@ pub fn bitcoin::blockdata::script::ScriptHash::hash_byte_chunks(byte_slice pub fn bitcoin::blockdata::script::ScriptHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::script::ScriptHash::partial_cmp(&self, other: &bitcoin::blockdata::script::ScriptHash) -> core::option::Option pub fn bitcoin::blockdata::script::ScriptHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::script::ScriptHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::all_zeros() -> Self -pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::script::WScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256::Hash pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -8264,11 +8310,9 @@ pub fn bitcoin::blockdata::script::WScriptHash::engine() -> bool pub fn bitcoin::blockdata::script::WScriptHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::script::WScriptHash::from(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash -pub fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_engine(e: ::Engine) -> bitcoin::blockdata::script::WScriptHash -pub fn bitcoin::blockdata::script::WScriptHash::from_raw_hash(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash pub fn bitcoin::blockdata::script::WScriptHash::from_script(witness_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::from_script_unchecked(script: &bitcoin::blockdata::script::Script) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_slice(sl: &[u8]) -> core::result::Result @@ -8280,9 +8324,7 @@ pub fn bitcoin::blockdata::script::WScriptHash::hash_byte_chunks(byte_slic pub fn bitcoin::blockdata::script::WScriptHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::script::WScriptHash::partial_cmp(&self, other: &bitcoin::blockdata::script::WScriptHash) -> core::option::Option pub fn bitcoin::blockdata::script::WScriptHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::script::WScriptHash::to_raw_hash(self) -> bitcoin_hashes::sha256::Hash pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result @@ -8474,9 +8516,7 @@ pub fn bitcoin::blockdata::transaction::TxOut::serialize<__S>(&self, __serialize pub fn bitcoin::blockdata::transaction::TxOut::size(&self) -> usize pub fn bitcoin::blockdata::transaction::TxOut::weight(&self) -> bitcoin_units::weight::Weight pub fn bitcoin::blockdata::transaction::Txid::all_zeros() -> Self -pub fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::transaction::Txid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Txid::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::transaction::Txid::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::transaction::Txid::borrow(&self) -> &[u8] @@ -8491,11 +8531,9 @@ pub fn bitcoin::blockdata::transaction::Txid::fmt(&self, f: &mut core::fmt::Form pub fn bitcoin::blockdata::transaction::Txid::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from(tx: &bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from(tx: bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Txid -pub fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_engine(e: ::Engine) -> bitcoin::blockdata::transaction::Txid -pub fn bitcoin::blockdata::transaction::Txid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Txid::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Txid::from_str(s: &str) -> core::result::Result @@ -8505,9 +8543,7 @@ pub fn bitcoin::blockdata::transaction::Txid::hash_byte_chunks(byte_slices pub fn bitcoin::blockdata::transaction::Txid::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::transaction::Txid::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Txid) -> core::option::Option pub fn bitcoin::blockdata::transaction::Txid::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::transaction::Txid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Version::clone(&self) -> bitcoin::blockdata::transaction::Version pub fn bitcoin::blockdata::transaction::Version::cmp(&self, other: &bitcoin::blockdata::transaction::Version) -> core::cmp::Ordering pub fn bitcoin::blockdata::transaction::Version::consensus_decode(r: &mut R) -> core::result::Result @@ -8521,9 +8557,7 @@ pub fn bitcoin::blockdata::transaction::Version::non_standard(version: i32) -> b pub fn bitcoin::blockdata::transaction::Version::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Version) -> core::option::Option pub fn bitcoin::blockdata::transaction::Version::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde::ser::Serializer>::Ok, <__S as serde::ser::Serializer>::Error> where __S: serde::ser::Serializer pub fn bitcoin::blockdata::transaction::Wtxid::all_zeros() -> Self -pub fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::transaction::Wtxid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Wtxid::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::transaction::Wtxid::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::transaction::Wtxid::borrow(&self) -> &[u8] @@ -8538,11 +8572,9 @@ pub fn bitcoin::blockdata::transaction::Wtxid::fmt(&self, f: &mut core::fmt::For pub fn bitcoin::blockdata::transaction::Wtxid::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from(tx: &bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from(tx: bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Wtxid -pub fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_engine(e: ::Engine) -> bitcoin::blockdata::transaction::Wtxid -pub fn bitcoin::blockdata::transaction::Wtxid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Wtxid::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Wtxid::from_str(s: &str) -> core::result::Result @@ -8552,9 +8584,7 @@ pub fn bitcoin::blockdata::transaction::Wtxid::hash_byte_chunks(byte_slice pub fn bitcoin::blockdata::transaction::Wtxid::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::transaction::Wtxid::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Wtxid) -> core::option::Option pub fn bitcoin::blockdata::transaction::Wtxid::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::transaction::Wtxid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::effective_value(fee_rate: bitcoin_units::fee_rate::FeeRate, satisfaction_weight: bitcoin_units::weight::Weight, value: bitcoin_units::amount::Amount) -> core::option::Option pub fn bitcoin::blockdata::transaction::predict_weight(inputs: I, output_script_lens: O) -> bitcoin_units::weight::Weight where I: core::iter::traits::collect::IntoIterator, O: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::witness::Iter<'a>::next(&mut self) -> core::option::Option @@ -8851,9 +8881,7 @@ pub fn bitcoin::merkle_tree::PartialMerkleTree::from_txids(txids: &[bitcoin::blo pub fn bitcoin::merkle_tree::PartialMerkleTree::hashes(&self) -> &alloc::vec::Vec pub fn bitcoin::merkle_tree::PartialMerkleTree::num_transactions(&self) -> u32 pub fn bitcoin::merkle_tree::TxMerkleNode::all_zeros() -> Self -pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::merkle_tree::TxMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8] pub fn bitcoin::merkle_tree::TxMerkleNode::borrow(&self) -> &[u8] @@ -8867,12 +8895,10 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::engine() -> bool pub fn bitcoin::merkle_tree::TxMerkleNode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode -pub fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_engine(e: ::Engine) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_engine(e: ::Engine) -> bitcoin::merkle_tree::TxMerkleNode pub fn bitcoin::merkle_tree::TxMerkleNode::from_leaf(leaf: Self::Leaf) -> Self -pub fn bitcoin::merkle_tree::TxMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode pub fn bitcoin::merkle_tree::TxMerkleNode::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from_str(s: &str) -> core::result::Result @@ -8882,13 +8908,9 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::hash_byte_chunks(byte_slices: I pub fn bitcoin::merkle_tree::TxMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::TxMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::TxMerkleNode) -> core::option::Option pub fn bitcoin::merkle_tree::TxMerkleNode::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> ::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::TxMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::WitnessMerkleNode::all_zeros() -> Self -pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8] pub fn bitcoin::merkle_tree::WitnessMerkleNode::borrow(&self) -> &[u8] @@ -8902,12 +8924,10 @@ pub fn bitcoin::merkle_tree::WitnessMerkleNode::engine() -> bool pub fn bitcoin::merkle_tree::WitnessMerkleNode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode -pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_engine(e: ::Engine) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_engine(e: ::Engine) -> bitcoin::merkle_tree::WitnessMerkleNode pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_leaf(leaf: Self::Leaf) -> Self -pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_str(s: &str) -> core::result::Result @@ -8917,9 +8937,7 @@ pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash_byte_chunks(byte_slic pub fn bitcoin::merkle_tree::WitnessMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::WitnessMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::WitnessMerkleNode) -> core::option::Option pub fn bitcoin::merkle_tree::WitnessMerkleNode::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> ::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::network::Network::as_ref(&self) -> &bitcoin::consensus::params::Params pub fn bitcoin::network::Network::chain_hash(self) -> bitcoin::blockdata::constants::ChainHash pub fn bitcoin::network::Network::clone(&self) -> bitcoin::network::Network @@ -9627,9 +9645,7 @@ pub fn bitcoin::taproot::TapLeaf::hash<__H: core::hash::Hasher>(&self, state: &m pub fn bitcoin::taproot::TapLeaf::partial_cmp(&self, other: &bitcoin::taproot::TapLeaf) -> core::option::Option pub fn bitcoin::taproot::TapLeaf::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde::ser::Serializer>::Ok, <__S as serde::ser::Serializer>::Error> where __S: serde::ser::Serializer pub fn bitcoin::taproot::TapLeafHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapLeafHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapLeafHash::borrow(&self) -> &[u8] @@ -9643,11 +9659,9 @@ pub fn bitcoin::taproot::TapLeafHash::eq(&self, other: &bitcoin::taproot::TapLea pub fn bitcoin::taproot::TapLeafHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::taproot::TapLeafHash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from(script_path: bitcoin::sighash::ScriptPath<'s>) -> bitcoin::taproot::TapLeafHash -pub fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapLeafHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapLeafHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapLeafHash -pub fn bitcoin::taproot::TapLeafHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from_script(script: &bitcoin::blockdata::script::Script, ver: bitcoin::taproot::LeafVersion) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapLeafHash::from_slice_delegated(sl: &[u8]) -> core::result::Result @@ -9658,9 +9672,7 @@ pub fn bitcoin::taproot::TapLeafHash::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin::taproot::TapLeafHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapLeafHash::partial_cmp(&self, other: &bitcoin::taproot::TapLeafHash) -> core::option::Option pub fn bitcoin::taproot::TapLeafHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapLeafHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapLeafTag::clone(&self) -> bitcoin::taproot::TapLeafTag pub fn bitcoin::taproot::TapLeafTag::cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::cmp::Ordering pub fn bitcoin::taproot::TapLeafTag::default() -> bitcoin::taproot::TapLeafTag @@ -9669,9 +9681,7 @@ pub fn bitcoin::taproot::TapLeafTag::eq(&self, other: &bitcoin::taproot::TapLeaf pub fn bitcoin::taproot::TapLeafTag::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeafTag::partial_cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::option::Option pub fn bitcoin::taproot::TapNodeHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapNodeHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapNodeHash::assume_hidden(hash: [u8; 32]) -> bitcoin::taproot::TapNodeHash @@ -9686,12 +9696,10 @@ pub fn bitcoin::taproot::TapNodeHash::from(inner: bitcoin_hashes::sha256t::Hash< pub fn bitcoin::taproot::TapNodeHash::from(leaf: &bitcoin::taproot::LeafNode) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from(leaf: bitcoin::taproot::LeafNode) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from(leaf: bitcoin::taproot::TapLeafHash) -> bitcoin::taproot::TapNodeHash -pub fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapNodeHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapNodeHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_node_hashes(a: bitcoin::taproot::TapNodeHash, b: bitcoin::taproot::TapNodeHash) -> bitcoin::taproot::TapNodeHash -pub fn bitcoin::taproot::TapNodeHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_script(script: &bitcoin::blockdata::script::Script, ver: bitcoin::taproot::LeafVersion) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapNodeHash::from_slice_delegated(sl: &[u8]) -> core::result::Result @@ -9702,9 +9710,7 @@ pub fn bitcoin::taproot::TapNodeHash::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin::taproot::TapNodeHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapNodeHash::partial_cmp(&self, other: &bitcoin::taproot::TapNodeHash) -> core::option::Option pub fn bitcoin::taproot::TapNodeHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapNodeHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTree::clone(&self) -> bitcoin::taproot::TapTree pub fn bitcoin::taproot::TapTree::deserialize<__D>(__deserializer: __D) -> core::result::Result::Error> where __D: serde::de::Deserializer<'de> pub fn bitcoin::taproot::TapTree::eq(&self, other: &bitcoin::taproot::TapTree) -> bool @@ -9718,9 +9724,7 @@ pub fn bitcoin::taproot::TapTree::serialize<__S>(&self, __serializer: __S) -> co pub fn bitcoin::taproot::TapTree::try_from(builder: bitcoin::taproot::TaprootBuilder) -> core::result::Result pub fn bitcoin::taproot::TapTree::try_from(node_info: bitcoin::taproot::NodeInfo) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapTweakHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapTweakHash::borrow(&self) -> &[u8] @@ -9733,12 +9737,10 @@ pub fn bitcoin::taproot::TapTweakHash::fmt(&self, f: &mut core::fmt::Formatter<' pub fn bitcoin::taproot::TapTweakHash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from(spend_info: &bitcoin::taproot::TaprootSpendInfo) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from(spend_info: bitcoin::taproot::TaprootSpendInfo) -> bitcoin::taproot::TapTweakHash -pub fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapTweakHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapTweakHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from_key_and_tweak(internal_key: bitcoin::key::UntweakedPublicKey, merkle_root: core::option::Option) -> bitcoin::taproot::TapTweakHash -pub fn bitcoin::taproot::TapTweakHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::from_str(s: &str) -> core::result::Result @@ -9748,9 +9750,7 @@ pub fn bitcoin::taproot::TapTweakHash::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin::taproot::TapTweakHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapTweakHash::partial_cmp(&self, other: &bitcoin::taproot::TapTweakHash) -> core::option::Option pub fn bitcoin::taproot::TapTweakHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapTweakHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTweakHash::to_scalar(self) -> secp256k1::scalar::Scalar pub fn bitcoin::taproot::TapTweakTag::clone(&self) -> bitcoin::taproot::TapTweakTag pub fn bitcoin::taproot::TapTweakTag::cmp(&self, other: &bitcoin::taproot::TapTweakTag) -> core::cmp::Ordering diff --git a/api/bitcoin/default-features.txt b/api/bitcoin/default-features.txt index 244a5c7b3..e68e59436 100644 --- a/api/bitcoin/default-features.txt +++ b/api/bitcoin/default-features.txt @@ -6063,7 +6063,67 @@ pub const bitcoin::taproot::TapTweakHash::DISPLAY_BACKWARD: bool pub const bitcoin::taproot::TapTweakHash::LEN: usize pub const bitcoin::witness_program::MAX_SIZE: usize = 40usize pub const bitcoin::witness_program::MIN_SIZE: usize = 2usize +pub const fn bitcoin::LegacySighash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::LegacySighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::LegacySighash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::LegacySighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash +pub const fn bitcoin::LegacySighash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::LegacySighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::PubkeyHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::PubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::PubkeyHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::PubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::PubkeyHash +pub const fn bitcoin::PubkeyHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::PubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::SegwitV0Sighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::SegwitV0Sighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash +pub const fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::SegwitV0Sighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::TapSighash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::TapSighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::TapSighash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::TapSighash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash +pub const fn bitcoin::TapSighash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::TapSighash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::WPubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::WPubkeyHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::WPubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash +pub const fn bitcoin::WPubkeyHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::WPubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip158::FilterHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip158::FilterHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash +pub const fn bitcoin::bip158::FilterHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip158::FilterHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip158::FilterHeader::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip158::FilterHeader::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader +pub const fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip158::FilterHeader::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip32::XKeyIdentifier::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip32::XKeyIdentifier::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier +pub const fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip32::XKeyIdentifier::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::block::BlockHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::block::BlockHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash +pub const fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::block::BlockHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::block::Version::from_consensus(v: i32) -> Self +pub const fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::block::WitnessCommitment::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::block::WitnessCommitment::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment +pub const fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::block::WitnessCommitment::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::constants::ChainHash::using_genesis_block_const(network: bitcoin::network::Network) -> Self pub const fn bitcoin::blockdata::locktime::absolute::LockTime::is_block_height(&self) -> bool pub const fn bitcoin::blockdata::locktime::absolute::LockTime::is_block_time(&self) -> bool @@ -6079,17 +6139,71 @@ pub const fn bitcoin::blockdata::opcodes::Opcode::to_u8(self) -> u8 pub const fn bitcoin::blockdata::script::Builder::new() -> Self pub const fn bitcoin::blockdata::script::PushBytesBuf::new() -> Self pub const fn bitcoin::blockdata::script::ScriptBuf::new() -> Self +pub const fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::script::ScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::script::ScriptHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash +pub const fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::script::ScriptHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::script::WScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256::Hash +pub const fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::script::WScriptHash::from_raw_hash(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash +pub const fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::script::WScriptHash::to_raw_hash(self) -> bitcoin_hashes::sha256::Hash pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::from_slice(input_script_len: usize, witness_element_lengths: &[usize]) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::ground_p2pkh_compressed(bytes_to_grind: usize) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::ground_p2wpkh(bytes_to_grind: usize) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::weight(&self) -> bitcoin_units::weight::Weight pub const fn bitcoin::blockdata::transaction::OutPoint::new(txid: bitcoin::blockdata::transaction::Txid, vout: u32) -> bitcoin::blockdata::transaction::OutPoint +pub const fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::transaction::Txid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::transaction::Txid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid +pub const fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::transaction::Txid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::transaction::Wtxid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::transaction::Wtxid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid +pub const fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::transaction::Wtxid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::transaction::predict_weight_from_slices(inputs: &[bitcoin::blockdata::transaction::InputWeightPrediction], output_script_lens: &[usize]) -> bitcoin_units::weight::Weight pub const fn bitcoin::blockdata::witness::Witness::new() -> Self pub const fn bitcoin::consensus::encode::VarInt::size(&self) -> usize pub const fn bitcoin::consensus::params::Params::new(network: bitcoin::network::Network) -> Self +pub const fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::merkle_tree::TxMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::merkle_tree::TxMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode +pub const fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::merkle_tree::TxMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::network::Network::params(self) -> &'static bitcoin::consensus::params::Params pub const fn bitcoin::p2p::Magic::from_bytes(bytes: [u8; 4]) -> bitcoin::p2p::Magic +pub const fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapLeafHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapLeafHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash +pub const fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapLeafHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapNodeHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapNodeHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapNodeHash +pub const fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapNodeHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapTweakHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapTweakHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash +pub const fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapTweakHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub const fn bitcoin::transaction::predict_weight_from_slices(inputs: &[bitcoin::blockdata::transaction::InputWeightPrediction], output_script_lens: &[usize]) -> bitcoin_units::weight::Weight pub enum bitcoin::EcdsaSighashType pub enum bitcoin::NetworkKind @@ -6584,9 +6698,7 @@ pub fn bitcoin::EcdsaSighashType::from_str(s: &str) -> core::result::Result(&self, state: &mut __H) pub fn bitcoin::EcdsaSighashType::to_u32(self) -> u32 pub fn bitcoin::LegacySighash::all_zeros() -> Self -pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::LegacySighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8] pub fn bitcoin::LegacySighash::borrow(&self) -> &[u8] @@ -6596,11 +6708,9 @@ pub fn bitcoin::LegacySighash::engine() -> bool pub fn bitcoin::LegacySighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::LegacySighash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash -pub fn bitcoin::LegacySighash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::LegacySighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::LegacySighash::from_engine(e: ::Engine) -> Self pub fn bitcoin::LegacySighash::from_engine(e: ::Engine) -> bitcoin::LegacySighash -pub fn bitcoin::LegacySighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash pub fn bitcoin::LegacySighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::LegacySighash::from_str(s: &str) -> core::result::Result pub fn bitcoin::LegacySighash::hash(data: &[u8]) -> Self @@ -6608,9 +6718,7 @@ pub fn bitcoin::LegacySighash::hash<__H: core::hash::Hasher>(&self, state: &mut pub fn bitcoin::LegacySighash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::LegacySighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::LegacySighash::partial_cmp(&self, other: &bitcoin::LegacySighash) -> core::option::Option -pub fn bitcoin::LegacySighash::to_byte_array(self) -> ::Bytes pub fn bitcoin::LegacySighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::LegacySighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::MerkleBlock::clone(&self) -> bitcoin::MerkleBlock pub fn bitcoin::MerkleBlock::consensus_decode(r: &mut R) -> core::result::Result pub fn bitcoin::MerkleBlock::consensus_encode(&self, w: &mut W) -> core::result::Result @@ -6633,9 +6741,7 @@ pub fn bitcoin::PrivateKey::public_key(&self, se pub fn bitcoin::PrivateKey::to_bytes(self) -> alloc::vec::Vec pub fn bitcoin::PrivateKey::to_wif(self) -> alloc::string::String pub fn bitcoin::PubkeyHash::all_zeros() -> Self -pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::PubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -6650,11 +6756,9 @@ pub fn bitcoin::PubkeyHash::from(key: &bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::PubkeyHash::from(key: &bitcoin::PublicKey) -> bitcoin::PubkeyHash pub fn bitcoin::PubkeyHash::from(key: bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::PubkeyHash::from(key: bitcoin::PublicKey) -> bitcoin::PubkeyHash -pub fn bitcoin::PubkeyHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::PubkeyHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::PubkeyHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::PubkeyHash::from_engine(e: ::Engine) -> bitcoin::PubkeyHash -pub fn bitcoin::PubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::PubkeyHash pub fn bitcoin::PubkeyHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::PubkeyHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::PubkeyHash::hash(data: &[u8]) -> Self @@ -6662,9 +6766,7 @@ pub fn bitcoin::PubkeyHash::hash<__H: core::hash::Hasher>(&self, state: &mut __H pub fn bitcoin::PubkeyHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::PubkeyHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::PubkeyHash::partial_cmp(&self, other: &bitcoin::PubkeyHash) -> core::option::Option -pub fn bitcoin::PubkeyHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::PubkeyHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::PubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::PublicKey::clone(&self) -> bitcoin::PublicKey pub fn bitcoin::PublicKey::cmp(&self, other: &bitcoin::PublicKey) -> core::cmp::Ordering pub fn bitcoin::PublicKey::eq(&self, other: &bitcoin::PublicKey) -> bool @@ -6687,9 +6789,7 @@ pub fn bitcoin::PublicKey::verify(&self, se pub fn bitcoin::PublicKey::wpubkey_hash(&self) -> core::result::Result pub fn bitcoin::PublicKey::write_into(&self, writer: &mut W) -> core::result::Result<(), bitcoin_io::error::Error> pub fn bitcoin::SegwitV0Sighash::all_zeros() -> Self -pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::SegwitV0Sighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8] pub fn bitcoin::SegwitV0Sighash::borrow(&self) -> &[u8] @@ -6699,11 +6799,9 @@ pub fn bitcoin::SegwitV0Sighash::engine() -> bool pub fn bitcoin::SegwitV0Sighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::SegwitV0Sighash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash -pub fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::SegwitV0Sighash::from_engine(e: ::Engine) -> Self pub fn bitcoin::SegwitV0Sighash::from_engine(e: ::Engine) -> bitcoin::SegwitV0Sighash -pub fn bitcoin::SegwitV0Sighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash pub fn bitcoin::SegwitV0Sighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::SegwitV0Sighash::from_str(s: &str) -> core::result::Result pub fn bitcoin::SegwitV0Sighash::hash(data: &[u8]) -> Self @@ -6711,13 +6809,9 @@ pub fn bitcoin::SegwitV0Sighash::hash<__H: core::hash::Hasher>(&self, state: &mu pub fn bitcoin::SegwitV0Sighash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::SegwitV0Sighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::SegwitV0Sighash::partial_cmp(&self, other: &bitcoin::SegwitV0Sighash) -> core::option::Option -pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> ::Bytes pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::SegwitV0Sighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::TapSighash::all_zeros() -> Self -pub fn bitcoin::TapSighash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::TapSighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::TapSighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8] pub fn bitcoin::TapSighash::borrow(&self) -> &[u8] @@ -6727,11 +6821,9 @@ pub fn bitcoin::TapSighash::engine() -> bool pub fn bitcoin::TapSighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::TapSighash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash -pub fn bitcoin::TapSighash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::TapSighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::TapSighash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::TapSighash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::TapSighash -pub fn bitcoin::TapSighash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash pub fn bitcoin::TapSighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::TapSighash::from_str(s: &str) -> core::result::Result pub fn bitcoin::TapSighash::hash(data: &[u8]) -> Self @@ -6739,9 +6831,7 @@ pub fn bitcoin::TapSighash::hash<__H: core::hash::Hasher>(&self, state: &mut __H pub fn bitcoin::TapSighash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::TapSighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::TapSighash::partial_cmp(&self, other: &bitcoin::TapSighash) -> core::option::Option -pub fn bitcoin::TapSighash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::TapSighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::TapSighash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::TapSighashTag::clone(&self) -> bitcoin::TapSighashTag pub fn bitcoin::TapSighashTag::cmp(&self, other: &bitcoin::TapSighashTag) -> core::cmp::Ordering pub fn bitcoin::TapSighashTag::default() -> bitcoin::TapSighashTag @@ -6759,9 +6849,7 @@ pub fn bitcoin::TapSighashType::from_str(s: &str) -> core::result::Result(&self, state: &mut __H) pub fn bitcoin::TapSighashType::partial_cmp(&self, other: &bitcoin::TapSighashType) -> core::option::Option pub fn bitcoin::WPubkeyHash::all_zeros() -> Self -pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::WPubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -6774,11 +6862,9 @@ pub fn bitcoin::WPubkeyHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> cor pub fn bitcoin::WPubkeyHash::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash pub fn bitcoin::WPubkeyHash::from(key: &bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::WPubkeyHash::from(key: bitcoin::CompressedPublicKey) -> Self -pub fn bitcoin::WPubkeyHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::WPubkeyHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::WPubkeyHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::WPubkeyHash::from_engine(e: ::Engine) -> bitcoin::WPubkeyHash -pub fn bitcoin::WPubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash pub fn bitcoin::WPubkeyHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::WPubkeyHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::WPubkeyHash::hash(data: &[u8]) -> Self @@ -6786,9 +6872,7 @@ pub fn bitcoin::WPubkeyHash::hash<__H: core::hash::Hasher>(&self, state: &mut __ pub fn bitcoin::WPubkeyHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::WPubkeyHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::WPubkeyHash::partial_cmp(&self, other: &bitcoin::WPubkeyHash) -> core::option::Option -pub fn bitcoin::WPubkeyHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::WPubkeyHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::WPubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::address::Address::address_type(&self) -> core::option::Option pub fn bitcoin::address::Address::fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::address::Address::from_script(script: &bitcoin::blockdata::script::Script, params: impl core::convert::AsRef) -> core::result::Result @@ -7007,9 +7091,7 @@ pub fn bitcoin::bip158::Error::from(io: bitcoin_io::error::Error) -> Self pub fn bitcoin::bip158::Error::from(never: core::convert::Infallible) -> Self pub fn bitcoin::bip158::Error::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)> pub fn bitcoin::bip158::FilterHash::all_zeros() -> Self -pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip158::FilterHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8] pub fn bitcoin::bip158::FilterHash::borrow(&self) -> &[u8] @@ -7022,11 +7104,9 @@ pub fn bitcoin::bip158::FilterHash::eq(&self, other: &bitcoin::bip158::FilterHas pub fn bitcoin::bip158::FilterHash::filter_header(&self, previous_filter_header: &bitcoin::bip158::FilterHeader) -> bitcoin::bip158::FilterHeader pub fn bitcoin::bip158::FilterHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip158::FilterHash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash -pub fn bitcoin::bip158::FilterHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip158::FilterHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip158::FilterHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip158::FilterHash::from_engine(e: ::Engine) -> bitcoin::bip158::FilterHash -pub fn bitcoin::bip158::FilterHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash pub fn bitcoin::bip158::FilterHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::bip158::FilterHash::hash(data: &[u8]) -> Self @@ -7034,13 +7114,9 @@ pub fn bitcoin::bip158::FilterHash::hash<__H: core::hash::Hasher>(&self, state: pub fn bitcoin::bip158::FilterHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::bip158::FilterHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHash::partial_cmp(&self, other: &bitcoin::bip158::FilterHash) -> core::option::Option -pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHeader::all_zeros() -> Self -pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip158::FilterHeader::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8] pub fn bitcoin::bip158::FilterHeader::borrow(&self) -> &[u8] @@ -7052,11 +7128,9 @@ pub fn bitcoin::bip158::FilterHeader::engine() -> bool pub fn bitcoin::bip158::FilterHeader::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip158::FilterHeader::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader -pub fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip158::FilterHeader::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip158::FilterHeader::from_engine(e: ::Engine) -> bitcoin::bip158::FilterHeader -pub fn bitcoin::bip158::FilterHeader::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader pub fn bitcoin::bip158::FilterHeader::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHeader::from_str(s: &str) -> core::result::Result pub fn bitcoin::bip158::FilterHeader::hash(data: &[u8]) -> Self @@ -7064,9 +7138,7 @@ pub fn bitcoin::bip158::FilterHeader::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin::bip158::FilterHeader::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::bip158::FilterHeader::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHeader::partial_cmp(&self, other: &bitcoin::bip158::FilterHeader) -> core::option::Option -pub fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHeader::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::GcsFilterReader::match_all(&self, reader: &mut R, query: I) -> core::result::Result where I: core::iter::traits::iterator::Iterator, ::Item: core::borrow::Borrow<[u8]>, R: bitcoin_io::BufRead + core::marker::Sized pub fn bitcoin::bip158::GcsFilterReader::match_any(&self, reader: &mut R, query: I) -> core::result::Result where I: core::iter::traits::iterator::Iterator, ::Item: core::borrow::Borrow<[u8]>, R: bitcoin_io::BufRead + core::marker::Sized pub fn bitcoin::bip158::GcsFilterReader::new(k0: u64, k1: u64, m: u64, p: u8) -> bitcoin::bip158::GcsFilterReader @@ -7184,9 +7256,7 @@ pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::eq(&self, other: &bitcoi pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::invalid_base58_payload_length(&self) -> usize pub fn bitcoin::bip32::XKeyIdentifier::all_zeros() -> Self -pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip32::XKeyIdentifier::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8; 20] pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8] pub fn bitcoin::bip32::XKeyIdentifier::borrow(&self) -> &[u8] @@ -7198,11 +7268,9 @@ pub fn bitcoin::bip32::XKeyIdentifier::fmt(&self, f: &mut core::fmt::Formatter<' pub fn bitcoin::bip32::XKeyIdentifier::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from(key: &bitcoin::bip32::Xpub) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from(key: bitcoin::bip32::Xpub) -> bitcoin::bip32::XKeyIdentifier -pub fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_engine(e: ::Engine) -> bitcoin::bip32::XKeyIdentifier -pub fn bitcoin::bip32::XKeyIdentifier::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip32::XKeyIdentifier::from_str(s: &str) -> core::result::Result pub fn bitcoin::bip32::XKeyIdentifier::hash(data: &[u8]) -> Self @@ -7210,9 +7278,7 @@ pub fn bitcoin::bip32::XKeyIdentifier::hash<__H: core::hash::Hasher>(&self, stat pub fn bitcoin::bip32::XKeyIdentifier::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::bip32::XKeyIdentifier::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip32::XKeyIdentifier::partial_cmp(&self, other: &bitcoin::bip32::XKeyIdentifier) -> core::option::Option -pub fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip32::XKeyIdentifier::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::bip32::Xpriv::clone(&self) -> bitcoin::bip32::Xpriv pub fn bitcoin::bip32::Xpriv::decode(data: &[u8]) -> core::result::Result pub fn bitcoin::bip32::Xpriv::derive_priv>(&self, secp: &secp256k1::Secp256k1, path: &P) -> bitcoin::bip32::Xpriv @@ -7267,9 +7333,7 @@ pub fn bitcoin::blockdata::block::Block::total_size(&self) -> usize pub fn bitcoin::blockdata::block::Block::weight(&self) -> bitcoin_units::weight::Weight pub fn bitcoin::blockdata::block::Block::witness_root(&self) -> core::option::Option pub fn bitcoin::blockdata::block::BlockHash::all_zeros() -> Self -pub fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::block::BlockHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::BlockHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::BlockHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::block::BlockHash::borrow(&self) -> &[u8] @@ -7285,11 +7349,9 @@ pub fn bitcoin::blockdata::block::BlockHash::from(block: bitcoin::blockdata::blo pub fn bitcoin::blockdata::block::BlockHash::from(header: &bitcoin::blockdata::block::Header) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from(header: bitcoin::blockdata::block::Header) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash -pub fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_engine(e: ::Engine) -> bitcoin::blockdata::block::BlockHash -pub fn bitcoin::blockdata::block::BlockHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::BlockHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::block::BlockHash::hash(data: &[u8]) -> Self @@ -7297,9 +7359,7 @@ pub fn bitcoin::blockdata::block::BlockHash::hash<__H: core::hash::Hasher>(&self pub fn bitcoin::blockdata::block::BlockHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::block::BlockHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::block::BlockHash::partial_cmp(&self, other: &bitcoin::blockdata::block::BlockHash) -> core::option::Option -pub fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::block::BlockHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::Header::block_hash(&self) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::Header::clone(&self) -> bitcoin::blockdata::block::Header pub fn bitcoin::blockdata::block::Header::cmp(&self, other: &bitcoin::blockdata::block::Header) -> core::cmp::Ordering @@ -7332,9 +7392,7 @@ pub fn bitcoin::blockdata::block::Version::is_signalling_soft_fork(&self, bit: u pub fn bitcoin::blockdata::block::Version::partial_cmp(&self, other: &bitcoin::blockdata::block::Version) -> core::option::Option pub fn bitcoin::blockdata::block::Version::to_consensus(self) -> i32 pub fn bitcoin::blockdata::block::WitnessCommitment::all_zeros() -> Self -pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::block::WitnessCommitment::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::block::WitnessCommitment::borrow(&self) -> &[u8] @@ -7344,11 +7402,9 @@ pub fn bitcoin::blockdata::block::WitnessCommitment::engine() -> bool pub fn bitcoin::blockdata::block::WitnessCommitment::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment -pub fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_engine(e: ::Engine) -> bitcoin::blockdata::block::WitnessCommitment -pub fn bitcoin::blockdata::block::WitnessCommitment::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment pub fn bitcoin::blockdata::block::WitnessCommitment::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::block::WitnessCommitment::hash(data: &[u8]) -> Self @@ -7356,9 +7412,7 @@ pub fn bitcoin::blockdata::block::WitnessCommitment::hash<__H: core::hash::Hashe pub fn bitcoin::blockdata::block::WitnessCommitment::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::block::WitnessCommitment::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::block::WitnessCommitment::partial_cmp(&self, other: &bitcoin::blockdata::block::WitnessCommitment) -> core::option::Option -pub fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::block::WitnessCommitment::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::constants::ChainHash::as_byte_array(&self) -> &[u8; 32] pub fn bitcoin::blockdata::constants::ChainHash::as_bytes(&self) -> &[u8] pub fn bitcoin::blockdata::constants::ChainHash::as_mut(&mut self) -> &mut [u8; 32] @@ -7830,9 +7884,7 @@ pub fn bitcoin::blockdata::script::ScriptBuf::reserve_exact(&mut self, additiona pub fn bitcoin::blockdata::script::ScriptBuf::scan_and_push_verify(&mut self) pub fn bitcoin::blockdata::script::ScriptBuf::with_capacity(capacity: usize) -> Self pub fn bitcoin::blockdata::script::ScriptHash::all_zeros() -> Self -pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::script::ScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -7843,11 +7895,9 @@ pub fn bitcoin::blockdata::script::ScriptHash::engine() -> bool pub fn bitcoin::blockdata::script::ScriptHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::script::ScriptHash::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash -pub fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_engine(e: ::Engine) -> bitcoin::blockdata::script::ScriptHash -pub fn bitcoin::blockdata::script::ScriptHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash pub fn bitcoin::blockdata::script::ScriptHash::from_script(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::from_script_unchecked(script: &bitcoin::blockdata::script::Script) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_slice(sl: &[u8]) -> core::result::Result @@ -7857,16 +7907,12 @@ pub fn bitcoin::blockdata::script::ScriptHash::hash<__H: core::hash::Hasher>(&se pub fn bitcoin::blockdata::script::ScriptHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::script::ScriptHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::script::ScriptHash::partial_cmp(&self, other: &bitcoin::blockdata::script::ScriptHash) -> core::option::Option -pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::script::ScriptHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::all_zeros() -> Self -pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::script::WScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256::Hash pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -7877,11 +7923,9 @@ pub fn bitcoin::blockdata::script::WScriptHash::engine() -> bool pub fn bitcoin::blockdata::script::WScriptHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::script::WScriptHash::from(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash -pub fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_engine(e: ::Engine) -> bitcoin::blockdata::script::WScriptHash -pub fn bitcoin::blockdata::script::WScriptHash::from_raw_hash(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash pub fn bitcoin::blockdata::script::WScriptHash::from_script(witness_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::from_script_unchecked(script: &bitcoin::blockdata::script::Script) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_slice(sl: &[u8]) -> core::result::Result @@ -7891,9 +7935,7 @@ pub fn bitcoin::blockdata::script::WScriptHash::hash<__H: core::hash::Hasher>(&s pub fn bitcoin::blockdata::script::WScriptHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::script::WScriptHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::script::WScriptHash::partial_cmp(&self, other: &bitcoin::blockdata::script::WScriptHash) -> core::option::Option -pub fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::script::WScriptHash::to_raw_hash(self) -> bitcoin_hashes::sha256::Hash pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result @@ -8073,9 +8115,7 @@ pub fn bitcoin::blockdata::transaction::TxOut::partial_cmp(&self, other: &bitcoi pub fn bitcoin::blockdata::transaction::TxOut::size(&self) -> usize pub fn bitcoin::blockdata::transaction::TxOut::weight(&self) -> bitcoin_units::weight::Weight pub fn bitcoin::blockdata::transaction::Txid::all_zeros() -> Self -pub fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::transaction::Txid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Txid::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::transaction::Txid::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::transaction::Txid::borrow(&self) -> &[u8] @@ -8089,11 +8129,9 @@ pub fn bitcoin::blockdata::transaction::Txid::fmt(&self, f: &mut core::fmt::Form pub fn bitcoin::blockdata::transaction::Txid::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from(tx: &bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from(tx: bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Txid -pub fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_engine(e: ::Engine) -> bitcoin::blockdata::transaction::Txid -pub fn bitcoin::blockdata::transaction::Txid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Txid::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::transaction::Txid::hash(data: &[u8]) -> Self @@ -8101,9 +8139,7 @@ pub fn bitcoin::blockdata::transaction::Txid::hash<__H: core::hash::Hasher>(&sel pub fn bitcoin::blockdata::transaction::Txid::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::transaction::Txid::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::transaction::Txid::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Txid) -> core::option::Option -pub fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::transaction::Txid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Version::clone(&self) -> bitcoin::blockdata::transaction::Version pub fn bitcoin::blockdata::transaction::Version::cmp(&self, other: &bitcoin::blockdata::transaction::Version) -> core::cmp::Ordering pub fn bitcoin::blockdata::transaction::Version::consensus_decode(r: &mut R) -> core::result::Result @@ -8115,9 +8151,7 @@ pub fn bitcoin::blockdata::transaction::Version::is_standard(&self) -> bool pub fn bitcoin::blockdata::transaction::Version::non_standard(version: i32) -> bitcoin::blockdata::transaction::Version pub fn bitcoin::blockdata::transaction::Version::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Version) -> core::option::Option pub fn bitcoin::blockdata::transaction::Wtxid::all_zeros() -> Self -pub fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::transaction::Wtxid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Wtxid::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::transaction::Wtxid::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::transaction::Wtxid::borrow(&self) -> &[u8] @@ -8131,11 +8165,9 @@ pub fn bitcoin::blockdata::transaction::Wtxid::fmt(&self, f: &mut core::fmt::For pub fn bitcoin::blockdata::transaction::Wtxid::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from(tx: &bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from(tx: bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Wtxid -pub fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_engine(e: ::Engine) -> bitcoin::blockdata::transaction::Wtxid -pub fn bitcoin::blockdata::transaction::Wtxid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Wtxid::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::transaction::Wtxid::hash(data: &[u8]) -> Self @@ -8143,9 +8175,7 @@ pub fn bitcoin::blockdata::transaction::Wtxid::hash<__H: core::hash::Hasher>(&se pub fn bitcoin::blockdata::transaction::Wtxid::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::transaction::Wtxid::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::transaction::Wtxid::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Wtxid) -> core::option::Option -pub fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::transaction::Wtxid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::effective_value(fee_rate: bitcoin_units::fee_rate::FeeRate, satisfaction_weight: bitcoin_units::weight::Weight, value: bitcoin_units::amount::Amount) -> core::option::Option pub fn bitcoin::blockdata::transaction::predict_weight(inputs: I, output_script_lens: O) -> bitcoin_units::weight::Weight where I: core::iter::traits::collect::IntoIterator, O: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::witness::Iter<'a>::next(&mut self) -> core::option::Option @@ -8395,9 +8425,7 @@ pub fn bitcoin::merkle_tree::PartialMerkleTree::from_txids(txids: &[bitcoin::blo pub fn bitcoin::merkle_tree::PartialMerkleTree::hashes(&self) -> &alloc::vec::Vec pub fn bitcoin::merkle_tree::PartialMerkleTree::num_transactions(&self) -> u32 pub fn bitcoin::merkle_tree::TxMerkleNode::all_zeros() -> Self -pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::merkle_tree::TxMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8] pub fn bitcoin::merkle_tree::TxMerkleNode::borrow(&self) -> &[u8] @@ -8410,12 +8438,10 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::engine() -> bool pub fn bitcoin::merkle_tree::TxMerkleNode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode -pub fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_engine(e: ::Engine) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_engine(e: ::Engine) -> bitcoin::merkle_tree::TxMerkleNode pub fn bitcoin::merkle_tree::TxMerkleNode::from_leaf(leaf: Self::Leaf) -> Self -pub fn bitcoin::merkle_tree::TxMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode pub fn bitcoin::merkle_tree::TxMerkleNode::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from_str(s: &str) -> core::result::Result pub fn bitcoin::merkle_tree::TxMerkleNode::hash(data: &[u8]) -> Self @@ -8423,13 +8449,9 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::hash<__H: core::hash::Hasher>(&self, pub fn bitcoin::merkle_tree::TxMerkleNode::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::merkle_tree::TxMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::TxMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::TxMerkleNode) -> core::option::Option -pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> ::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::TxMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::WitnessMerkleNode::all_zeros() -> Self -pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8] pub fn bitcoin::merkle_tree::WitnessMerkleNode::borrow(&self) -> &[u8] @@ -8442,12 +8464,10 @@ pub fn bitcoin::merkle_tree::WitnessMerkleNode::engine() -> bool pub fn bitcoin::merkle_tree::WitnessMerkleNode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode -pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_engine(e: ::Engine) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_engine(e: ::Engine) -> bitcoin::merkle_tree::WitnessMerkleNode pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_leaf(leaf: Self::Leaf) -> Self -pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_str(s: &str) -> core::result::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash(data: &[u8]) -> Self @@ -8455,9 +8475,7 @@ pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash<__H: core::hash::Hasher>(&s pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::merkle_tree::WitnessMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::WitnessMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::WitnessMerkleNode) -> core::option::Option -pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> ::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::network::Network::as_ref(&self) -> &bitcoin::consensus::params::Params pub fn bitcoin::network::Network::chain_hash(self) -> bitcoin::blockdata::constants::ChainHash pub fn bitcoin::network::Network::clone(&self) -> bitcoin::network::Network @@ -9124,9 +9142,7 @@ pub fn bitcoin::taproot::TapLeaf::fmt(&self, f: &mut core::fmt::Formatter<'_>) - pub fn bitcoin::taproot::TapLeaf::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeaf::partial_cmp(&self, other: &bitcoin::taproot::TapLeaf) -> core::option::Option pub fn bitcoin::taproot::TapLeafHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapLeafHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapLeafHash::borrow(&self) -> &[u8] @@ -9139,11 +9155,9 @@ pub fn bitcoin::taproot::TapLeafHash::eq(&self, other: &bitcoin::taproot::TapLea pub fn bitcoin::taproot::TapLeafHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::taproot::TapLeafHash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from(script_path: bitcoin::sighash::ScriptPath<'s>) -> bitcoin::taproot::TapLeafHash -pub fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapLeafHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapLeafHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapLeafHash -pub fn bitcoin::taproot::TapLeafHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from_script(script: &bitcoin::blockdata::script::Script, ver: bitcoin::taproot::LeafVersion) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapLeafHash::from_str(s: &str) -> core::result::Result @@ -9152,9 +9166,7 @@ pub fn bitcoin::taproot::TapLeafHash::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin::taproot::TapLeafHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::taproot::TapLeafHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapLeafHash::partial_cmp(&self, other: &bitcoin::taproot::TapLeafHash) -> core::option::Option -pub fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapLeafHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapLeafTag::clone(&self) -> bitcoin::taproot::TapLeafTag pub fn bitcoin::taproot::TapLeafTag::cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::cmp::Ordering pub fn bitcoin::taproot::TapLeafTag::default() -> bitcoin::taproot::TapLeafTag @@ -9163,9 +9175,7 @@ pub fn bitcoin::taproot::TapLeafTag::eq(&self, other: &bitcoin::taproot::TapLeaf pub fn bitcoin::taproot::TapLeafTag::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeafTag::partial_cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::option::Option pub fn bitcoin::taproot::TapNodeHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapNodeHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapNodeHash::assume_hidden(hash: [u8; 32]) -> bitcoin::taproot::TapNodeHash @@ -9179,12 +9189,10 @@ pub fn bitcoin::taproot::TapNodeHash::from(inner: bitcoin_hashes::sha256t::Hash< pub fn bitcoin::taproot::TapNodeHash::from(leaf: &bitcoin::taproot::LeafNode) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from(leaf: bitcoin::taproot::LeafNode) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from(leaf: bitcoin::taproot::TapLeafHash) -> bitcoin::taproot::TapNodeHash -pub fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapNodeHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapNodeHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_node_hashes(a: bitcoin::taproot::TapNodeHash, b: bitcoin::taproot::TapNodeHash) -> bitcoin::taproot::TapNodeHash -pub fn bitcoin::taproot::TapNodeHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_script(script: &bitcoin::blockdata::script::Script, ver: bitcoin::taproot::LeafVersion) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapNodeHash::from_str(s: &str) -> core::result::Result @@ -9193,9 +9201,7 @@ pub fn bitcoin::taproot::TapNodeHash::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin::taproot::TapNodeHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::taproot::TapNodeHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapNodeHash::partial_cmp(&self, other: &bitcoin::taproot::TapNodeHash) -> core::option::Option -pub fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapNodeHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTree::clone(&self) -> bitcoin::taproot::TapTree pub fn bitcoin::taproot::TapTree::eq(&self, other: &bitcoin::taproot::TapTree) -> bool pub fn bitcoin::taproot::TapTree::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result @@ -9207,9 +9213,7 @@ pub fn bitcoin::taproot::TapTree::script_leaves(&self) -> bitcoin::taproot::Scri pub fn bitcoin::taproot::TapTree::try_from(builder: bitcoin::taproot::TaprootBuilder) -> core::result::Result pub fn bitcoin::taproot::TapTree::try_from(node_info: bitcoin::taproot::NodeInfo) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapTweakHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapTweakHash::borrow(&self) -> &[u8] @@ -9221,12 +9225,10 @@ pub fn bitcoin::taproot::TapTweakHash::fmt(&self, f: &mut core::fmt::Formatter<' pub fn bitcoin::taproot::TapTweakHash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from(spend_info: &bitcoin::taproot::TaprootSpendInfo) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from(spend_info: bitcoin::taproot::TaprootSpendInfo) -> bitcoin::taproot::TapTweakHash -pub fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapTweakHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapTweakHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from_key_and_tweak(internal_key: bitcoin::key::UntweakedPublicKey, merkle_root: core::option::Option) -> bitcoin::taproot::TapTweakHash -pub fn bitcoin::taproot::TapTweakHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::hash(data: &[u8]) -> Self @@ -9234,9 +9236,7 @@ pub fn bitcoin::taproot::TapTweakHash::hash<__H: core::hash::Hasher>(&self, stat pub fn bitcoin::taproot::TapTweakHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::taproot::TapTweakHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapTweakHash::partial_cmp(&self, other: &bitcoin::taproot::TapTweakHash) -> core::option::Option -pub fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapTweakHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTweakHash::to_scalar(self) -> secp256k1::scalar::Scalar pub fn bitcoin::taproot::TapTweakTag::clone(&self) -> bitcoin::taproot::TapTweakTag pub fn bitcoin::taproot::TapTweakTag::cmp(&self, other: &bitcoin::taproot::TapTweakTag) -> core::cmp::Ordering diff --git a/api/bitcoin/no-features.txt b/api/bitcoin/no-features.txt index 7df5c578a..5af03e656 100644 --- a/api/bitcoin/no-features.txt +++ b/api/bitcoin/no-features.txt @@ -5444,7 +5444,67 @@ pub const bitcoin::taproot::TapTweakHash::DISPLAY_BACKWARD: bool pub const bitcoin::taproot::TapTweakHash::LEN: usize pub const bitcoin::witness_program::MAX_SIZE: usize = 40usize pub const bitcoin::witness_program::MIN_SIZE: usize = 2usize +pub const fn bitcoin::LegacySighash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::LegacySighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::LegacySighash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::LegacySighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash +pub const fn bitcoin::LegacySighash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::LegacySighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::PubkeyHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::PubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::PubkeyHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::PubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::PubkeyHash +pub const fn bitcoin::PubkeyHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::PubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::SegwitV0Sighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::SegwitV0Sighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash +pub const fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::SegwitV0Sighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::TapSighash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::TapSighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::TapSighash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::TapSighash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash +pub const fn bitcoin::TapSighash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::TapSighash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::WPubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::WPubkeyHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::WPubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash +pub const fn bitcoin::WPubkeyHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::WPubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip158::FilterHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip158::FilterHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash +pub const fn bitcoin::bip158::FilterHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip158::FilterHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip158::FilterHeader::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip158::FilterHeader::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader +pub const fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip158::FilterHeader::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::bip32::XKeyIdentifier::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::bip32::XKeyIdentifier::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier +pub const fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::bip32::XKeyIdentifier::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::block::BlockHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::block::BlockHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash +pub const fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::block::BlockHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::block::Version::from_consensus(v: i32) -> Self +pub const fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::block::WitnessCommitment::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::block::WitnessCommitment::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment +pub const fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::block::WitnessCommitment::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::constants::ChainHash::using_genesis_block_const(network: bitcoin::network::Network) -> Self pub const fn bitcoin::blockdata::locktime::absolute::LockTime::is_block_height(&self) -> bool pub const fn bitcoin::blockdata::locktime::absolute::LockTime::is_block_time(&self) -> bool @@ -5460,17 +5520,71 @@ pub const fn bitcoin::blockdata::opcodes::Opcode::to_u8(self) -> u8 pub const fn bitcoin::blockdata::script::Builder::new() -> Self pub const fn bitcoin::blockdata::script::PushBytesBuf::new() -> Self pub const fn bitcoin::blockdata::script::ScriptBuf::new() -> Self +pub const fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::script::ScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::script::ScriptHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash +pub const fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::script::ScriptHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash +pub const fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::script::WScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256::Hash +pub const fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::script::WScriptHash::from_raw_hash(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash +pub const fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::script::WScriptHash::to_raw_hash(self) -> bitcoin_hashes::sha256::Hash pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::from_slice(input_script_len: usize, witness_element_lengths: &[usize]) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::ground_p2pkh_compressed(bytes_to_grind: usize) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::ground_p2wpkh(bytes_to_grind: usize) -> Self pub const fn bitcoin::blockdata::transaction::InputWeightPrediction::weight(&self) -> bitcoin_units::weight::Weight pub const fn bitcoin::blockdata::transaction::OutPoint::new(txid: bitcoin::blockdata::transaction::Txid, vout: u32) -> bitcoin::blockdata::transaction::OutPoint +pub const fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::transaction::Txid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::transaction::Txid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid +pub const fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::transaction::Txid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::blockdata::transaction::Wtxid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::blockdata::transaction::Wtxid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid +pub const fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::blockdata::transaction::Wtxid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::blockdata::transaction::predict_weight_from_slices(inputs: &[bitcoin::blockdata::transaction::InputWeightPrediction], output_script_lens: &[usize]) -> bitcoin_units::weight::Weight pub const fn bitcoin::blockdata::witness::Witness::new() -> Self pub const fn bitcoin::consensus::encode::VarInt::size(&self) -> usize pub const fn bitcoin::consensus::params::Params::new(network: bitcoin::network::Network) -> Self +pub const fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::merkle_tree::TxMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::merkle_tree::TxMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode +pub const fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::merkle_tree::TxMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &::Bytes +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: ::Bytes) -> Self +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> ::Bytes +pub const fn bitcoin::merkle_tree::WitnessMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub const fn bitcoin::network::Network::params(self) -> &'static bitcoin::consensus::params::Params pub const fn bitcoin::p2p::Magic::from_bytes(bytes: [u8; 4]) -> bitcoin::p2p::Magic +pub const fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapLeafHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapLeafHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash +pub const fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapLeafHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapNodeHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapNodeHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapNodeHash +pub const fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapNodeHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapTweakHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash +pub const fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self +pub const fn bitcoin::taproot::TapTweakHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash +pub const fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes +pub const fn bitcoin::taproot::TapTweakHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub const fn bitcoin::transaction::predict_weight_from_slices(inputs: &[bitcoin::blockdata::transaction::InputWeightPrediction], output_script_lens: &[usize]) -> bitcoin_units::weight::Weight pub enum bitcoin::EcdsaSighashType pub enum bitcoin::NetworkKind @@ -5954,9 +6068,7 @@ pub fn bitcoin::EcdsaSighashType::from_str(s: &str) -> core::result::Result(&self, state: &mut __H) pub fn bitcoin::EcdsaSighashType::to_u32(self) -> u32 pub fn bitcoin::LegacySighash::all_zeros() -> Self -pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::LegacySighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8] pub fn bitcoin::LegacySighash::borrow(&self) -> &[u8] @@ -5966,11 +6078,9 @@ pub fn bitcoin::LegacySighash::engine() -> bool pub fn bitcoin::LegacySighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::LegacySighash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash -pub fn bitcoin::LegacySighash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::LegacySighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::LegacySighash::from_engine(e: ::Engine) -> Self pub fn bitcoin::LegacySighash::from_engine(e: ::Engine) -> bitcoin::LegacySighash -pub fn bitcoin::LegacySighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::LegacySighash pub fn bitcoin::LegacySighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::LegacySighash::from_str(s: &str) -> core::result::Result pub fn bitcoin::LegacySighash::hash(data: &[u8]) -> Self @@ -5978,9 +6088,7 @@ pub fn bitcoin::LegacySighash::hash<__H: core::hash::Hasher>(&self, state: &mut pub fn bitcoin::LegacySighash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::LegacySighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::LegacySighash::partial_cmp(&self, other: &bitcoin::LegacySighash) -> core::option::Option -pub fn bitcoin::LegacySighash::to_byte_array(self) -> ::Bytes pub fn bitcoin::LegacySighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::LegacySighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::MerkleBlock::clone(&self) -> bitcoin::MerkleBlock pub fn bitcoin::MerkleBlock::consensus_decode(r: &mut R) -> core::result::Result pub fn bitcoin::MerkleBlock::consensus_encode(&self, w: &mut W) -> core::result::Result @@ -6003,9 +6111,7 @@ pub fn bitcoin::PrivateKey::public_key(&self, se pub fn bitcoin::PrivateKey::to_bytes(self) -> alloc::vec::Vec pub fn bitcoin::PrivateKey::to_wif(self) -> alloc::string::String pub fn bitcoin::PubkeyHash::all_zeros() -> Self -pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::PubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -6020,11 +6126,9 @@ pub fn bitcoin::PubkeyHash::from(key: &bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::PubkeyHash::from(key: &bitcoin::PublicKey) -> bitcoin::PubkeyHash pub fn bitcoin::PubkeyHash::from(key: bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::PubkeyHash::from(key: bitcoin::PublicKey) -> bitcoin::PubkeyHash -pub fn bitcoin::PubkeyHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::PubkeyHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::PubkeyHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::PubkeyHash::from_engine(e: ::Engine) -> bitcoin::PubkeyHash -pub fn bitcoin::PubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::PubkeyHash pub fn bitcoin::PubkeyHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::PubkeyHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::PubkeyHash::hash(data: &[u8]) -> Self @@ -6032,9 +6136,7 @@ pub fn bitcoin::PubkeyHash::hash<__H: core::hash::Hasher>(&self, state: &mut __H pub fn bitcoin::PubkeyHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::PubkeyHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::PubkeyHash::partial_cmp(&self, other: &bitcoin::PubkeyHash) -> core::option::Option -pub fn bitcoin::PubkeyHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::PubkeyHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::PubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::PublicKey::clone(&self) -> bitcoin::PublicKey pub fn bitcoin::PublicKey::cmp(&self, other: &bitcoin::PublicKey) -> core::cmp::Ordering pub fn bitcoin::PublicKey::eq(&self, other: &bitcoin::PublicKey) -> bool @@ -6057,9 +6159,7 @@ pub fn bitcoin::PublicKey::verify(&self, se pub fn bitcoin::PublicKey::wpubkey_hash(&self) -> core::result::Result pub fn bitcoin::PublicKey::write_into(&self, writer: &mut W) -> core::result::Result<(), bitcoin_io::error::Error> pub fn bitcoin::SegwitV0Sighash::all_zeros() -> Self -pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::SegwitV0Sighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8] pub fn bitcoin::SegwitV0Sighash::borrow(&self) -> &[u8] @@ -6069,11 +6169,9 @@ pub fn bitcoin::SegwitV0Sighash::engine() -> bool pub fn bitcoin::SegwitV0Sighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::SegwitV0Sighash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash -pub fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::SegwitV0Sighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::SegwitV0Sighash::from_engine(e: ::Engine) -> Self pub fn bitcoin::SegwitV0Sighash::from_engine(e: ::Engine) -> bitcoin::SegwitV0Sighash -pub fn bitcoin::SegwitV0Sighash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::SegwitV0Sighash pub fn bitcoin::SegwitV0Sighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::SegwitV0Sighash::from_str(s: &str) -> core::result::Result pub fn bitcoin::SegwitV0Sighash::hash(data: &[u8]) -> Self @@ -6081,13 +6179,9 @@ pub fn bitcoin::SegwitV0Sighash::hash<__H: core::hash::Hasher>(&self, state: &mu pub fn bitcoin::SegwitV0Sighash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::SegwitV0Sighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::SegwitV0Sighash::partial_cmp(&self, other: &bitcoin::SegwitV0Sighash) -> core::option::Option -pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> ::Bytes pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::SegwitV0Sighash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::TapSighash::all_zeros() -> Self -pub fn bitcoin::TapSighash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::TapSighash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::TapSighash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8] pub fn bitcoin::TapSighash::borrow(&self) -> &[u8] @@ -6097,11 +6191,9 @@ pub fn bitcoin::TapSighash::engine() -> bool pub fn bitcoin::TapSighash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::TapSighash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash -pub fn bitcoin::TapSighash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::TapSighash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::TapSighash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::TapSighash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::TapSighash -pub fn bitcoin::TapSighash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::TapSighash pub fn bitcoin::TapSighash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::TapSighash::from_str(s: &str) -> core::result::Result pub fn bitcoin::TapSighash::hash(data: &[u8]) -> Self @@ -6109,9 +6201,7 @@ pub fn bitcoin::TapSighash::hash<__H: core::hash::Hasher>(&self, state: &mut __H pub fn bitcoin::TapSighash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::TapSighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::TapSighash::partial_cmp(&self, other: &bitcoin::TapSighash) -> core::option::Option -pub fn bitcoin::TapSighash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::TapSighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::TapSighash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::TapSighashTag::clone(&self) -> bitcoin::TapSighashTag pub fn bitcoin::TapSighashTag::cmp(&self, other: &bitcoin::TapSighashTag) -> core::cmp::Ordering pub fn bitcoin::TapSighashTag::default() -> bitcoin::TapSighashTag @@ -6129,9 +6219,7 @@ pub fn bitcoin::TapSighashType::from_str(s: &str) -> core::result::Result(&self, state: &mut __H) pub fn bitcoin::TapSighashType::partial_cmp(&self, other: &bitcoin::TapSighashType) -> core::option::Option pub fn bitcoin::WPubkeyHash::all_zeros() -> Self -pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::WPubkeyHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -6144,11 +6232,9 @@ pub fn bitcoin::WPubkeyHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> cor pub fn bitcoin::WPubkeyHash::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash pub fn bitcoin::WPubkeyHash::from(key: &bitcoin::CompressedPublicKey) -> Self pub fn bitcoin::WPubkeyHash::from(key: bitcoin::CompressedPublicKey) -> Self -pub fn bitcoin::WPubkeyHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::WPubkeyHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::WPubkeyHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::WPubkeyHash::from_engine(e: ::Engine) -> bitcoin::WPubkeyHash -pub fn bitcoin::WPubkeyHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::WPubkeyHash pub fn bitcoin::WPubkeyHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::WPubkeyHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::WPubkeyHash::hash(data: &[u8]) -> Self @@ -6156,9 +6242,7 @@ pub fn bitcoin::WPubkeyHash::hash<__H: core::hash::Hasher>(&self, state: &mut __ pub fn bitcoin::WPubkeyHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::WPubkeyHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::WPubkeyHash::partial_cmp(&self, other: &bitcoin::WPubkeyHash) -> core::option::Option -pub fn bitcoin::WPubkeyHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::WPubkeyHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::WPubkeyHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::address::Address::address_type(&self) -> core::option::Option pub fn bitcoin::address::Address::fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::address::Address::from_script(script: &bitcoin::blockdata::script::Script, params: impl core::convert::AsRef) -> core::result::Result @@ -6370,9 +6454,7 @@ pub fn bitcoin::bip158::Error::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> c pub fn bitcoin::bip158::Error::from(io: bitcoin_io::error::Error) -> Self pub fn bitcoin::bip158::Error::from(never: core::convert::Infallible) -> Self pub fn bitcoin::bip158::FilterHash::all_zeros() -> Self -pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip158::FilterHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8] pub fn bitcoin::bip158::FilterHash::borrow(&self) -> &[u8] @@ -6385,11 +6467,9 @@ pub fn bitcoin::bip158::FilterHash::eq(&self, other: &bitcoin::bip158::FilterHas pub fn bitcoin::bip158::FilterHash::filter_header(&self, previous_filter_header: &bitcoin::bip158::FilterHeader) -> bitcoin::bip158::FilterHeader pub fn bitcoin::bip158::FilterHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip158::FilterHash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash -pub fn bitcoin::bip158::FilterHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip158::FilterHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip158::FilterHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip158::FilterHash::from_engine(e: ::Engine) -> bitcoin::bip158::FilterHash -pub fn bitcoin::bip158::FilterHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHash pub fn bitcoin::bip158::FilterHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::bip158::FilterHash::hash(data: &[u8]) -> Self @@ -6397,13 +6477,9 @@ pub fn bitcoin::bip158::FilterHash::hash<__H: core::hash::Hasher>(&self, state: pub fn bitcoin::bip158::FilterHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::bip158::FilterHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHash::partial_cmp(&self, other: &bitcoin::bip158::FilterHash) -> core::option::Option -pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHeader::all_zeros() -> Self -pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip158::FilterHeader::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8] pub fn bitcoin::bip158::FilterHeader::borrow(&self) -> &[u8] @@ -6415,11 +6491,9 @@ pub fn bitcoin::bip158::FilterHeader::engine() -> bool pub fn bitcoin::bip158::FilterHeader::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip158::FilterHeader::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader -pub fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip158::FilterHeader::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip158::FilterHeader::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip158::FilterHeader::from_engine(e: ::Engine) -> bitcoin::bip158::FilterHeader -pub fn bitcoin::bip158::FilterHeader::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::bip158::FilterHeader pub fn bitcoin::bip158::FilterHeader::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip158::FilterHeader::from_str(s: &str) -> core::result::Result pub fn bitcoin::bip158::FilterHeader::hash(data: &[u8]) -> Self @@ -6427,9 +6501,7 @@ pub fn bitcoin::bip158::FilterHeader::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin::bip158::FilterHeader::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::bip158::FilterHeader::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHeader::partial_cmp(&self, other: &bitcoin::bip158::FilterHeader) -> core::option::Option -pub fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip158::FilterHeader::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHeader::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::bip158::GcsFilterReader::match_all(&self, reader: &mut R, query: I) -> core::result::Result where I: core::iter::traits::iterator::Iterator, ::Item: core::borrow::Borrow<[u8]>, R: bitcoin_io::BufRead + core::marker::Sized pub fn bitcoin::bip158::GcsFilterReader::match_any(&self, reader: &mut R, query: I) -> core::result::Result where I: core::iter::traits::iterator::Iterator, ::Item: core::borrow::Borrow<[u8]>, R: bitcoin_io::BufRead + core::marker::Sized pub fn bitcoin::bip158::GcsFilterReader::new(k0: u64, k1: u64, m: u64, p: u8) -> bitcoin::bip158::GcsFilterReader @@ -6546,9 +6618,7 @@ pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::eq(&self, other: &bitcoi pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::invalid_base58_payload_length(&self) -> usize pub fn bitcoin::bip32::XKeyIdentifier::all_zeros() -> Self -pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &::Bytes pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::bip32::XKeyIdentifier::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8; 20] pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8] pub fn bitcoin::bip32::XKeyIdentifier::borrow(&self) -> &[u8] @@ -6560,11 +6630,9 @@ pub fn bitcoin::bip32::XKeyIdentifier::fmt(&self, f: &mut core::fmt::Formatter<' pub fn bitcoin::bip32::XKeyIdentifier::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from(key: &bitcoin::bip32::Xpub) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from(key: bitcoin::bip32::Xpub) -> bitcoin::bip32::XKeyIdentifier -pub fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_engine(e: ::Engine) -> Self pub fn bitcoin::bip32::XKeyIdentifier::from_engine(e: ::Engine) -> bitcoin::bip32::XKeyIdentifier -pub fn bitcoin::bip32::XKeyIdentifier::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::bip32::XKeyIdentifier pub fn bitcoin::bip32::XKeyIdentifier::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::bip32::XKeyIdentifier::from_str(s: &str) -> core::result::Result pub fn bitcoin::bip32::XKeyIdentifier::hash(data: &[u8]) -> Self @@ -6572,9 +6640,7 @@ pub fn bitcoin::bip32::XKeyIdentifier::hash<__H: core::hash::Hasher>(&self, stat pub fn bitcoin::bip32::XKeyIdentifier::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::bip32::XKeyIdentifier::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip32::XKeyIdentifier::partial_cmp(&self, other: &bitcoin::bip32::XKeyIdentifier) -> core::option::Option -pub fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> ::Bytes pub fn bitcoin::bip32::XKeyIdentifier::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip32::XKeyIdentifier::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::bip32::Xpriv::clone(&self) -> bitcoin::bip32::Xpriv pub fn bitcoin::bip32::Xpriv::decode(data: &[u8]) -> core::result::Result pub fn bitcoin::bip32::Xpriv::derive_priv>(&self, secp: &secp256k1::Secp256k1, path: &P) -> bitcoin::bip32::Xpriv @@ -6628,9 +6694,7 @@ pub fn bitcoin::blockdata::block::Block::total_size(&self) -> usize pub fn bitcoin::blockdata::block::Block::weight(&self) -> bitcoin_units::weight::Weight pub fn bitcoin::blockdata::block::Block::witness_root(&self) -> core::option::Option pub fn bitcoin::blockdata::block::BlockHash::all_zeros() -> Self -pub fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::block::BlockHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::block::BlockHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::BlockHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::BlockHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::block::BlockHash::borrow(&self) -> &[u8] @@ -6646,11 +6710,9 @@ pub fn bitcoin::blockdata::block::BlockHash::from(block: bitcoin::blockdata::blo pub fn bitcoin::blockdata::block::BlockHash::from(header: &bitcoin::blockdata::block::Header) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from(header: bitcoin::blockdata::block::Header) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash -pub fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::block::BlockHash::from_engine(e: ::Engine) -> bitcoin::blockdata::block::BlockHash -pub fn bitcoin::blockdata::block::BlockHash::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::BlockHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::BlockHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::block::BlockHash::hash(data: &[u8]) -> Self @@ -6658,9 +6720,7 @@ pub fn bitcoin::blockdata::block::BlockHash::hash<__H: core::hash::Hasher>(&self pub fn bitcoin::blockdata::block::BlockHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::block::BlockHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::block::BlockHash::partial_cmp(&self, other: &bitcoin::blockdata::block::BlockHash) -> core::option::Option -pub fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::block::BlockHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::block::BlockHash::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::Header::block_hash(&self) -> bitcoin::blockdata::block::BlockHash pub fn bitcoin::blockdata::block::Header::clone(&self) -> bitcoin::blockdata::block::Header pub fn bitcoin::blockdata::block::Header::cmp(&self, other: &bitcoin::blockdata::block::Header) -> core::cmp::Ordering @@ -6692,9 +6752,7 @@ pub fn bitcoin::blockdata::block::Version::is_signalling_soft_fork(&self, bit: u pub fn bitcoin::blockdata::block::Version::partial_cmp(&self, other: &bitcoin::blockdata::block::Version) -> core::option::Option pub fn bitcoin::blockdata::block::Version::to_consensus(self) -> i32 pub fn bitcoin::blockdata::block::WitnessCommitment::all_zeros() -> Self -pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::block::WitnessCommitment::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::block::WitnessCommitment::borrow(&self) -> &[u8] @@ -6704,11 +6762,9 @@ pub fn bitcoin::blockdata::block::WitnessCommitment::engine() -> bool pub fn bitcoin::blockdata::block::WitnessCommitment::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment -pub fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::from_engine(e: ::Engine) -> bitcoin::blockdata::block::WitnessCommitment -pub fn bitcoin::blockdata::block::WitnessCommitment::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::block::WitnessCommitment pub fn bitcoin::blockdata::block::WitnessCommitment::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::block::WitnessCommitment::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::block::WitnessCommitment::hash(data: &[u8]) -> Self @@ -6716,9 +6772,7 @@ pub fn bitcoin::blockdata::block::WitnessCommitment::hash<__H: core::hash::Hashe pub fn bitcoin::blockdata::block::WitnessCommitment::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::block::WitnessCommitment::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::block::WitnessCommitment::partial_cmp(&self, other: &bitcoin::blockdata::block::WitnessCommitment) -> core::option::Option -pub fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::block::WitnessCommitment::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::constants::ChainHash::as_byte_array(&self) -> &[u8; 32] pub fn bitcoin::blockdata::constants::ChainHash::as_bytes(&self) -> &[u8] pub fn bitcoin::blockdata::constants::ChainHash::as_mut(&mut self) -> &mut [u8; 32] @@ -7185,9 +7239,7 @@ pub fn bitcoin::blockdata::script::ScriptBuf::reserve_exact(&mut self, additiona pub fn bitcoin::blockdata::script::ScriptBuf::scan_and_push_verify(&mut self) pub fn bitcoin::blockdata::script::ScriptBuf::with_capacity(capacity: usize) -> Self pub fn bitcoin::blockdata::script::ScriptHash::all_zeros() -> Self -pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::script::ScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::hash160::Hash pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -7198,11 +7250,9 @@ pub fn bitcoin::blockdata::script::ScriptHash::engine() -> bool pub fn bitcoin::blockdata::script::ScriptHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::script::ScriptHash::from(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash -pub fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_engine(e: ::Engine) -> bitcoin::blockdata::script::ScriptHash -pub fn bitcoin::blockdata::script::ScriptHash::from_raw_hash(inner: bitcoin_hashes::hash160::Hash) -> bitcoin::blockdata::script::ScriptHash pub fn bitcoin::blockdata::script::ScriptHash::from_script(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::from_script_unchecked(script: &bitcoin::blockdata::script::Script) -> Self pub fn bitcoin::blockdata::script::ScriptHash::from_slice(sl: &[u8]) -> core::result::Result @@ -7212,16 +7262,12 @@ pub fn bitcoin::blockdata::script::ScriptHash::hash<__H: core::hash::Hasher>(&se pub fn bitcoin::blockdata::script::ScriptHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::script::ScriptHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::script::ScriptHash::partial_cmp(&self, other: &bitcoin::blockdata::script::ScriptHash) -> core::option::Option -pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::script::ScriptHash::to_raw_hash(self) -> bitcoin_hashes::hash160::Hash pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::all_zeros() -> Self -pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::script::WScriptHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256::Hash pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &bitcoin::blockdata::script::PushBytes @@ -7232,11 +7278,9 @@ pub fn bitcoin::blockdata::script::WScriptHash::engine() -> bool pub fn bitcoin::blockdata::script::WScriptHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::blockdata::script::WScriptHash::from(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash -pub fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_engine(e: ::Engine) -> bitcoin::blockdata::script::WScriptHash -pub fn bitcoin::blockdata::script::WScriptHash::from_raw_hash(inner: bitcoin_hashes::sha256::Hash) -> bitcoin::blockdata::script::WScriptHash pub fn bitcoin::blockdata::script::WScriptHash::from_script(witness_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::from_script_unchecked(script: &bitcoin::blockdata::script::Script) -> Self pub fn bitcoin::blockdata::script::WScriptHash::from_slice(sl: &[u8]) -> core::result::Result @@ -7246,9 +7290,7 @@ pub fn bitcoin::blockdata::script::WScriptHash::hash<__H: core::hash::Hasher>(&s pub fn bitcoin::blockdata::script::WScriptHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::script::WScriptHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::script::WScriptHash::partial_cmp(&self, other: &bitcoin::blockdata::script::WScriptHash) -> core::option::Option -pub fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::script::WScriptHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::script::WScriptHash::to_raw_hash(self) -> bitcoin_hashes::sha256::Hash pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::WScriptHash::try_from(witness_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result @@ -7418,9 +7460,7 @@ pub fn bitcoin::blockdata::transaction::TxOut::partial_cmp(&self, other: &bitcoi pub fn bitcoin::blockdata::transaction::TxOut::size(&self) -> usize pub fn bitcoin::blockdata::transaction::TxOut::weight(&self) -> bitcoin_units::weight::Weight pub fn bitcoin::blockdata::transaction::Txid::all_zeros() -> Self -pub fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::transaction::Txid::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::transaction::Txid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Txid::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::transaction::Txid::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::transaction::Txid::borrow(&self) -> &[u8] @@ -7434,11 +7474,9 @@ pub fn bitcoin::blockdata::transaction::Txid::fmt(&self, f: &mut core::fmt::Form pub fn bitcoin::blockdata::transaction::Txid::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from(tx: &bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from(tx: bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Txid -pub fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::transaction::Txid::from_engine(e: ::Engine) -> bitcoin::blockdata::transaction::Txid -pub fn bitcoin::blockdata::transaction::Txid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Txid pub fn bitcoin::blockdata::transaction::Txid::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Txid::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::transaction::Txid::hash(data: &[u8]) -> Self @@ -7446,9 +7484,7 @@ pub fn bitcoin::blockdata::transaction::Txid::hash<__H: core::hash::Hasher>(&sel pub fn bitcoin::blockdata::transaction::Txid::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::transaction::Txid::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::transaction::Txid::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Txid) -> core::option::Option -pub fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::transaction::Txid::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::transaction::Txid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Version::clone(&self) -> bitcoin::blockdata::transaction::Version pub fn bitcoin::blockdata::transaction::Version::cmp(&self, other: &bitcoin::blockdata::transaction::Version) -> core::cmp::Ordering pub fn bitcoin::blockdata::transaction::Version::consensus_decode(r: &mut R) -> core::result::Result @@ -7460,9 +7496,7 @@ pub fn bitcoin::blockdata::transaction::Version::is_standard(&self) -> bool pub fn bitcoin::blockdata::transaction::Version::non_standard(version: i32) -> bitcoin::blockdata::transaction::Version pub fn bitcoin::blockdata::transaction::Version::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Version) -> core::option::Option pub fn bitcoin::blockdata::transaction::Wtxid::all_zeros() -> Self -pub fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &::Bytes pub fn bitcoin::blockdata::transaction::Wtxid::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::blockdata::transaction::Wtxid::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::Wtxid::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::transaction::Wtxid::as_ref(&self) -> &[u8] pub fn bitcoin::blockdata::transaction::Wtxid::borrow(&self) -> &[u8] @@ -7476,11 +7510,9 @@ pub fn bitcoin::blockdata::transaction::Wtxid::fmt(&self, f: &mut core::fmt::For pub fn bitcoin::blockdata::transaction::Wtxid::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from(tx: &bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from(tx: bitcoin::blockdata::transaction::Transaction) -> bitcoin::blockdata::transaction::Wtxid -pub fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_engine(e: ::Engine) -> Self pub fn bitcoin::blockdata::transaction::Wtxid::from_engine(e: ::Engine) -> bitcoin::blockdata::transaction::Wtxid -pub fn bitcoin::blockdata::transaction::Wtxid::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::blockdata::transaction::Wtxid pub fn bitcoin::blockdata::transaction::Wtxid::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::blockdata::transaction::Wtxid::from_str(s: &str) -> core::result::Result pub fn bitcoin::blockdata::transaction::Wtxid::hash(data: &[u8]) -> Self @@ -7488,9 +7520,7 @@ pub fn bitcoin::blockdata::transaction::Wtxid::hash<__H: core::hash::Hasher>(&se pub fn bitcoin::blockdata::transaction::Wtxid::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::transaction::Wtxid::index(&self, index: I) -> &Self::Output pub fn bitcoin::blockdata::transaction::Wtxid::partial_cmp(&self, other: &bitcoin::blockdata::transaction::Wtxid) -> core::option::Option -pub fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> ::Bytes pub fn bitcoin::blockdata::transaction::Wtxid::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::blockdata::transaction::Wtxid::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::blockdata::transaction::effective_value(fee_rate: bitcoin_units::fee_rate::FeeRate, satisfaction_weight: bitcoin_units::weight::Weight, value: bitcoin_units::amount::Amount) -> core::option::Option pub fn bitcoin::blockdata::transaction::predict_weight(inputs: I, output_script_lens: O) -> bitcoin_units::weight::Weight where I: core::iter::traits::collect::IntoIterator, O: core::iter::traits::collect::IntoIterator pub fn bitcoin::blockdata::witness::Iter<'a>::next(&mut self) -> core::option::Option @@ -7730,9 +7760,7 @@ pub fn bitcoin::merkle_tree::PartialMerkleTree::from_txids(txids: &[bitcoin::blo pub fn bitcoin::merkle_tree::PartialMerkleTree::hashes(&self) -> &alloc::vec::Vec pub fn bitcoin::merkle_tree::PartialMerkleTree::num_transactions(&self) -> u32 pub fn bitcoin::merkle_tree::TxMerkleNode::all_zeros() -> Self -pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::merkle_tree::TxMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8] pub fn bitcoin::merkle_tree::TxMerkleNode::borrow(&self) -> &[u8] @@ -7745,12 +7773,10 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::engine() -> bool pub fn bitcoin::merkle_tree::TxMerkleNode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode -pub fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_engine(e: ::Engine) -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::from_engine(e: ::Engine) -> bitcoin::merkle_tree::TxMerkleNode pub fn bitcoin::merkle_tree::TxMerkleNode::from_leaf(leaf: Self::Leaf) -> Self -pub fn bitcoin::merkle_tree::TxMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::TxMerkleNode pub fn bitcoin::merkle_tree::TxMerkleNode::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::TxMerkleNode::from_str(s: &str) -> core::result::Result pub fn bitcoin::merkle_tree::TxMerkleNode::hash(data: &[u8]) -> Self @@ -7758,13 +7784,9 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::hash<__H: core::hash::Hasher>(&self, pub fn bitcoin::merkle_tree::TxMerkleNode::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::merkle_tree::TxMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::TxMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::TxMerkleNode) -> core::option::Option -pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> ::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::TxMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::WitnessMerkleNode::all_zeros() -> Self -pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_raw_hash(&self) -> &bitcoin_hashes::sha256d::Hash pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8] pub fn bitcoin::merkle_tree::WitnessMerkleNode::borrow(&self) -> &[u8] @@ -7777,12 +7799,10 @@ pub fn bitcoin::merkle_tree::WitnessMerkleNode::engine() -> bool pub fn bitcoin::merkle_tree::WitnessMerkleNode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode -pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: ::Bytes) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_engine(e: ::Engine) -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_engine(e: ::Engine) -> bitcoin::merkle_tree::WitnessMerkleNode pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_leaf(leaf: Self::Leaf) -> Self -pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_raw_hash(inner: bitcoin_hashes::sha256d::Hash) -> bitcoin::merkle_tree::WitnessMerkleNode pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::from_str(s: &str) -> core::result::Result pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash(data: &[u8]) -> Self @@ -7790,9 +7810,7 @@ pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash<__H: core::hash::Hasher>(&s pub fn bitcoin::merkle_tree::WitnessMerkleNode::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::merkle_tree::WitnessMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::WitnessMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::WitnessMerkleNode) -> core::option::Option -pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> ::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::to_raw_hash(self) -> bitcoin_hashes::sha256d::Hash pub fn bitcoin::network::Network::as_ref(&self) -> &bitcoin::consensus::params::Params pub fn bitcoin::network::Network::chain_hash(self) -> bitcoin::blockdata::constants::ChainHash pub fn bitcoin::network::Network::clone(&self) -> bitcoin::network::Network @@ -8235,9 +8253,7 @@ pub fn bitcoin::taproot::TapLeaf::fmt(&self, f: &mut core::fmt::Formatter<'_>) - pub fn bitcoin::taproot::TapLeaf::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeaf::partial_cmp(&self, other: &bitcoin::taproot::TapLeaf) -> core::option::Option pub fn bitcoin::taproot::TapLeafHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapLeafHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapLeafHash::borrow(&self) -> &[u8] @@ -8250,11 +8266,9 @@ pub fn bitcoin::taproot::TapLeafHash::eq(&self, other: &bitcoin::taproot::TapLea pub fn bitcoin::taproot::TapLeafHash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::taproot::TapLeafHash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from(script_path: bitcoin::sighash::ScriptPath<'s>) -> bitcoin::taproot::TapLeafHash -pub fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapLeafHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapLeafHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapLeafHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapLeafHash -pub fn bitcoin::taproot::TapLeafHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from_script(script: &bitcoin::blockdata::script::Script, ver: bitcoin::taproot::LeafVersion) -> bitcoin::taproot::TapLeafHash pub fn bitcoin::taproot::TapLeafHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapLeafHash::from_str(s: &str) -> core::result::Result @@ -8263,9 +8277,7 @@ pub fn bitcoin::taproot::TapLeafHash::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin::taproot::TapLeafHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::taproot::TapLeafHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapLeafHash::partial_cmp(&self, other: &bitcoin::taproot::TapLeafHash) -> core::option::Option -pub fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapLeafHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapLeafHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapLeafTag::clone(&self) -> bitcoin::taproot::TapLeafTag pub fn bitcoin::taproot::TapLeafTag::cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::cmp::Ordering pub fn bitcoin::taproot::TapLeafTag::default() -> bitcoin::taproot::TapLeafTag @@ -8274,9 +8286,7 @@ pub fn bitcoin::taproot::TapLeafTag::eq(&self, other: &bitcoin::taproot::TapLeaf pub fn bitcoin::taproot::TapLeafTag::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeafTag::partial_cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::option::Option pub fn bitcoin::taproot::TapNodeHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapNodeHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapNodeHash::assume_hidden(hash: [u8; 32]) -> bitcoin::taproot::TapNodeHash @@ -8290,12 +8300,10 @@ pub fn bitcoin::taproot::TapNodeHash::from(inner: bitcoin_hashes::sha256t::Hash< pub fn bitcoin::taproot::TapNodeHash::from(leaf: &bitcoin::taproot::LeafNode) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from(leaf: bitcoin::taproot::LeafNode) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from(leaf: bitcoin::taproot::TapLeafHash) -> bitcoin::taproot::TapNodeHash -pub fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapNodeHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapNodeHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapNodeHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_node_hashes(a: bitcoin::taproot::TapNodeHash, b: bitcoin::taproot::TapNodeHash) -> bitcoin::taproot::TapNodeHash -pub fn bitcoin::taproot::TapNodeHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_script(script: &bitcoin::blockdata::script::Script, ver: bitcoin::taproot::LeafVersion) -> bitcoin::taproot::TapNodeHash pub fn bitcoin::taproot::TapNodeHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapNodeHash::from_str(s: &str) -> core::result::Result @@ -8304,9 +8312,7 @@ pub fn bitcoin::taproot::TapNodeHash::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin::taproot::TapNodeHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::taproot::TapNodeHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapNodeHash::partial_cmp(&self, other: &bitcoin::taproot::TapNodeHash) -> core::option::Option -pub fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapNodeHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapNodeHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTree::clone(&self) -> bitcoin::taproot::TapTree pub fn bitcoin::taproot::TapTree::eq(&self, other: &bitcoin::taproot::TapTree) -> bool pub fn bitcoin::taproot::TapTree::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result @@ -8318,9 +8324,7 @@ pub fn bitcoin::taproot::TapTree::script_leaves(&self) -> bitcoin::taproot::Scri pub fn bitcoin::taproot::TapTree::try_from(builder: bitcoin::taproot::TaprootBuilder) -> core::result::Result pub fn bitcoin::taproot::TapTree::try_from(node_info: bitcoin::taproot::NodeInfo) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::all_zeros() -> Self -pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> & as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin::taproot::TapTweakHash::as_raw_hash(&self) -> &bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8] pub fn bitcoin::taproot::TapTweakHash::borrow(&self) -> &[u8] @@ -8332,12 +8336,10 @@ pub fn bitcoin::taproot::TapTweakHash::fmt(&self, f: &mut core::fmt::Formatter<' pub fn bitcoin::taproot::TapTweakHash::from(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from(spend_info: &bitcoin::taproot::TaprootSpendInfo) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from(spend_info: bitcoin::taproot::TaprootSpendInfo) -> bitcoin::taproot::TapTweakHash -pub fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: as bitcoin_hashes::Hash>::Bytes) -> Self pub fn bitcoin::taproot::TapTweakHash::from_byte_array(bytes: Self::Bytes) -> Self pub fn bitcoin::taproot::TapTweakHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> Self pub fn bitcoin::taproot::TapTweakHash::from_engine(e: as bitcoin_hashes::Hash>::Engine) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from_key_and_tweak(internal_key: bitcoin::key::UntweakedPublicKey, merkle_root: core::option::Option) -> bitcoin::taproot::TapTweakHash -pub fn bitcoin::taproot::TapTweakHash::from_raw_hash(inner: bitcoin_hashes::sha256t::Hash) -> bitcoin::taproot::TapTweakHash pub fn bitcoin::taproot::TapTweakHash::from_slice(sl: &[u8]) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::from_str(s: &str) -> core::result::Result pub fn bitcoin::taproot::TapTweakHash::hash(data: &[u8]) -> Self @@ -8345,9 +8347,7 @@ pub fn bitcoin::taproot::TapTweakHash::hash<__H: core::hash::Hasher>(&self, stat pub fn bitcoin::taproot::TapTweakHash::hash_byte_chunks(byte_slices: I) -> Self where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator pub fn bitcoin::taproot::TapTweakHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::taproot::TapTweakHash::partial_cmp(&self, other: &bitcoin::taproot::TapTweakHash) -> core::option::Option -pub fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> as bitcoin_hashes::Hash>::Bytes pub fn bitcoin::taproot::TapTweakHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::taproot::TapTweakHash::to_raw_hash(self) -> bitcoin_hashes::sha256t::Hash pub fn bitcoin::taproot::TapTweakHash::to_scalar(self) -> secp256k1::scalar::Scalar pub fn bitcoin::taproot::TapTweakTag::clone(&self) -> bitcoin::taproot::TapTweakTag pub fn bitcoin::taproot::TapTweakTag::cmp(&self, other: &bitcoin::taproot::TapTweakTag) -> core::cmp::Ordering diff --git a/api/hashes/all-features.txt b/api/hashes/all-features.txt index 8d6e86a63..3de69fd75 100644 --- a/api/hashes/all-features.txt +++ b/api/hashes/all-features.txt @@ -559,6 +559,9 @@ pub const fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> [u8; 32] +pub const fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] +pub const fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self +pub const fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &[u8; 48] pub const fn bitcoin_hashes::sha384::Hash::from_byte_array(bytes: [u8; 48]) -> Self @@ -819,7 +822,6 @@ pub fn bitcoin_hashes::sha256d::Hash::serialize(&self pub fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> Self::Bytes pub fn bitcoin_hashes::sha256t::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8] pub fn bitcoin_hashes::sha256t::Hash::borrow(&self) -> &[u8] @@ -831,7 +833,6 @@ pub fn bitcoin_hashes::sha256t::Hash::engine() -> bitcoin_hashes::sha256::Has pub fn bitcoin_hashes::sha256t::Hash::eq(&self, other: &bitcoin_hashes::sha256t::Hash) -> bool pub fn bitcoin_hashes::sha256t::Hash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: Self::Bytes) -> Self -pub fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub fn bitcoin_hashes::sha256t::Hash::from_bytes_mut(bytes: &mut [u8; 32]) -> &mut Self pub fn bitcoin_hashes::sha256t::Hash::from_bytes_ref(bytes: &[u8; 32]) -> &Self pub fn bitcoin_hashes::sha256t::Hash::from_engine(e: bitcoin_hashes::sha256::HashEngine) -> bitcoin_hashes::sha256t::Hash @@ -847,7 +848,6 @@ pub fn bitcoin_hashes::sha256t::Hash::partial_cmp(&self, other: &bitcoin_hash pub fn bitcoin_hashes::sha256t::Hash::schema_name() -> alloc::string::String pub fn bitcoin_hashes::sha256t::Hash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] pub fn bitcoin_hashes::sha256t::Tag::engine() -> bitcoin_hashes::sha256::HashEngine pub fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &Self::Bytes diff --git a/api/hashes/alloc-only.txt b/api/hashes/alloc-only.txt index 7ad1838d9..334275254 100644 --- a/api/hashes/alloc-only.txt +++ b/api/hashes/alloc-only.txt @@ -487,6 +487,9 @@ pub const fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> [u8; 32] +pub const fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] +pub const fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self +pub const fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &[u8; 48] pub const fn bitcoin_hashes::sha384::Hash::from_byte_array(bytes: [u8; 48]) -> Self @@ -694,7 +697,6 @@ pub fn bitcoin_hashes::sha256d::Hash::partial_cmp(&self, other: &bitcoin_hashes: pub fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> Self::Bytes pub fn bitcoin_hashes::sha256t::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8] pub fn bitcoin_hashes::sha256t::Hash::borrow(&self) -> &[u8] @@ -705,7 +707,6 @@ pub fn bitcoin_hashes::sha256t::Hash::engine() -> bitcoin_hashes::sha256::Has pub fn bitcoin_hashes::sha256t::Hash::eq(&self, other: &bitcoin_hashes::sha256t::Hash) -> bool pub fn bitcoin_hashes::sha256t::Hash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: Self::Bytes) -> Self -pub fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub fn bitcoin_hashes::sha256t::Hash::from_bytes_mut(bytes: &mut [u8; 32]) -> &mut Self pub fn bitcoin_hashes::sha256t::Hash::from_bytes_ref(bytes: &[u8; 32]) -> &Self pub fn bitcoin_hashes::sha256t::Hash::from_engine(e: bitcoin_hashes::sha256::HashEngine) -> bitcoin_hashes::sha256t::Hash @@ -717,7 +718,6 @@ pub fn bitcoin_hashes::sha256t::Hash::hash_byte_chunks(byte_slices: I) pub fn bitcoin_hashes::sha256t::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256t::Hash::partial_cmp(&self, other: &bitcoin_hashes::sha256t::Hash) -> core::option::Option pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] pub fn bitcoin_hashes::sha256t::Tag::engine() -> bitcoin_hashes::sha256::HashEngine pub fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &Self::Bytes diff --git a/api/hashes/no-features.txt b/api/hashes/no-features.txt index 5afb2220b..dbf7afc6f 100644 --- a/api/hashes/no-features.txt +++ b/api/hashes/no-features.txt @@ -487,6 +487,9 @@ pub const fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> [u8; 32] +pub const fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] +pub const fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self +pub const fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &[u8; 48] pub const fn bitcoin_hashes::sha384::Hash::from_byte_array(bytes: [u8; 48]) -> Self @@ -693,7 +696,6 @@ pub fn bitcoin_hashes::sha256d::Hash::partial_cmp(&self, other: &bitcoin_hashes: pub fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> Self::Bytes pub fn bitcoin_hashes::sha256t::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8] pub fn bitcoin_hashes::sha256t::Hash::borrow(&self) -> &[u8] @@ -704,7 +706,6 @@ pub fn bitcoin_hashes::sha256t::Hash::engine() -> bitcoin_hashes::sha256::Has pub fn bitcoin_hashes::sha256t::Hash::eq(&self, other: &bitcoin_hashes::sha256t::Hash) -> bool pub fn bitcoin_hashes::sha256t::Hash::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: Self::Bytes) -> Self -pub fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub fn bitcoin_hashes::sha256t::Hash::from_bytes_mut(bytes: &mut [u8; 32]) -> &mut Self pub fn bitcoin_hashes::sha256t::Hash::from_bytes_ref(bytes: &[u8; 32]) -> &Self pub fn bitcoin_hashes::sha256t::Hash::from_engine(e: bitcoin_hashes::sha256::HashEngine) -> bitcoin_hashes::sha256t::Hash @@ -716,7 +717,6 @@ pub fn bitcoin_hashes::sha256t::Hash::hash_byte_chunks(byte_slices: I) pub fn bitcoin_hashes::sha256t::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256t::Hash::partial_cmp(&self, other: &bitcoin_hashes::sha256t::Hash) -> core::option::Option pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] pub fn bitcoin_hashes::sha256t::Tag::engine() -> bitcoin_hashes::sha256::HashEngine pub fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &Self::Bytes From 8869f35a69b606527c04aba10f0105e9c23ed8b8 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Sun, 16 Jun 2024 15:34:18 +0000 Subject: [PATCH 4/5] hashes: drop the `all_zeros` method on arbitrary hashes Manually implement it for Wtxid, Txid and BlockHash, where the all-zero "hash" has a consensus meaning. But in general we should not be implementing this method unless we have a good reason to do so. It can be emulated or implemeted in terms of from_byte_array. The use of Wtxid::all_zeros is obscure and specific enough that I am tempted to drop it. But for txid and blockhash, the 0 hash appears in actual blockdata and we should keep it. All other uses of all_zeros were either in test code or in places where the specific hash was not important and [u8; 32] was a more appropriate type. --- bitcoin/src/blockdata/block.rs | 7 +++++++ bitcoin/src/blockdata/transaction.rs | 18 ++++++++++++++++++ bitcoin/src/crypto/sighash.rs | 4 ++-- bitcoin/src/merkle_tree/block.rs | 2 +- bitcoin/src/p2p/message_blockdata.rs | 3 +-- bitcoin/src/pow.rs | 6 +++--- bitcoin/src/psbt/serialize.rs | 3 ++- hashes/src/hmac.rs | 5 ----- hashes/src/internal_macros.rs | 9 --------- hashes/src/lib.rs | 7 ------- hashes/src/sha256t.rs | 7 ------- hashes/src/util.rs | 17 ++++------------- 12 files changed, 38 insertions(+), 50 deletions(-) diff --git a/bitcoin/src/blockdata/block.rs b/bitcoin/src/blockdata/block.rs index 082a0fdf1..39ca71652 100644 --- a/bitcoin/src/blockdata/block.rs +++ b/bitcoin/src/blockdata/block.rs @@ -28,6 +28,13 @@ hashes::hash_newtype! { pub struct WitnessCommitment(sha256d::Hash); } impl_hashencode!(BlockHash); +impl BlockHash { + /// The "all zeros" blockhash. + /// + /// This is not the hash of a real block. It is used as the previous blockhash + /// of the genesis block and in other placeholder contexts. + pub fn all_zeros() -> Self { Self::from_byte_array([0; 32]) } +} /// Bitcoin block header. /// diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 6cd5619ae..b11f9c903 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -49,6 +49,24 @@ hashes::hash_newtype! { impl_hashencode!(Txid); impl_hashencode!(Wtxid); +impl Txid { + /// The "all zeros" TXID. + /// + /// This is used as the "txid" of the dummy input of a coinbase transaction. It is + /// not a real TXID and should not be used in other contexts. + pub fn all_zeros() -> Self { Self::from_byte_array([0; 32]) } +} + +impl Wtxid { + /// The "all zeros" wTXID. + /// + /// This is used as the wTXID for the coinbase transaction when constructing blocks, + /// since the coinbase transaction contains a commitment to all transactions' wTXIDs + /// but naturally cannot commit to its own. It is not a real wTXID and should not be + /// used in other contexts. + pub fn all_zeros() -> Self { Self::from_byte_array([0; 32]) } +} + /// The marker MUST be a 1-byte zero value: 0x00. (BIP-141) const SEGWIT_MARKER: u8 = 0x00; /// The flag MUST be a 1-byte non-zero value. Currently, 0x01 MUST be used. (BIP-141) diff --git a/bitcoin/src/crypto/sighash.rs b/bitcoin/src/crypto/sighash.rs index 51ef6184a..124a025fc 100644 --- a/bitcoin/src/crypto/sighash.rs +++ b/bitcoin/src/crypto/sighash.rs @@ -781,7 +781,7 @@ impl> SighashCache { value: Amount, sighash_type: EcdsaSighashType, ) -> Result<(), SigningDataError> { - let zero_hash = sha256d::Hash::all_zeros(); + let zero_hash = [0; 32]; let (sighash, anyone_can_pay) = sighash_type.split_anyonecanpay_flag(); @@ -819,7 +819,7 @@ impl> SighashCache { let hash = LegacySighash::from_engine(single_enc); writer.write_all(hash.as_byte_array())?; } else { - writer.write_all(zero_hash.as_byte_array())?; + writer.write_all(&zero_hash)?; } self.tx.borrow().lock_time.consensus_encode(writer)?; diff --git a/bitcoin/src/merkle_tree/block.rs b/bitcoin/src/merkle_tree/block.rs index 20bc1d1ed..f791f70f3 100644 --- a/bitcoin/src/merkle_tree/block.rs +++ b/bitcoin/src/merkle_tree/block.rs @@ -603,7 +603,7 @@ mod tests { // Check that it has the same merkle root as the original, and a valid one assert_eq!(merkle_root_1, merkle_root_2); - assert_ne!(merkle_root_2, TxMerkleNode::all_zeros()); + assert_ne!(merkle_root_2, TxMerkleNode::from_byte_array([0; 32])); // check that it contains the matched transactions (in the same order!) assert_eq!(match_txid1, match_txid2); diff --git a/bitcoin/src/p2p/message_blockdata.rs b/bitcoin/src/p2p/message_blockdata.rs index d786f8274..44ae0fa68 100644 --- a/bitcoin/src/p2p/message_blockdata.rs +++ b/bitcoin/src/p2p/message_blockdata.rs @@ -5,7 +5,6 @@ //! This module describes network messages which are used for passing //! Bitcoin data (blocks and transactions) around. -use hashes::sha256d; use io::{BufRead, Write}; use crate::block::BlockHash; @@ -67,7 +66,7 @@ impl Encodable for Inventory { }; } Ok(match *self { - Inventory::Error => encode_inv!(0, sha256d::Hash::all_zeros()), + Inventory::Error => encode_inv!(0, [0; 32]), Inventory::Transaction(ref t) => encode_inv!(1, t), Inventory::Block(ref b) => encode_inv!(2, b), Inventory::CompactBlock(ref b) => encode_inv!(4, b), diff --git a/bitcoin/src/pow.rs b/bitcoin/src/pow.rs index bc5fb076c..0c9dec5cf 100644 --- a/bitcoin/src/pow.rs +++ b/bitcoin/src/pow.rs @@ -1795,7 +1795,7 @@ mod tests { let current = Header { version: Version::ONE, prev_blockhash: BlockHash::all_zeros(), - merkle_root: TxMerkleNode::all_zeros(), + merkle_root: TxMerkleNode::from_byte_array([0; 32]), time: 1599332177, bits: epoch_start.bits, nonce: epoch_start.nonce, @@ -1817,7 +1817,7 @@ mod tests { let epoch_start = Header { version: Version::ONE, prev_blockhash: BlockHash::all_zeros(), - merkle_root: TxMerkleNode::all_zeros(), + merkle_root: TxMerkleNode::from_byte_array([0; 32]), time: 1599332844, bits: starting_bits, nonce: 0, @@ -1827,7 +1827,7 @@ mod tests { let current = Header { version: Version::ONE, prev_blockhash: BlockHash::all_zeros(), - merkle_root: TxMerkleNode::all_zeros(), + merkle_root: TxMerkleNode::from_byte_array([0; 32]), time: 1600591200, bits: starting_bits, nonce: 0, diff --git a/bitcoin/src/psbt/serialize.rs b/bitcoin/src/psbt/serialize.rs index 4ad15fa5f..d3659aed6 100644 --- a/bitcoin/src/psbt/serialize.rs +++ b/bitcoin/src/psbt/serialize.rs @@ -404,6 +404,7 @@ mod tests { #[test] fn taptree_hidden() { + let dummy_hash = TapNodeHash::from_byte_array([0x12; 32]); let mut builder = compose_taproot_builder(0x51, &[2, 2, 2]); builder = builder .add_leaf_with_ver( @@ -412,7 +413,7 @@ mod tests { LeafVersion::from_consensus(0xC2).unwrap(), ) .unwrap(); - builder = builder.add_hidden_node(3, TapNodeHash::all_zeros()).unwrap(); + builder = builder.add_hidden_node(3, dummy_hash).unwrap(); assert!(TapTree::try_from(builder).is_err()); } diff --git a/hashes/src/hmac.rs b/hashes/src/hmac.rs index 90745c6a6..80268f489 100644 --- a/hashes/src/hmac.rs +++ b/hashes/src/hmac.rs @@ -147,11 +147,6 @@ impl Hash for Hmac { fn as_byte_array(&self) -> &Self::Bytes { self.0.as_byte_array() } fn from_byte_array(bytes: T::Bytes) -> Self { Hmac(T::from_byte_array(bytes)) } - - fn all_zeros() -> Self { - let zeros = T::all_zeros(); - Hmac(zeros) - } } #[cfg(feature = "serde")] diff --git a/hashes/src/internal_macros.rs b/hashes/src/internal_macros.rs index 912ace246..41006c4df 100644 --- a/hashes/src/internal_macros.rs +++ b/hashes/src/internal_macros.rs @@ -119,8 +119,6 @@ macro_rules! hash_trait_impls { fn as_byte_array(&self) -> &Self::Bytes { self.as_byte_array() } fn from_byte_array(bytes: Self::Bytes) -> Self { Self::from_byte_array(bytes) } - - fn all_zeros() -> Self { Self::all_zeros() } } } } @@ -218,13 +216,6 @@ macro_rules! hash_type { pub const fn from_byte_array(bytes: [u8; $bits / 8]) -> Self { Self::internal_new(bytes) } - - /// Returns an all zero hash. - /// - /// An all zeros hash is a made up construct because there is not a known input that can create - /// it, however it is used in various places in Bitcoin e.g., the Bitcoin genesis block's - /// previous blockhash and the coinbase transaction's outpoint txid. - pub const fn all_zeros() -> Self { Hash::internal_new([0x00; $bits / 8]) } } #[cfg(feature = "schemars")] diff --git a/hashes/src/lib.rs b/hashes/src/lib.rs index df3325bd1..f12f7de8c 100644 --- a/hashes/src/lib.rs +++ b/hashes/src/lib.rs @@ -214,13 +214,6 @@ pub trait Hash: /// Constructs a hash from the underlying byte array. fn from_byte_array(bytes: Self::Bytes) -> Self; - - /// Returns an all zero hash. - /// - /// An all zeros hash is a made up construct because there is not a known input that can create - /// it, however it is used in various places in Bitcoin e.g., the Bitcoin genesis block's - /// previous blockhash and the coinbase transaction's outpoint txid. - fn all_zeros() -> Self; } /// Attempted to create a hash from an invalid length slice. diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index a315f7f32..20924d633 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -117,13 +117,6 @@ where /// Constructs a hash from the underlying byte array. pub const fn from_byte_array(bytes: [u8; 32]) -> Self { Self::internal_new(bytes) } - - /// Returns an all zero hash. - /// - /// An all zeros hash is a made up construct because there is not a known input that can create - /// it, however it is used in various places in Bitcoin e.g., the Bitcoin genesis block's - /// previous blockhash and the coinbase transaction's outpoint txid. - pub fn all_zeros() -> Self { Hash::internal_new([0x00; 32]) } } impl Copy for Hash {} diff --git a/hashes/src/util.rs b/hashes/src/util.rs index fd9589e32..51f25b4a2 100644 --- a/hashes/src/util.rs +++ b/hashes/src/util.rs @@ -263,17 +263,6 @@ macro_rules! hash_newtype { pub const fn from_byte_array(bytes: <$hash as $crate::Hash>::Bytes) -> Self { $newtype(<$hash>::from_byte_array(bytes)) } - - /// Returns an all zero hash. - /// - /// An all zeros hash is a made up construct because there is not a known input that can create - /// it, however it is used in various places in Bitcoin e.g., the Bitcoin genesis block's - /// previous blockhash and the coinbase transaction's outpoint txid. - pub fn all_zeros() -> Self { - let zeros = <$hash>::all_zeros(); - $newtype(zeros) - } - } impl $crate::_export::_core::convert::From<$hash> for $newtype { @@ -309,8 +298,6 @@ macro_rules! hash_newtype { fn as_byte_array(&self) -> &Self::Bytes { self.as_byte_array() } fn from_byte_array(bytes: Self::Bytes) -> Self { Self::from_byte_array(bytes) } - - fn all_zeros() -> Self { Self::all_zeros() } } impl $crate::_export::_core::str::FromStr for $newtype { @@ -462,6 +449,10 @@ mod test { struct TestHash(crate::sha256d::Hash); } + impl TestHash { + fn all_zeros() -> Self { Self::from_byte_array([0; 32]) } + } + #[test] fn display() { let want = "0000000000000000000000000000000000000000000000000000000000000000"; From 4652ce20ed8e397d297d0a2e91b61730dcbdf498 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 19 Jun 2024 15:17:23 +0000 Subject: [PATCH 5/5] API changes for "delete `all_zeros`" This is the kind of diff that is nicer to read than the source code. --- api/bitcoin/all-features.txt | 16 ---------------- api/bitcoin/default-features.txt | 16 ---------------- api/bitcoin/no-features.txt | 16 ---------------- api/hashes/all-features.txt | 21 --------------------- api/hashes/alloc-only.txt | 21 --------------------- api/hashes/no-features.txt | 21 --------------------- 6 files changed, 111 deletions(-) diff --git a/api/bitcoin/all-features.txt b/api/bitcoin/all-features.txt index 5c182afa6..17839b267 100644 --- a/api/bitcoin/all-features.txt +++ b/api/bitcoin/all-features.txt @@ -7007,7 +7007,6 @@ pub fn bitcoin::EcdsaSighashType::from_str(s: &str) -> core::result::Result(&self, state: &mut __H) pub fn bitcoin::EcdsaSighashType::serialize(&self, serializer: S) -> core::result::Result<::Ok, ::Error> where S: serde::ser::Serializer pub fn bitcoin::EcdsaSighashType::to_u32(self) -> u32 -pub fn bitcoin::LegacySighash::all_zeros() -> Self pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8] @@ -7056,7 +7055,6 @@ pub fn bitcoin::PrivateKey::public_key(&self, se pub fn bitcoin::PrivateKey::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin::PrivateKey::to_bytes(self) -> alloc::vec::Vec pub fn bitcoin::PrivateKey::to_wif(self) -> alloc::string::String -pub fn bitcoin::PubkeyHash::all_zeros() -> Self pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8] @@ -7109,7 +7107,6 @@ pub fn bitcoin::PublicKey::to_sort_key(self) -> bitcoin::key::SortKey pub fn bitcoin::PublicKey::verify(&self, secp: &secp256k1::Secp256k1, msg: &secp256k1::Message, sig: &bitcoin::ecdsa::Signature) -> core::result::Result<(), secp256k1::Error> pub fn bitcoin::PublicKey::wpubkey_hash(&self) -> core::result::Result pub fn bitcoin::PublicKey::write_into(&self, writer: &mut W) -> core::result::Result<(), bitcoin_io::error::Error> -pub fn bitcoin::SegwitV0Sighash::all_zeros() -> Self pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8] @@ -7134,7 +7131,6 @@ pub fn bitcoin::SegwitV0Sighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::SegwitV0Sighash::partial_cmp(&self, other: &bitcoin::SegwitV0Sighash) -> core::option::Option pub fn bitcoin::SegwitV0Sighash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::TapSighash::all_zeros() -> Self pub fn bitcoin::TapSighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8] @@ -7177,7 +7173,6 @@ pub fn bitcoin::TapSighashType::from_str(s: &str) -> core::result::Result(&self, state: &mut __H) pub fn bitcoin::TapSighashType::partial_cmp(&self, other: &bitcoin::TapSighashType) -> core::option::Option pub fn bitcoin::TapSighashType::serialize(&self, serializer: S) -> core::result::Result<::Ok, ::Error> where S: serde::ser::Serializer -pub fn bitcoin::WPubkeyHash::all_zeros() -> Self pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8] @@ -7426,7 +7421,6 @@ pub fn bitcoin::bip158::Error::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> c pub fn bitcoin::bip158::Error::from(io: bitcoin_io::error::Error) -> Self pub fn bitcoin::bip158::Error::from(never: core::convert::Infallible) -> Self pub fn bitcoin::bip158::Error::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)> -pub fn bitcoin::bip158::FilterHash::all_zeros() -> Self pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8] @@ -7454,7 +7448,6 @@ pub fn bitcoin::bip158::FilterHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHash::partial_cmp(&self, other: &bitcoin::bip158::FilterHash) -> core::option::Option pub fn bitcoin::bip158::FilterHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHeader::all_zeros() -> Self pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8] @@ -7605,7 +7598,6 @@ pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::clone(&self) -> bitcoin: pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::eq(&self, other: &bitcoin::bip32::InvalidBase58PayloadLengthError) -> bool pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::invalid_base58_payload_length(&self) -> usize -pub fn bitcoin::bip32::XKeyIdentifier::all_zeros() -> Self pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8; 20] pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8] @@ -7757,7 +7749,6 @@ pub fn bitcoin::blockdata::block::Version::is_signalling_soft_fork(&self, bit: u pub fn bitcoin::blockdata::block::Version::partial_cmp(&self, other: &bitcoin::blockdata::block::Version) -> core::option::Option pub fn bitcoin::blockdata::block::Version::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde::ser::Serializer>::Ok, <__S as serde::ser::Serializer>::Error> where __S: serde::ser::Serializer pub fn bitcoin::blockdata::block::Version::to_consensus(self) -> i32 -pub fn bitcoin::blockdata::block::WitnessCommitment::all_zeros() -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8] @@ -8266,7 +8257,6 @@ pub fn bitcoin::blockdata::script::ScriptBuf::reserve_exact(&mut self, additiona pub fn bitcoin::blockdata::script::ScriptBuf::scan_and_push_verify(&mut self) pub fn bitcoin::blockdata::script::ScriptBuf::serialize(&self, serializer: S) -> core::result::Result<::Ok, ::Error> where S: serde::ser::Serializer pub fn bitcoin::blockdata::script::ScriptBuf::with_capacity(capacity: usize) -> Self -pub fn bitcoin::blockdata::script::ScriptHash::all_zeros() -> Self pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8] @@ -8297,7 +8287,6 @@ pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> Self::Byte pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result -pub fn bitcoin::blockdata::script::WScriptHash::all_zeros() -> Self pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8] @@ -8880,7 +8869,6 @@ pub fn bitcoin::merkle_tree::PartialMerkleTree::fmt(&self, f: &mut core::fmt::Fo pub fn bitcoin::merkle_tree::PartialMerkleTree::from_txids(txids: &[bitcoin::blockdata::transaction::Txid], matches: &[bool]) -> Self pub fn bitcoin::merkle_tree::PartialMerkleTree::hashes(&self) -> &alloc::vec::Vec pub fn bitcoin::merkle_tree::PartialMerkleTree::num_transactions(&self) -> u32 -pub fn bitcoin::merkle_tree::TxMerkleNode::all_zeros() -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8] @@ -8909,7 +8897,6 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::index(&self, index: I) -> &Self::Outp pub fn bitcoin::merkle_tree::TxMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::TxMerkleNode) -> core::option::Option pub fn bitcoin::merkle_tree::TxMerkleNode::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::all_zeros() -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8] @@ -9644,7 +9631,6 @@ pub fn bitcoin::taproot::TapLeaf::fmt(&self, f: &mut core::fmt::Formatter<'_>) - pub fn bitcoin::taproot::TapLeaf::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeaf::partial_cmp(&self, other: &bitcoin::taproot::TapLeaf) -> core::option::Option pub fn bitcoin::taproot::TapLeaf::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde::ser::Serializer>::Ok, <__S as serde::ser::Serializer>::Error> where __S: serde::ser::Serializer -pub fn bitcoin::taproot::TapLeafHash::all_zeros() -> Self pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8] @@ -9680,7 +9666,6 @@ pub fn bitcoin::taproot::TapLeafTag::engine() -> bitcoin_hashes::sha256::HashEng pub fn bitcoin::taproot::TapLeafTag::eq(&self, other: &bitcoin::taproot::TapLeafTag) -> bool pub fn bitcoin::taproot::TapLeafTag::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeafTag::partial_cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::option::Option -pub fn bitcoin::taproot::TapNodeHash::all_zeros() -> Self pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8] @@ -9723,7 +9708,6 @@ pub fn bitcoin::taproot::TapTree::script_leaves(&self) -> bitcoin::taproot::Scri pub fn bitcoin::taproot::TapTree::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde::ser::Serializer>::Ok, <__S as serde::ser::Serializer>::Error> where __S: serde::ser::Serializer pub fn bitcoin::taproot::TapTree::try_from(builder: bitcoin::taproot::TaprootBuilder) -> core::result::Result pub fn bitcoin::taproot::TapTree::try_from(node_info: bitcoin::taproot::NodeInfo) -> core::result::Result -pub fn bitcoin::taproot::TapTweakHash::all_zeros() -> Self pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8] diff --git a/api/bitcoin/default-features.txt b/api/bitcoin/default-features.txt index e68e59436..92ebc725a 100644 --- a/api/bitcoin/default-features.txt +++ b/api/bitcoin/default-features.txt @@ -6697,7 +6697,6 @@ pub fn bitcoin::EcdsaSighashType::from_standard(n: u32) -> core::result::Result< pub fn bitcoin::EcdsaSighashType::from_str(s: &str) -> core::result::Result pub fn bitcoin::EcdsaSighashType::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::EcdsaSighashType::to_u32(self) -> u32 -pub fn bitcoin::LegacySighash::all_zeros() -> Self pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8] @@ -6740,7 +6739,6 @@ pub fn bitcoin::PrivateKey::new_uncompressed(key: secp256k1::key::SecretKey, net pub fn bitcoin::PrivateKey::public_key(&self, secp: &secp256k1::Secp256k1) -> bitcoin::PublicKey pub fn bitcoin::PrivateKey::to_bytes(self) -> alloc::vec::Vec pub fn bitcoin::PrivateKey::to_wif(self) -> alloc::string::String -pub fn bitcoin::PubkeyHash::all_zeros() -> Self pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8] @@ -6788,7 +6786,6 @@ pub fn bitcoin::PublicKey::to_sort_key(self) -> bitcoin::key::SortKey pub fn bitcoin::PublicKey::verify(&self, secp: &secp256k1::Secp256k1, msg: &secp256k1::Message, sig: &bitcoin::ecdsa::Signature) -> core::result::Result<(), secp256k1::Error> pub fn bitcoin::PublicKey::wpubkey_hash(&self) -> core::result::Result pub fn bitcoin::PublicKey::write_into(&self, writer: &mut W) -> core::result::Result<(), bitcoin_io::error::Error> -pub fn bitcoin::SegwitV0Sighash::all_zeros() -> Self pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8] @@ -6810,7 +6807,6 @@ pub fn bitcoin::SegwitV0Sighash::hash_byte_chunks(byte_slices: I) -> Self pub fn bitcoin::SegwitV0Sighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::SegwitV0Sighash::partial_cmp(&self, other: &bitcoin::SegwitV0Sighash) -> core::option::Option pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::TapSighash::all_zeros() -> Self pub fn bitcoin::TapSighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8] @@ -6848,7 +6844,6 @@ pub fn bitcoin::TapSighashType::from_consensus_u8(sighash_type: u8) -> core::res pub fn bitcoin::TapSighashType::from_str(s: &str) -> core::result::Result pub fn bitcoin::TapSighashType::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::TapSighashType::partial_cmp(&self, other: &bitcoin::TapSighashType) -> core::option::Option -pub fn bitcoin::WPubkeyHash::all_zeros() -> Self pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8] @@ -7090,7 +7085,6 @@ pub fn bitcoin::bip158::Error::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> c pub fn bitcoin::bip158::Error::from(io: bitcoin_io::error::Error) -> Self pub fn bitcoin::bip158::Error::from(never: core::convert::Infallible) -> Self pub fn bitcoin::bip158::Error::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)> -pub fn bitcoin::bip158::FilterHash::all_zeros() -> Self pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8] @@ -7115,7 +7109,6 @@ pub fn bitcoin::bip158::FilterHash::hash_byte_chunks(byte_slices: I) -> Se pub fn bitcoin::bip158::FilterHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHash::partial_cmp(&self, other: &bitcoin::bip158::FilterHash) -> core::option::Option pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHeader::all_zeros() -> Self pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8] @@ -7255,7 +7248,6 @@ pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::clone(&self) -> bitcoin: pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::eq(&self, other: &bitcoin::bip32::InvalidBase58PayloadLengthError) -> bool pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::invalid_base58_payload_length(&self) -> usize -pub fn bitcoin::bip32::XKeyIdentifier::all_zeros() -> Self pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8; 20] pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8] @@ -7391,7 +7383,6 @@ pub fn bitcoin::blockdata::block::Version::hash<__H: core::hash::Hasher>(&self, pub fn bitcoin::blockdata::block::Version::is_signalling_soft_fork(&self, bit: u8) -> bool pub fn bitcoin::blockdata::block::Version::partial_cmp(&self, other: &bitcoin::blockdata::block::Version) -> core::option::Option pub fn bitcoin::blockdata::block::Version::to_consensus(self) -> i32 -pub fn bitcoin::blockdata::block::WitnessCommitment::all_zeros() -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8] @@ -7883,7 +7874,6 @@ pub fn bitcoin::blockdata::script::ScriptBuf::reserve(&mut self, additional_len: pub fn bitcoin::blockdata::script::ScriptBuf::reserve_exact(&mut self, additional_len: usize) pub fn bitcoin::blockdata::script::ScriptBuf::scan_and_push_verify(&mut self) pub fn bitcoin::blockdata::script::ScriptBuf::with_capacity(capacity: usize) -> Self -pub fn bitcoin::blockdata::script::ScriptHash::all_zeros() -> Self pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8] @@ -7911,7 +7901,6 @@ pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> Self::Byte pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result -pub fn bitcoin::blockdata::script::WScriptHash::all_zeros() -> Self pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8] @@ -8424,7 +8413,6 @@ pub fn bitcoin::merkle_tree::PartialMerkleTree::fmt(&self, f: &mut core::fmt::Fo pub fn bitcoin::merkle_tree::PartialMerkleTree::from_txids(txids: &[bitcoin::blockdata::transaction::Txid], matches: &[bool]) -> Self pub fn bitcoin::merkle_tree::PartialMerkleTree::hashes(&self) -> &alloc::vec::Vec pub fn bitcoin::merkle_tree::PartialMerkleTree::num_transactions(&self) -> u32 -pub fn bitcoin::merkle_tree::TxMerkleNode::all_zeros() -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8] @@ -8450,7 +8438,6 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::hash_byte_chunks(byte_slices: I pub fn bitcoin::merkle_tree::TxMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::TxMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::TxMerkleNode) -> core::option::Option pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::all_zeros() -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8] @@ -9141,7 +9128,6 @@ pub fn bitcoin::taproot::TapLeaf::eq(&self, other: &bitcoin::taproot::TapLeaf) - pub fn bitcoin::taproot::TapLeaf::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::taproot::TapLeaf::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeaf::partial_cmp(&self, other: &bitcoin::taproot::TapLeaf) -> core::option::Option -pub fn bitcoin::taproot::TapLeafHash::all_zeros() -> Self pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8] @@ -9174,7 +9160,6 @@ pub fn bitcoin::taproot::TapLeafTag::engine() -> bitcoin_hashes::sha256::HashEng pub fn bitcoin::taproot::TapLeafTag::eq(&self, other: &bitcoin::taproot::TapLeafTag) -> bool pub fn bitcoin::taproot::TapLeafTag::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeafTag::partial_cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::option::Option -pub fn bitcoin::taproot::TapNodeHash::all_zeros() -> Self pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8] @@ -9212,7 +9197,6 @@ pub fn bitcoin::taproot::TapTree::root_hash(&self) -> bitcoin::taproot::TapNodeH pub fn bitcoin::taproot::TapTree::script_leaves(&self) -> bitcoin::taproot::ScriptLeaves<'_> pub fn bitcoin::taproot::TapTree::try_from(builder: bitcoin::taproot::TaprootBuilder) -> core::result::Result pub fn bitcoin::taproot::TapTree::try_from(node_info: bitcoin::taproot::NodeInfo) -> core::result::Result -pub fn bitcoin::taproot::TapTweakHash::all_zeros() -> Self pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8] diff --git a/api/bitcoin/no-features.txt b/api/bitcoin/no-features.txt index 5af03e656..86c20a41f 100644 --- a/api/bitcoin/no-features.txt +++ b/api/bitcoin/no-features.txt @@ -6067,7 +6067,6 @@ pub fn bitcoin::EcdsaSighashType::from_standard(n: u32) -> core::result::Result< pub fn bitcoin::EcdsaSighashType::from_str(s: &str) -> core::result::Result pub fn bitcoin::EcdsaSighashType::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::EcdsaSighashType::to_u32(self) -> u32 -pub fn bitcoin::LegacySighash::all_zeros() -> Self pub fn bitcoin::LegacySighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::LegacySighash::as_ref(&self) -> &[u8] @@ -6110,7 +6109,6 @@ pub fn bitcoin::PrivateKey::new_uncompressed(key: secp256k1::key::SecretKey, net pub fn bitcoin::PrivateKey::public_key(&self, secp: &secp256k1::Secp256k1) -> bitcoin::PublicKey pub fn bitcoin::PrivateKey::to_bytes(self) -> alloc::vec::Vec pub fn bitcoin::PrivateKey::to_wif(self) -> alloc::string::String -pub fn bitcoin::PubkeyHash::all_zeros() -> Self pub fn bitcoin::PubkeyHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::PubkeyHash::as_ref(&self) -> &[u8] @@ -6158,7 +6156,6 @@ pub fn bitcoin::PublicKey::to_sort_key(self) -> bitcoin::key::SortKey pub fn bitcoin::PublicKey::verify(&self, secp: &secp256k1::Secp256k1, msg: &secp256k1::Message, sig: &bitcoin::ecdsa::Signature) -> core::result::Result<(), secp256k1::Error> pub fn bitcoin::PublicKey::wpubkey_hash(&self) -> core::result::Result pub fn bitcoin::PublicKey::write_into(&self, writer: &mut W) -> core::result::Result<(), bitcoin_io::error::Error> -pub fn bitcoin::SegwitV0Sighash::all_zeros() -> Self pub fn bitcoin::SegwitV0Sighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::SegwitV0Sighash::as_ref(&self) -> &[u8] @@ -6180,7 +6177,6 @@ pub fn bitcoin::SegwitV0Sighash::hash_byte_chunks(byte_slices: I) -> Self pub fn bitcoin::SegwitV0Sighash::index(&self, index: I) -> &Self::Output pub fn bitcoin::SegwitV0Sighash::partial_cmp(&self, other: &bitcoin::SegwitV0Sighash) -> core::option::Option pub fn bitcoin::SegwitV0Sighash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::TapSighash::all_zeros() -> Self pub fn bitcoin::TapSighash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::TapSighash::as_ref(&self) -> &[u8] @@ -6218,7 +6214,6 @@ pub fn bitcoin::TapSighashType::from_consensus_u8(sighash_type: u8) -> core::res pub fn bitcoin::TapSighashType::from_str(s: &str) -> core::result::Result pub fn bitcoin::TapSighashType::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::TapSighashType::partial_cmp(&self, other: &bitcoin::TapSighashType) -> core::option::Option -pub fn bitcoin::WPubkeyHash::all_zeros() -> Self pub fn bitcoin::WPubkeyHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::WPubkeyHash::as_ref(&self) -> &[u8] @@ -6453,7 +6448,6 @@ pub fn bitcoin::bip158::Error::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> c pub fn bitcoin::bip158::Error::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::result::Result<(), core::fmt::Error> pub fn bitcoin::bip158::Error::from(io: bitcoin_io::error::Error) -> Self pub fn bitcoin::bip158::Error::from(never: core::convert::Infallible) -> Self -pub fn bitcoin::bip158::FilterHash::all_zeros() -> Self pub fn bitcoin::bip158::FilterHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHash::as_ref(&self) -> &[u8] @@ -6478,7 +6472,6 @@ pub fn bitcoin::bip158::FilterHash::hash_byte_chunks(byte_slices: I) -> Se pub fn bitcoin::bip158::FilterHash::index(&self, index: I) -> &Self::Output pub fn bitcoin::bip158::FilterHash::partial_cmp(&self, other: &bitcoin::bip158::FilterHash) -> core::option::Option pub fn bitcoin::bip158::FilterHash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::bip158::FilterHeader::all_zeros() -> Self pub fn bitcoin::bip158::FilterHeader::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8; 32] pub fn bitcoin::bip158::FilterHeader::as_ref(&self) -> &[u8] @@ -6617,7 +6610,6 @@ pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::clone(&self) -> bitcoin: pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::eq(&self, other: &bitcoin::bip32::InvalidBase58PayloadLengthError) -> bool pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::bip32::InvalidBase58PayloadLengthError::invalid_base58_payload_length(&self) -> usize -pub fn bitcoin::bip32::XKeyIdentifier::all_zeros() -> Self pub fn bitcoin::bip32::XKeyIdentifier::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8; 20] pub fn bitcoin::bip32::XKeyIdentifier::as_ref(&self) -> &[u8] @@ -6751,7 +6743,6 @@ pub fn bitcoin::blockdata::block::Version::hash<__H: core::hash::Hasher>(&self, pub fn bitcoin::blockdata::block::Version::is_signalling_soft_fork(&self, bit: u8) -> bool pub fn bitcoin::blockdata::block::Version::partial_cmp(&self, other: &bitcoin::blockdata::block::Version) -> core::option::Option pub fn bitcoin::blockdata::block::Version::to_consensus(self) -> i32 -pub fn bitcoin::blockdata::block::WitnessCommitment::all_zeros() -> Self pub fn bitcoin::blockdata::block::WitnessCommitment::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::block::WitnessCommitment::as_ref(&self) -> &[u8] @@ -7238,7 +7229,6 @@ pub fn bitcoin::blockdata::script::ScriptBuf::reserve(&mut self, additional_len: pub fn bitcoin::blockdata::script::ScriptBuf::reserve_exact(&mut self, additional_len: usize) pub fn bitcoin::blockdata::script::ScriptBuf::scan_and_push_verify(&mut self) pub fn bitcoin::blockdata::script::ScriptBuf::with_capacity(capacity: usize) -> Self -pub fn bitcoin::blockdata::script::ScriptHash::all_zeros() -> Self pub fn bitcoin::blockdata::script::ScriptHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8; 20] pub fn bitcoin::blockdata::script::ScriptHash::as_ref(&self) -> &[u8] @@ -7266,7 +7256,6 @@ pub fn bitcoin::blockdata::script::ScriptHash::to_byte_array(self) -> Self::Byte pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::Script) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: &bitcoin::blockdata::script::ScriptBuf) -> core::result::Result pub fn bitcoin::blockdata::script::ScriptHash::try_from(redeem_script: bitcoin::blockdata::script::ScriptBuf) -> core::result::Result -pub fn bitcoin::blockdata::script::WScriptHash::all_zeros() -> Self pub fn bitcoin::blockdata::script::WScriptHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::blockdata::script::WScriptHash::as_ref(&self) -> &[u8] @@ -7759,7 +7748,6 @@ pub fn bitcoin::merkle_tree::PartialMerkleTree::fmt(&self, f: &mut core::fmt::Fo pub fn bitcoin::merkle_tree::PartialMerkleTree::from_txids(txids: &[bitcoin::blockdata::transaction::Txid], matches: &[bool]) -> Self pub fn bitcoin::merkle_tree::PartialMerkleTree::hashes(&self) -> &alloc::vec::Vec pub fn bitcoin::merkle_tree::PartialMerkleTree::num_transactions(&self) -> u32 -pub fn bitcoin::merkle_tree::TxMerkleNode::all_zeros() -> Self pub fn bitcoin::merkle_tree::TxMerkleNode::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::TxMerkleNode::as_ref(&self) -> &[u8] @@ -7785,7 +7773,6 @@ pub fn bitcoin::merkle_tree::TxMerkleNode::hash_byte_chunks(byte_slices: I pub fn bitcoin::merkle_tree::TxMerkleNode::index(&self, index: I) -> &Self::Output pub fn bitcoin::merkle_tree::TxMerkleNode::partial_cmp(&self, other: &bitcoin::merkle_tree::TxMerkleNode) -> core::option::Option pub fn bitcoin::merkle_tree::TxMerkleNode::to_byte_array(self) -> Self::Bytes -pub fn bitcoin::merkle_tree::WitnessMerkleNode::all_zeros() -> Self pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8; 32] pub fn bitcoin::merkle_tree::WitnessMerkleNode::as_ref(&self) -> &[u8] @@ -8252,7 +8239,6 @@ pub fn bitcoin::taproot::TapLeaf::eq(&self, other: &bitcoin::taproot::TapLeaf) - pub fn bitcoin::taproot::TapLeaf::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin::taproot::TapLeaf::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeaf::partial_cmp(&self, other: &bitcoin::taproot::TapLeaf) -> core::option::Option -pub fn bitcoin::taproot::TapLeafHash::all_zeros() -> Self pub fn bitcoin::taproot::TapLeafHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapLeafHash::as_ref(&self) -> &[u8] @@ -8285,7 +8271,6 @@ pub fn bitcoin::taproot::TapLeafTag::engine() -> bitcoin_hashes::sha256::HashEng pub fn bitcoin::taproot::TapLeafTag::eq(&self, other: &bitcoin::taproot::TapLeafTag) -> bool pub fn bitcoin::taproot::TapLeafTag::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin::taproot::TapLeafTag::partial_cmp(&self, other: &bitcoin::taproot::TapLeafTag) -> core::option::Option -pub fn bitcoin::taproot::TapNodeHash::all_zeros() -> Self pub fn bitcoin::taproot::TapNodeHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapNodeHash::as_ref(&self) -> &[u8] @@ -8323,7 +8308,6 @@ pub fn bitcoin::taproot::TapTree::root_hash(&self) -> bitcoin::taproot::TapNodeH pub fn bitcoin::taproot::TapTree::script_leaves(&self) -> bitcoin::taproot::ScriptLeaves<'_> pub fn bitcoin::taproot::TapTree::try_from(builder: bitcoin::taproot::TaprootBuilder) -> core::result::Result pub fn bitcoin::taproot::TapTree::try_from(node_info: bitcoin::taproot::NodeInfo) -> core::result::Result -pub fn bitcoin::taproot::TapTweakHash::all_zeros() -> Self pub fn bitcoin::taproot::TapTweakHash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8; 32] pub fn bitcoin::taproot::TapTweakHash::as_ref(&self) -> &[u8] diff --git a/api/hashes/all-features.txt b/api/hashes/all-features.txt index 3de69fd75..d78d4d13b 100644 --- a/api/hashes/all-features.txt +++ b/api/hashes/all-features.txt @@ -535,19 +535,15 @@ pub const bitcoin_hashes::siphash24::Hash::DISPLAY_BACKWARD: bool pub const bitcoin_hashes::siphash24::Hash::LEN: usize pub const bitcoin_hashes::siphash24::Hash::N: usize pub const bitcoin_hashes::siphash24::HashEngine::BLOCK_SIZE: usize -pub const fn bitcoin_hashes::hash160::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::hash160::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::hash160::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::hash160::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::ripemd160::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::ripemd160::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::ripemd160::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::ripemd160::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::sha1::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha1::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::sha1::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::sha1::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::sha256::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256::Hash::const_hash(bytes: &[u8]) -> Self pub const fn bitcoin_hashes::sha256::Hash::from_byte_array(bytes: [u8; 32]) -> Self @@ -555,26 +551,21 @@ pub const fn bitcoin_hashes::sha256::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha256::Midstate::from_byte_array(inner: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256::Midstate::hash_tag(tag: &[u8]) -> Self pub const fn bitcoin_hashes::sha256::Midstate::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &[u8; 48] pub const fn bitcoin_hashes::sha384::Hash::from_byte_array(bytes: [u8; 48]) -> Self pub const fn bitcoin_hashes::sha384::Hash::to_byte_array(self) -> [u8; 48] -pub const fn bitcoin_hashes::sha512::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha512::Hash::as_byte_array(&self) -> &[u8; 64] pub const fn bitcoin_hashes::sha512::Hash::from_byte_array(bytes: [u8; 64]) -> Self pub const fn bitcoin_hashes::sha512::Hash::to_byte_array(self) -> [u8; 64] -pub const fn bitcoin_hashes::sha512_256::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha512_256::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha512_256::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha512_256::Hash::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::siphash24::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::siphash24::Hash::as_byte_array(&self) -> &[u8; 8] pub const fn bitcoin_hashes::siphash24::Hash::from_byte_array(bytes: [u8; 8]) -> Self pub const fn bitcoin_hashes::siphash24::Hash::to_byte_array(self) -> [u8; 8] @@ -588,7 +579,6 @@ pub fn bitcoin_hashes::FromSliceError::eq(&self, other: &bitcoin_hashes::FromSli pub fn bitcoin_hashes::FromSliceError::expected_length(&self) -> usize pub fn bitcoin_hashes::FromSliceError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_hashes::FromSliceError::invalid_length(&self) -> usize -pub fn bitcoin_hashes::Hash::all_zeros() -> Self pub fn bitcoin_hashes::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::Hash::engine() -> Self::Engine pub fn bitcoin_hashes::Hash::from_byte_array(bytes: Self::Bytes) -> Self @@ -601,7 +591,6 @@ pub fn bitcoin_hashes::HashEngine::input(&mut self, data: &[u8]) pub fn bitcoin_hashes::HashEngine::midstate(&self) -> Self::MidState pub fn bitcoin_hashes::HashEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::cmp::fixed_time_eq(a: &[u8], b: &[u8]) -> bool -pub fn bitcoin_hashes::hash160::Hash::all_zeros() -> Self pub fn bitcoin_hashes::hash160::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::hash160::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::hash160::Hash::as_ref(&self) -> &[u8] @@ -634,7 +623,6 @@ pub fn bitcoin_hashes::hkdf::Hkdf::new(salt: &[u8], ikm: &[u8]) -> Self pub fn bitcoin_hashes::hkdf::MaxLengthError::clone(&self) -> bitcoin_hashes::hkdf::MaxLengthError pub fn bitcoin_hashes::hkdf::MaxLengthError::eq(&self, other: &bitcoin_hashes::hkdf::MaxLengthError) -> bool pub fn bitcoin_hashes::hkdf::MaxLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result -pub fn bitcoin_hashes::hmac::Hmac::all_zeros() -> Self pub fn bitcoin_hashes::hmac::Hmac::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::hmac::Hmac::as_ref(&self) -> &[u8] pub fn bitcoin_hashes::hmac::Hmac::clone(&self) -> bitcoin_hashes::hmac::Hmac @@ -664,7 +652,6 @@ pub fn bitcoin_hashes::hmac::HmacEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::hmac::HmacEngine::new(key: &[u8]) -> bitcoin_hashes::hmac::HmacEngine pub fn bitcoin_hashes::hmac::HmacEngine::write(&mut self, buf: &[u8]) -> bitcoin_io::Result pub fn bitcoin_hashes::hmac::HmacEngine::write(&mut self, buf: &[u8]) -> std::io::error::Result -pub fn bitcoin_hashes::ripemd160::Hash::all_zeros() -> Self pub fn bitcoin_hashes::ripemd160::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::ripemd160::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::ripemd160::Hash::as_ref(&self) -> &[u8] @@ -703,7 +690,6 @@ pub fn bitcoin_hashes::ripemd160::HashEngine::write(&mut self, buf: &[u8]) -> st pub fn bitcoin_hashes::serde_macros::serde_details::SerdeHash::deserialize<'de, D: serde::de::Deserializer<'de>>(d: D) -> core::result::Result::Error> pub fn bitcoin_hashes::serde_macros::serde_details::SerdeHash::from_slice_delegated(sl: &[u8]) -> core::result::Result pub fn bitcoin_hashes::serde_macros::serde_details::SerdeHash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin_hashes::sha1::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha1::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha1::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::sha1::Hash::as_ref(&self) -> &[u8] @@ -739,7 +725,6 @@ pub fn bitcoin_hashes::sha1::HashEngine::midstate(&self) -> [u8; 20] pub fn bitcoin_hashes::sha1::HashEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::sha1::HashEngine::write(&mut self, buf: &[u8]) -> bitcoin_io::Result pub fn bitcoin_hashes::sha1::HashEngine::write(&mut self, buf: &[u8]) -> std::io::error::Result -pub fn bitcoin_hashes::sha256::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256::Hash::as_ref(&self) -> &[u8] @@ -793,7 +778,6 @@ pub fn bitcoin_hashes::sha256::Midstate::hash<__H: core::hash::Hasher>(&self, st pub fn bitcoin_hashes::sha256::Midstate::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256::Midstate::partial_cmp(&self, other: &bitcoin_hashes::sha256::Midstate) -> core::option::Option pub fn bitcoin_hashes::sha256::Midstate::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> -pub fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256d::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256d::Hash::as_ref(&self) -> &[u8] @@ -820,7 +804,6 @@ pub fn bitcoin_hashes::sha256d::Hash::partial_cmp(&self, other: &bitcoin_hashes: pub fn bitcoin_hashes::sha256d::Hash::schema_name() -> alloc::string::String pub fn bitcoin_hashes::sha256d::Hash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8] @@ -849,7 +832,6 @@ pub fn bitcoin_hashes::sha256t::Hash::schema_name() -> alloc::string::String pub fn bitcoin_hashes::sha256t::Hash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> Self::Bytes pub fn bitcoin_hashes::sha256t::Tag::engine() -> bitcoin_hashes::sha256::HashEngine -pub fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha384::Hash::as_ref(&self) -> &[u8; 48] pub fn bitcoin_hashes::sha384::Hash::as_ref(&self) -> &[u8] @@ -881,7 +863,6 @@ pub fn bitcoin_hashes::sha384::HashEngine::default() -> Self pub fn bitcoin_hashes::sha384::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha384::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha384::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha512::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha512::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha512::Hash::as_ref(&self) -> &[u8; 64] pub fn bitcoin_hashes::sha512::Hash::as_ref(&self) -> &[u8] @@ -917,7 +898,6 @@ pub fn bitcoin_hashes::sha512::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha512::HashEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::sha512::HashEngine::write(&mut self, buf: &[u8]) -> bitcoin_io::Result pub fn bitcoin_hashes::sha512::HashEngine::write(&mut self, buf: &[u8]) -> std::io::error::Result -pub fn bitcoin_hashes::sha512_256::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha512_256::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha512_256::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha512_256::Hash::as_ref(&self) -> &[u8] @@ -949,7 +929,6 @@ pub fn bitcoin_hashes::sha512_256::HashEngine::default() -> Self pub fn bitcoin_hashes::sha512_256::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha512_256::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha512_256::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::siphash24::Hash::all_zeros() -> Self pub fn bitcoin_hashes::siphash24::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::siphash24::Hash::as_ref(&self) -> &[u8; 8] pub fn bitcoin_hashes::siphash24::Hash::as_ref(&self) -> &[u8] diff --git a/api/hashes/alloc-only.txt b/api/hashes/alloc-only.txt index 334275254..c3d91f632 100644 --- a/api/hashes/alloc-only.txt +++ b/api/hashes/alloc-only.txt @@ -463,19 +463,15 @@ pub const bitcoin_hashes::sha512_256::HashEngine::BLOCK_SIZE: usize pub const bitcoin_hashes::siphash24::Hash::DISPLAY_BACKWARD: bool pub const bitcoin_hashes::siphash24::Hash::LEN: usize pub const bitcoin_hashes::siphash24::HashEngine::BLOCK_SIZE: usize -pub const fn bitcoin_hashes::hash160::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::hash160::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::hash160::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::hash160::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::ripemd160::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::ripemd160::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::ripemd160::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::ripemd160::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::sha1::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha1::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::sha1::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::sha1::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::sha256::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256::Hash::const_hash(bytes: &[u8]) -> Self pub const fn bitcoin_hashes::sha256::Hash::from_byte_array(bytes: [u8; 32]) -> Self @@ -483,26 +479,21 @@ pub const fn bitcoin_hashes::sha256::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha256::Midstate::from_byte_array(inner: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256::Midstate::hash_tag(tag: &[u8]) -> Self pub const fn bitcoin_hashes::sha256::Midstate::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &[u8; 48] pub const fn bitcoin_hashes::sha384::Hash::from_byte_array(bytes: [u8; 48]) -> Self pub const fn bitcoin_hashes::sha384::Hash::to_byte_array(self) -> [u8; 48] -pub const fn bitcoin_hashes::sha512::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha512::Hash::as_byte_array(&self) -> &[u8; 64] pub const fn bitcoin_hashes::sha512::Hash::from_byte_array(bytes: [u8; 64]) -> Self pub const fn bitcoin_hashes::sha512::Hash::to_byte_array(self) -> [u8; 64] -pub const fn bitcoin_hashes::sha512_256::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha512_256::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha512_256::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha512_256::Hash::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::siphash24::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::siphash24::Hash::as_byte_array(&self) -> &[u8; 8] pub const fn bitcoin_hashes::siphash24::Hash::from_byte_array(bytes: [u8; 8]) -> Self pub const fn bitcoin_hashes::siphash24::Hash::to_byte_array(self) -> [u8; 8] @@ -515,7 +506,6 @@ pub fn bitcoin_hashes::FromSliceError::eq(&self, other: &bitcoin_hashes::FromSli pub fn bitcoin_hashes::FromSliceError::expected_length(&self) -> usize pub fn bitcoin_hashes::FromSliceError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_hashes::FromSliceError::invalid_length(&self) -> usize -pub fn bitcoin_hashes::Hash::all_zeros() -> Self pub fn bitcoin_hashes::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::Hash::engine() -> Self::Engine pub fn bitcoin_hashes::Hash::from_byte_array(bytes: Self::Bytes) -> Self @@ -528,7 +518,6 @@ pub fn bitcoin_hashes::HashEngine::input(&mut self, data: &[u8]) pub fn bitcoin_hashes::HashEngine::midstate(&self) -> Self::MidState pub fn bitcoin_hashes::HashEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::cmp::fixed_time_eq(a: &[u8], b: &[u8]) -> bool -pub fn bitcoin_hashes::hash160::Hash::all_zeros() -> Self pub fn bitcoin_hashes::hash160::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::hash160::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::hash160::Hash::as_ref(&self) -> &[u8] @@ -556,7 +545,6 @@ pub fn bitcoin_hashes::hkdf::Hkdf::new(salt: &[u8], ikm: &[u8]) -> Self pub fn bitcoin_hashes::hkdf::MaxLengthError::clone(&self) -> bitcoin_hashes::hkdf::MaxLengthError pub fn bitcoin_hashes::hkdf::MaxLengthError::eq(&self, other: &bitcoin_hashes::hkdf::MaxLengthError) -> bool pub fn bitcoin_hashes::hkdf::MaxLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result -pub fn bitcoin_hashes::hmac::Hmac::all_zeros() -> Self pub fn bitcoin_hashes::hmac::Hmac::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::hmac::Hmac::as_ref(&self) -> &[u8] pub fn bitcoin_hashes::hmac::Hmac::clone(&self) -> bitcoin_hashes::hmac::Hmac @@ -577,7 +565,6 @@ pub fn bitcoin_hashes::hmac::HmacEngine::input(&mut self, buf: &[u8]) pub fn bitcoin_hashes::hmac::HmacEngine::midstate(&self) -> Self::MidState pub fn bitcoin_hashes::hmac::HmacEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::hmac::HmacEngine::new(key: &[u8]) -> bitcoin_hashes::hmac::HmacEngine -pub fn bitcoin_hashes::ripemd160::Hash::all_zeros() -> Self pub fn bitcoin_hashes::ripemd160::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::ripemd160::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::ripemd160::Hash::as_ref(&self) -> &[u8] @@ -604,7 +591,6 @@ pub fn bitcoin_hashes::ripemd160::HashEngine::default() -> Self pub fn bitcoin_hashes::ripemd160::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::ripemd160::HashEngine::midstate(&self) -> [u8; 20] pub fn bitcoin_hashes::ripemd160::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha1::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha1::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha1::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::sha1::Hash::as_ref(&self) -> &[u8] @@ -631,7 +617,6 @@ pub fn bitcoin_hashes::sha1::HashEngine::default() -> Self pub fn bitcoin_hashes::sha1::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha1::HashEngine::midstate(&self) -> [u8; 20] pub fn bitcoin_hashes::sha1::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha256::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256::Hash::as_ref(&self) -> &[u8] @@ -673,7 +658,6 @@ pub fn bitcoin_hashes::sha256::Midstate::from_str(s: &str) -> core::result::Resu pub fn bitcoin_hashes::sha256::Midstate::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin_hashes::sha256::Midstate::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256::Midstate::partial_cmp(&self, other: &bitcoin_hashes::sha256::Midstate) -> core::option::Option -pub fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256d::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256d::Hash::as_ref(&self) -> &[u8] @@ -695,7 +679,6 @@ pub fn bitcoin_hashes::sha256d::Hash::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin_hashes::sha256d::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256d::Hash::partial_cmp(&self, other: &bitcoin_hashes::sha256d::Hash) -> core::option::Option pub fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8] @@ -719,7 +702,6 @@ pub fn bitcoin_hashes::sha256t::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256t::Hash::partial_cmp(&self, other: &bitcoin_hashes::sha256t::Hash) -> core::option::Option pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> Self::Bytes pub fn bitcoin_hashes::sha256t::Tag::engine() -> bitcoin_hashes::sha256::HashEngine -pub fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha384::Hash::as_ref(&self) -> &[u8; 48] pub fn bitcoin_hashes::sha384::Hash::as_ref(&self) -> &[u8] @@ -746,7 +728,6 @@ pub fn bitcoin_hashes::sha384::HashEngine::default() -> Self pub fn bitcoin_hashes::sha384::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha384::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha384::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha512::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha512::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha512::Hash::as_ref(&self) -> &[u8; 64] pub fn bitcoin_hashes::sha512::Hash::as_ref(&self) -> &[u8] @@ -773,7 +754,6 @@ pub fn bitcoin_hashes::sha512::HashEngine::default() -> Self pub fn bitcoin_hashes::sha512::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha512::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha512::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha512_256::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha512_256::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha512_256::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha512_256::Hash::as_ref(&self) -> &[u8] @@ -800,7 +780,6 @@ pub fn bitcoin_hashes::sha512_256::HashEngine::default() -> Self pub fn bitcoin_hashes::sha512_256::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha512_256::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha512_256::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::siphash24::Hash::all_zeros() -> Self pub fn bitcoin_hashes::siphash24::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::siphash24::Hash::as_ref(&self) -> &[u8; 8] pub fn bitcoin_hashes::siphash24::Hash::as_ref(&self) -> &[u8] diff --git a/api/hashes/no-features.txt b/api/hashes/no-features.txt index dbf7afc6f..36948e986 100644 --- a/api/hashes/no-features.txt +++ b/api/hashes/no-features.txt @@ -463,19 +463,15 @@ pub const bitcoin_hashes::sha512_256::HashEngine::BLOCK_SIZE: usize pub const bitcoin_hashes::siphash24::Hash::DISPLAY_BACKWARD: bool pub const bitcoin_hashes::siphash24::Hash::LEN: usize pub const bitcoin_hashes::siphash24::HashEngine::BLOCK_SIZE: usize -pub const fn bitcoin_hashes::hash160::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::hash160::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::hash160::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::hash160::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::ripemd160::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::ripemd160::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::ripemd160::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::ripemd160::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::sha1::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha1::Hash::as_byte_array(&self) -> &[u8; 20] pub const fn bitcoin_hashes::sha1::Hash::from_byte_array(bytes: [u8; 20]) -> Self pub const fn bitcoin_hashes::sha1::Hash::to_byte_array(self) -> [u8; 20] -pub const fn bitcoin_hashes::sha256::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256::Hash::const_hash(bytes: &[u8]) -> Self pub const fn bitcoin_hashes::sha256::Hash::from_byte_array(bytes: [u8; 32]) -> Self @@ -483,26 +479,21 @@ pub const fn bitcoin_hashes::sha256::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha256::Midstate::from_byte_array(inner: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256::Midstate::hash_tag(tag: &[u8]) -> Self pub const fn bitcoin_hashes::sha256::Midstate::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> [u8; 32] pub const fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha256t::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &[u8; 48] pub const fn bitcoin_hashes::sha384::Hash::from_byte_array(bytes: [u8; 48]) -> Self pub const fn bitcoin_hashes::sha384::Hash::to_byte_array(self) -> [u8; 48] -pub const fn bitcoin_hashes::sha512::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha512::Hash::as_byte_array(&self) -> &[u8; 64] pub const fn bitcoin_hashes::sha512::Hash::from_byte_array(bytes: [u8; 64]) -> Self pub const fn bitcoin_hashes::sha512::Hash::to_byte_array(self) -> [u8; 64] -pub const fn bitcoin_hashes::sha512_256::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::sha512_256::Hash::as_byte_array(&self) -> &[u8; 32] pub const fn bitcoin_hashes::sha512_256::Hash::from_byte_array(bytes: [u8; 32]) -> Self pub const fn bitcoin_hashes::sha512_256::Hash::to_byte_array(self) -> [u8; 32] -pub const fn bitcoin_hashes::siphash24::Hash::all_zeros() -> Self pub const fn bitcoin_hashes::siphash24::Hash::as_byte_array(&self) -> &[u8; 8] pub const fn bitcoin_hashes::siphash24::Hash::from_byte_array(bytes: [u8; 8]) -> Self pub const fn bitcoin_hashes::siphash24::Hash::to_byte_array(self) -> [u8; 8] @@ -515,7 +506,6 @@ pub fn bitcoin_hashes::FromSliceError::eq(&self, other: &bitcoin_hashes::FromSli pub fn bitcoin_hashes::FromSliceError::expected_length(&self) -> usize pub fn bitcoin_hashes::FromSliceError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_hashes::FromSliceError::invalid_length(&self) -> usize -pub fn bitcoin_hashes::Hash::all_zeros() -> Self pub fn bitcoin_hashes::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::Hash::engine() -> Self::Engine pub fn bitcoin_hashes::Hash::from_byte_array(bytes: Self::Bytes) -> Self @@ -528,7 +518,6 @@ pub fn bitcoin_hashes::HashEngine::input(&mut self, data: &[u8]) pub fn bitcoin_hashes::HashEngine::midstate(&self) -> Self::MidState pub fn bitcoin_hashes::HashEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::cmp::fixed_time_eq(a: &[u8], b: &[u8]) -> bool -pub fn bitcoin_hashes::hash160::Hash::all_zeros() -> Self pub fn bitcoin_hashes::hash160::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::hash160::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::hash160::Hash::as_ref(&self) -> &[u8] @@ -555,7 +544,6 @@ pub fn bitcoin_hashes::hkdf::Hkdf::new(salt: &[u8], ikm: &[u8]) -> Self pub fn bitcoin_hashes::hkdf::MaxLengthError::clone(&self) -> bitcoin_hashes::hkdf::MaxLengthError pub fn bitcoin_hashes::hkdf::MaxLengthError::eq(&self, other: &bitcoin_hashes::hkdf::MaxLengthError) -> bool pub fn bitcoin_hashes::hkdf::MaxLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result -pub fn bitcoin_hashes::hmac::Hmac::all_zeros() -> Self pub fn bitcoin_hashes::hmac::Hmac::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::hmac::Hmac::as_ref(&self) -> &[u8] pub fn bitcoin_hashes::hmac::Hmac::clone(&self) -> bitcoin_hashes::hmac::Hmac @@ -576,7 +564,6 @@ pub fn bitcoin_hashes::hmac::HmacEngine::input(&mut self, buf: &[u8]) pub fn bitcoin_hashes::hmac::HmacEngine::midstate(&self) -> Self::MidState pub fn bitcoin_hashes::hmac::HmacEngine::n_bytes_hashed(&self) -> usize pub fn bitcoin_hashes::hmac::HmacEngine::new(key: &[u8]) -> bitcoin_hashes::hmac::HmacEngine -pub fn bitcoin_hashes::ripemd160::Hash::all_zeros() -> Self pub fn bitcoin_hashes::ripemd160::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::ripemd160::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::ripemd160::Hash::as_ref(&self) -> &[u8] @@ -603,7 +590,6 @@ pub fn bitcoin_hashes::ripemd160::HashEngine::default() -> Self pub fn bitcoin_hashes::ripemd160::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::ripemd160::HashEngine::midstate(&self) -> [u8; 20] pub fn bitcoin_hashes::ripemd160::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha1::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha1::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha1::Hash::as_ref(&self) -> &[u8; 20] pub fn bitcoin_hashes::sha1::Hash::as_ref(&self) -> &[u8] @@ -630,7 +616,6 @@ pub fn bitcoin_hashes::sha1::HashEngine::default() -> Self pub fn bitcoin_hashes::sha1::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha1::HashEngine::midstate(&self) -> [u8; 20] pub fn bitcoin_hashes::sha1::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha256::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256::Hash::as_ref(&self) -> &[u8] @@ -672,7 +657,6 @@ pub fn bitcoin_hashes::sha256::Midstate::from_str(s: &str) -> core::result::Resu pub fn bitcoin_hashes::sha256::Midstate::hash<__H: core::hash::Hasher>(&self, state: &mut __H) pub fn bitcoin_hashes::sha256::Midstate::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256::Midstate::partial_cmp(&self, other: &bitcoin_hashes::sha256::Midstate) -> core::option::Option -pub fn bitcoin_hashes::sha256d::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256d::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256d::Hash::as_ref(&self) -> &[u8] @@ -694,7 +678,6 @@ pub fn bitcoin_hashes::sha256d::Hash::hash_byte_chunks(byte_slices: I) -> pub fn bitcoin_hashes::sha256d::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256d::Hash::partial_cmp(&self, other: &bitcoin_hashes::sha256d::Hash) -> core::option::Option pub fn bitcoin_hashes::sha256d::Hash::to_byte_array(self) -> Self::Bytes -pub fn bitcoin_hashes::sha256t::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha256t::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha256t::Hash::as_ref(&self) -> &[u8] @@ -718,7 +701,6 @@ pub fn bitcoin_hashes::sha256t::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::sha256t::Hash::partial_cmp(&self, other: &bitcoin_hashes::sha256t::Hash) -> core::option::Option pub fn bitcoin_hashes::sha256t::Hash::to_byte_array(self) -> Self::Bytes pub fn bitcoin_hashes::sha256t::Tag::engine() -> bitcoin_hashes::sha256::HashEngine -pub fn bitcoin_hashes::sha384::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha384::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha384::Hash::as_ref(&self) -> &[u8; 48] pub fn bitcoin_hashes::sha384::Hash::as_ref(&self) -> &[u8] @@ -745,7 +727,6 @@ pub fn bitcoin_hashes::sha384::HashEngine::default() -> Self pub fn bitcoin_hashes::sha384::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha384::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha384::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha512::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha512::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha512::Hash::as_ref(&self) -> &[u8; 64] pub fn bitcoin_hashes::sha512::Hash::as_ref(&self) -> &[u8] @@ -772,7 +753,6 @@ pub fn bitcoin_hashes::sha512::HashEngine::default() -> Self pub fn bitcoin_hashes::sha512::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha512::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha512::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::sha512_256::Hash::all_zeros() -> Self pub fn bitcoin_hashes::sha512_256::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::sha512_256::Hash::as_ref(&self) -> &[u8; 32] pub fn bitcoin_hashes::sha512_256::Hash::as_ref(&self) -> &[u8] @@ -799,7 +779,6 @@ pub fn bitcoin_hashes::sha512_256::HashEngine::default() -> Self pub fn bitcoin_hashes::sha512_256::HashEngine::input(&mut self, inp: &[u8]) pub fn bitcoin_hashes::sha512_256::HashEngine::midstate(&self) -> [u8; 64] pub fn bitcoin_hashes::sha512_256::HashEngine::n_bytes_hashed(&self) -> usize -pub fn bitcoin_hashes::siphash24::Hash::all_zeros() -> Self pub fn bitcoin_hashes::siphash24::Hash::as_byte_array(&self) -> &Self::Bytes pub fn bitcoin_hashes::siphash24::Hash::as_ref(&self) -> &[u8; 8] pub fn bitcoin_hashes::siphash24::Hash::as_ref(&self) -> &[u8]