From c9d1ff7037aa47d5a0690d994cb1587908f201b8 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Thu, 30 May 2024 15:50:51 -0700 Subject: [PATCH] Update hashes API changes --- api/hashes/all-features.txt | 30 ++++++++++++++++++++++++++++++ api/hashes/alloc-only.txt | 29 +++++++++++++++++++++++++++++ api/hashes/no-features.txt | 28 ++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) diff --git a/api/hashes/all-features.txt b/api/hashes/all-features.txt index 18a0991fb..ab2cbe77d 100644 --- a/api/hashes/all-features.txt +++ b/api/hashes/all-features.txt @@ -66,6 +66,7 @@ impl core::borrow::Borrow<[u8]> for bitcoin_hashes::sha512_256::Hash impl core::borrow::Borrow<[u8]> for bitcoin_hashes::siphash24::Hash impl core::clone::Clone for bitcoin_hashes::FromSliceError impl core::clone::Clone for bitcoin_hashes::hash160::Hash +impl core::clone::Clone for bitcoin_hashes::hkdf::MaxLengthError impl core::clone::Clone for bitcoin_hashes::ripemd160::Hash impl core::clone::Clone for bitcoin_hashes::ripemd160::HashEngine impl core::clone::Clone for bitcoin_hashes::sha1::Hash @@ -85,6 +86,7 @@ impl core::clone::Clone for bitcoin_hashes::siphash24::HashEngine impl core::clone::Clone for bitcoin_hashes::siphash24::State impl core::cmp::Eq for bitcoin_hashes::FromSliceError impl core::cmp::Eq for bitcoin_hashes::hash160::Hash +impl core::cmp::Eq for bitcoin_hashes::hkdf::MaxLengthError impl core::cmp::Eq for bitcoin_hashes::ripemd160::Hash impl core::cmp::Eq for bitcoin_hashes::sha1::Hash impl core::cmp::Eq for bitcoin_hashes::sha256::Hash @@ -106,6 +108,7 @@ impl core::cmp::Ord for bitcoin_hashes::sha512_256::Hash impl core::cmp::Ord for bitcoin_hashes::siphash24::Hash impl core::cmp::PartialEq for bitcoin_hashes::FromSliceError impl core::cmp::PartialEq for bitcoin_hashes::hash160::Hash +impl core::cmp::PartialEq for bitcoin_hashes::hkdf::MaxLengthError impl core::cmp::PartialEq for bitcoin_hashes::ripemd160::Hash impl core::cmp::PartialEq for bitcoin_hashes::sha1::Hash impl core::cmp::PartialEq for bitcoin_hashes::sha256::Hash @@ -153,8 +156,10 @@ impl core::default::Default for bitcoin_hashes::sha512::HashEngine impl core::default::Default for bitcoin_hashes::sha512_256::HashEngine impl core::default::Default for bitcoin_hashes::siphash24::HashEngine impl core::error::Error for bitcoin_hashes::FromSliceError +impl core::error::Error for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Debug for bitcoin_hashes::FromSliceError impl core::fmt::Debug for bitcoin_hashes::hash160::Hash +impl core::fmt::Debug for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Debug for bitcoin_hashes::ripemd160::Hash impl core::fmt::Debug for bitcoin_hashes::sha1::Hash impl core::fmt::Debug for bitcoin_hashes::sha256::Hash @@ -168,6 +173,7 @@ impl core::fmt::Debug for bitcoin_hashes::siphash24::HashEngine impl core::fmt::Debug for bitcoin_hashes::siphash24::State impl core::fmt::Display for bitcoin_hashes::FromSliceError impl core::fmt::Display for bitcoin_hashes::hash160::Hash +impl core::fmt::Display for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Display for bitcoin_hashes::ripemd160::Hash impl core::fmt::Display for bitcoin_hashes::sha1::Hash impl core::fmt::Display for bitcoin_hashes::sha256::Hash @@ -208,6 +214,7 @@ impl core::hash::Hash for bitcoin_hashes::sha512::Hash impl core::hash::Hash for bitcoin_hashes::sha512_256::Hash impl core::hash::Hash for bitcoin_hashes::siphash24::Hash impl core::marker::Copy for bitcoin_hashes::hash160::Hash +impl core::marker::Copy for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Copy for bitcoin_hashes::ripemd160::Hash impl core::marker::Copy for bitcoin_hashes::sha1::Hash impl core::marker::Copy for bitcoin_hashes::sha256::Hash @@ -219,6 +226,7 @@ impl core::marker::Copy for bitcoin_hashes::sha512_256::Hash impl core::marker::Copy for bitcoin_hashes::siphash24::Hash impl core::marker::Freeze for bitcoin_hashes::FromSliceError impl core::marker::Freeze for bitcoin_hashes::hash160::Hash +impl core::marker::Freeze for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Freeze for bitcoin_hashes::ripemd160::Hash impl core::marker::Freeze for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Freeze for bitcoin_hashes::sha1::Hash @@ -238,6 +246,7 @@ impl core::marker::Freeze for bitcoin_hashes::siphash24::HashEngine impl core::marker::Freeze for bitcoin_hashes::siphash24::State impl core::marker::Send for bitcoin_hashes::FromSliceError impl core::marker::Send for bitcoin_hashes::hash160::Hash +impl core::marker::Send for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Send for bitcoin_hashes::ripemd160::Hash impl core::marker::Send for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Send for bitcoin_hashes::sha1::Hash @@ -257,6 +266,7 @@ impl core::marker::Send for bitcoin_hashes::siphash24::HashEngine impl core::marker::Send for bitcoin_hashes::siphash24::State impl core::marker::StructuralPartialEq for bitcoin_hashes::FromSliceError impl core::marker::StructuralPartialEq for bitcoin_hashes::hash160::Hash +impl core::marker::StructuralPartialEq for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::StructuralPartialEq for bitcoin_hashes::ripemd160::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::sha1::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::sha256::Hash @@ -268,6 +278,7 @@ impl core::marker::StructuralPartialEq for bitcoin_hashes::sha512_256::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::siphash24::Hash impl core::marker::Sync for bitcoin_hashes::FromSliceError impl core::marker::Sync for bitcoin_hashes::hash160::Hash +impl core::marker::Sync for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Sync for bitcoin_hashes::ripemd160::Hash impl core::marker::Sync for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Sync for bitcoin_hashes::sha1::Hash @@ -287,6 +298,7 @@ impl core::marker::Sync for bitcoin_hashes::siphash24::HashEngine impl core::marker::Sync for bitcoin_hashes::siphash24::State impl core::marker::Unpin for bitcoin_hashes::FromSliceError impl core::marker::Unpin for bitcoin_hashes::hash160::Hash +impl core::marker::Unpin for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Unpin for bitcoin_hashes::ripemd160::Hash impl core::marker::Unpin for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Unpin for bitcoin_hashes::sha1::Hash @@ -306,6 +318,7 @@ impl core::marker::Unpin for bitcoin_hashes::siphash24::HashEngine impl core::marker::Unpin for bitcoin_hashes::siphash24::State impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::FromSliceError impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hash160::Hash +impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hkdf::MaxLengthError impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::ripemd160::Hash impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::ripemd160::HashEngine impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::sha1::Hash @@ -325,6 +338,7 @@ impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::siphash24::Hash impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::siphash24::State impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::FromSliceError impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hash160::Hash +impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hkdf::MaxLengthError impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::ripemd160::Hash impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::ripemd160::HashEngine impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::sha1::Hash @@ -405,6 +419,7 @@ impl schemars::JsonSchema for bi impl serde::ser::Serialize for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::Hash for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::HashEngine for bitcoin_hashes::hmac::HmacEngine +impl bitcoin_hashes::hkdf::Hkdf impl bitcoin_hashes::hmac::HmacEngine impl bitcoin_io::Write for bitcoin_hashes::hmac::HmacEngine impl core::convert::AsRef<[u8]> for bitcoin_hashes::hmac::Hmac @@ -443,26 +458,32 @@ 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 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 impl core::marker::Freeze for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::sha256t::Hash +impl core::marker::Send for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::Hmac where T: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Send impl core::marker::Send for bitcoin_hashes::sha256t::Hash where T: core::marker::Send +impl core::marker::Sync for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::Hmac where T: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::sha256t::Hash where T: core::marker::Sync +impl core::marker::Unpin for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::Hmac where T: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::sha256t::Hash where T: core::marker::Unpin +impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hkdf::Hkdf where T: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::Hmac where T: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::sha256t::Hash where T: core::panic::unwind_safe::RefUnwindSafe +impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hkdf::Hkdf where T: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::Hmac where T: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::panic::unwind_safe::UnwindSafe @@ -563,6 +584,12 @@ pub fn bitcoin_hashes::hash160::Hash::partial_cmp(&self, other: &bitcoin_hashes: pub fn bitcoin_hashes::hash160::Hash::schema_name() -> alloc::string::String pub fn bitcoin_hashes::hash160::Hash::serialize(&self, s: S) -> core::result::Result<::Ok, ::Error> pub fn bitcoin_hashes::hash160::Hash::to_byte_array(self) -> Self::Bytes +pub fn bitcoin_hashes::hkdf::Hkdf::expand(&self, info: &[u8], okm: &mut [u8]) -> core::result::Result<(), bitcoin_hashes::hkdf::MaxLengthError> +pub fn bitcoin_hashes::hkdf::Hkdf::expand_to_len(&self, info: &[u8], len: usize) -> core::result::Result, bitcoin_hashes::hkdf::MaxLengthError> +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] @@ -914,6 +941,7 @@ pub macro bitcoin_hashes::sha256t_hash_newtype! pub mod bitcoin_hashes pub mod bitcoin_hashes::cmp pub mod bitcoin_hashes::hash160 +pub mod bitcoin_hashes::hkdf pub mod bitcoin_hashes::hmac pub mod bitcoin_hashes::ripemd160 pub mod bitcoin_hashes::serde_macros @@ -928,6 +956,8 @@ pub mod bitcoin_hashes::sha512_256 pub mod bitcoin_hashes::siphash24 pub struct bitcoin_hashes::FromSliceError pub struct bitcoin_hashes::HmacEngine +pub struct bitcoin_hashes::hkdf::Hkdf +pub struct bitcoin_hashes::hkdf::MaxLengthError pub struct bitcoin_hashes::hmac::HmacEngine pub struct bitcoin_hashes::hmac::HmacMidState pub struct bitcoin_hashes::ripemd160::HashEngine diff --git a/api/hashes/alloc-only.txt b/api/hashes/alloc-only.txt index 52d7eb84e..baefc09f9 100644 --- a/api/hashes/alloc-only.txt +++ b/api/hashes/alloc-only.txt @@ -51,6 +51,7 @@ impl core::borrow::Borrow<[u8]> for bitcoin_hashes::sha512_256::Hash impl core::borrow::Borrow<[u8]> for bitcoin_hashes::siphash24::Hash impl core::clone::Clone for bitcoin_hashes::FromSliceError impl core::clone::Clone for bitcoin_hashes::hash160::Hash +impl core::clone::Clone for bitcoin_hashes::hkdf::MaxLengthError impl core::clone::Clone for bitcoin_hashes::ripemd160::Hash impl core::clone::Clone for bitcoin_hashes::ripemd160::HashEngine impl core::clone::Clone for bitcoin_hashes::sha1::Hash @@ -70,6 +71,7 @@ impl core::clone::Clone for bitcoin_hashes::siphash24::HashEngine impl core::clone::Clone for bitcoin_hashes::siphash24::State impl core::cmp::Eq for bitcoin_hashes::FromSliceError impl core::cmp::Eq for bitcoin_hashes::hash160::Hash +impl core::cmp::Eq for bitcoin_hashes::hkdf::MaxLengthError impl core::cmp::Eq for bitcoin_hashes::ripemd160::Hash impl core::cmp::Eq for bitcoin_hashes::sha1::Hash impl core::cmp::Eq for bitcoin_hashes::sha256::Hash @@ -91,6 +93,7 @@ impl core::cmp::Ord for bitcoin_hashes::sha512_256::Hash impl core::cmp::Ord for bitcoin_hashes::siphash24::Hash impl core::cmp::PartialEq for bitcoin_hashes::FromSliceError impl core::cmp::PartialEq for bitcoin_hashes::hash160::Hash +impl core::cmp::PartialEq for bitcoin_hashes::hkdf::MaxLengthError impl core::cmp::PartialEq for bitcoin_hashes::ripemd160::Hash impl core::cmp::PartialEq for bitcoin_hashes::sha1::Hash impl core::cmp::PartialEq for bitcoin_hashes::sha256::Hash @@ -139,6 +142,7 @@ impl core::default::Default for bitcoin_hashes::sha512_256::HashEngine impl core::default::Default for bitcoin_hashes::siphash24::HashEngine impl core::fmt::Debug for bitcoin_hashes::FromSliceError impl core::fmt::Debug for bitcoin_hashes::hash160::Hash +impl core::fmt::Debug for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Debug for bitcoin_hashes::ripemd160::Hash impl core::fmt::Debug for bitcoin_hashes::sha1::Hash impl core::fmt::Debug for bitcoin_hashes::sha256::Hash @@ -152,6 +156,7 @@ impl core::fmt::Debug for bitcoin_hashes::siphash24::HashEngine impl core::fmt::Debug for bitcoin_hashes::siphash24::State impl core::fmt::Display for bitcoin_hashes::FromSliceError impl core::fmt::Display for bitcoin_hashes::hash160::Hash +impl core::fmt::Display for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Display for bitcoin_hashes::ripemd160::Hash impl core::fmt::Display for bitcoin_hashes::sha1::Hash impl core::fmt::Display for bitcoin_hashes::sha256::Hash @@ -192,6 +197,7 @@ impl core::hash::Hash for bitcoin_hashes::sha512::Hash impl core::hash::Hash for bitcoin_hashes::sha512_256::Hash impl core::hash::Hash for bitcoin_hashes::siphash24::Hash impl core::marker::Copy for bitcoin_hashes::hash160::Hash +impl core::marker::Copy for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Copy for bitcoin_hashes::ripemd160::Hash impl core::marker::Copy for bitcoin_hashes::sha1::Hash impl core::marker::Copy for bitcoin_hashes::sha256::Hash @@ -203,6 +209,7 @@ impl core::marker::Copy for bitcoin_hashes::sha512_256::Hash impl core::marker::Copy for bitcoin_hashes::siphash24::Hash impl core::marker::Freeze for bitcoin_hashes::FromSliceError impl core::marker::Freeze for bitcoin_hashes::hash160::Hash +impl core::marker::Freeze for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Freeze for bitcoin_hashes::ripemd160::Hash impl core::marker::Freeze for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Freeze for bitcoin_hashes::sha1::Hash @@ -222,6 +229,7 @@ impl core::marker::Freeze for bitcoin_hashes::siphash24::HashEngine impl core::marker::Freeze for bitcoin_hashes::siphash24::State impl core::marker::Send for bitcoin_hashes::FromSliceError impl core::marker::Send for bitcoin_hashes::hash160::Hash +impl core::marker::Send for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Send for bitcoin_hashes::ripemd160::Hash impl core::marker::Send for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Send for bitcoin_hashes::sha1::Hash @@ -241,6 +249,7 @@ impl core::marker::Send for bitcoin_hashes::siphash24::HashEngine impl core::marker::Send for bitcoin_hashes::siphash24::State impl core::marker::StructuralPartialEq for bitcoin_hashes::FromSliceError impl core::marker::StructuralPartialEq for bitcoin_hashes::hash160::Hash +impl core::marker::StructuralPartialEq for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::StructuralPartialEq for bitcoin_hashes::ripemd160::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::sha1::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::sha256::Hash @@ -252,6 +261,7 @@ impl core::marker::StructuralPartialEq for bitcoin_hashes::sha512_256::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::siphash24::Hash impl core::marker::Sync for bitcoin_hashes::FromSliceError impl core::marker::Sync for bitcoin_hashes::hash160::Hash +impl core::marker::Sync for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Sync for bitcoin_hashes::ripemd160::Hash impl core::marker::Sync for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Sync for bitcoin_hashes::sha1::Hash @@ -271,6 +281,7 @@ impl core::marker::Sync for bitcoin_hashes::siphash24::HashEngine impl core::marker::Sync for bitcoin_hashes::siphash24::State impl core::marker::Unpin for bitcoin_hashes::FromSliceError impl core::marker::Unpin for bitcoin_hashes::hash160::Hash +impl core::marker::Unpin for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Unpin for bitcoin_hashes::ripemd160::Hash impl core::marker::Unpin for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Unpin for bitcoin_hashes::sha1::Hash @@ -290,6 +301,7 @@ impl core::marker::Unpin for bitcoin_hashes::siphash24::HashEngine impl core::marker::Unpin for bitcoin_hashes::siphash24::State impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::FromSliceError impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hash160::Hash +impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hkdf::MaxLengthError impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::ripemd160::Hash impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::ripemd160::HashEngine impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::sha1::Hash @@ -309,6 +321,7 @@ impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::siphash24::Hash impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::siphash24::State impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::FromSliceError impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hash160::Hash +impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hkdf::MaxLengthError impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::ripemd160::Hash impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::ripemd160::HashEngine impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::sha1::Hash @@ -351,6 +364,7 @@ impl> core::ops::index::Index for bit impl core::str::traits::FromStr for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::Hash for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::HashEngine for bitcoin_hashes::hmac::HmacEngine +impl bitcoin_hashes::hkdf::Hkdf impl bitcoin_hashes::hmac::HmacEngine impl core::convert::AsRef<[u8]> for bitcoin_hashes::hmac::Hmac impl core::default::Default for bitcoin_hashes::hmac::HmacEngine @@ -384,26 +398,32 @@ 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 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 impl core::marker::Freeze for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::sha256t::Hash +impl core::marker::Send for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::Hmac where T: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Send impl core::marker::Send for bitcoin_hashes::sha256t::Hash where T: core::marker::Send +impl core::marker::Sync for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::Hmac where T: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::sha256t::Hash where T: core::marker::Sync +impl core::marker::Unpin for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::Hmac where T: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::sha256t::Hash where T: core::marker::Unpin +impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hkdf::Hkdf where T: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::Hmac where T: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::sha256t::Hash where T: core::panic::unwind_safe::RefUnwindSafe +impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hkdf::Hkdf where T: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::Hmac where T: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::panic::unwind_safe::UnwindSafe @@ -486,6 +506,12 @@ pub fn bitcoin_hashes::hash160::Hash::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin_hashes::hash160::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::hash160::Hash::partial_cmp(&self, other: &bitcoin_hashes::hash160::Hash) -> core::option::Option pub fn bitcoin_hashes::hash160::Hash::to_byte_array(self) -> Self::Bytes +pub fn bitcoin_hashes::hkdf::Hkdf::expand(&self, info: &[u8], okm: &mut [u8]) -> core::result::Result<(), bitcoin_hashes::hkdf::MaxLengthError> +pub fn bitcoin_hashes::hkdf::Hkdf::expand_to_len(&self, info: &[u8], len: usize) -> core::result::Result, bitcoin_hashes::hkdf::MaxLengthError> +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] @@ -757,6 +783,7 @@ pub macro bitcoin_hashes::sha256t_hash_newtype! pub mod bitcoin_hashes pub mod bitcoin_hashes::cmp pub mod bitcoin_hashes::hash160 +pub mod bitcoin_hashes::hkdf pub mod bitcoin_hashes::hmac pub mod bitcoin_hashes::ripemd160 pub mod bitcoin_hashes::serde_macros @@ -770,6 +797,8 @@ pub mod bitcoin_hashes::sha512_256 pub mod bitcoin_hashes::siphash24 pub struct bitcoin_hashes::FromSliceError pub struct bitcoin_hashes::HmacEngine +pub struct bitcoin_hashes::hkdf::Hkdf +pub struct bitcoin_hashes::hkdf::MaxLengthError pub struct bitcoin_hashes::hmac::HmacEngine pub struct bitcoin_hashes::hmac::HmacMidState pub struct bitcoin_hashes::ripemd160::HashEngine diff --git a/api/hashes/no-features.txt b/api/hashes/no-features.txt index 52d7eb84e..134993aad 100644 --- a/api/hashes/no-features.txt +++ b/api/hashes/no-features.txt @@ -51,6 +51,7 @@ impl core::borrow::Borrow<[u8]> for bitcoin_hashes::sha512_256::Hash impl core::borrow::Borrow<[u8]> for bitcoin_hashes::siphash24::Hash impl core::clone::Clone for bitcoin_hashes::FromSliceError impl core::clone::Clone for bitcoin_hashes::hash160::Hash +impl core::clone::Clone for bitcoin_hashes::hkdf::MaxLengthError impl core::clone::Clone for bitcoin_hashes::ripemd160::Hash impl core::clone::Clone for bitcoin_hashes::ripemd160::HashEngine impl core::clone::Clone for bitcoin_hashes::sha1::Hash @@ -70,6 +71,7 @@ impl core::clone::Clone for bitcoin_hashes::siphash24::HashEngine impl core::clone::Clone for bitcoin_hashes::siphash24::State impl core::cmp::Eq for bitcoin_hashes::FromSliceError impl core::cmp::Eq for bitcoin_hashes::hash160::Hash +impl core::cmp::Eq for bitcoin_hashes::hkdf::MaxLengthError impl core::cmp::Eq for bitcoin_hashes::ripemd160::Hash impl core::cmp::Eq for bitcoin_hashes::sha1::Hash impl core::cmp::Eq for bitcoin_hashes::sha256::Hash @@ -91,6 +93,7 @@ impl core::cmp::Ord for bitcoin_hashes::sha512_256::Hash impl core::cmp::Ord for bitcoin_hashes::siphash24::Hash impl core::cmp::PartialEq for bitcoin_hashes::FromSliceError impl core::cmp::PartialEq for bitcoin_hashes::hash160::Hash +impl core::cmp::PartialEq for bitcoin_hashes::hkdf::MaxLengthError impl core::cmp::PartialEq for bitcoin_hashes::ripemd160::Hash impl core::cmp::PartialEq for bitcoin_hashes::sha1::Hash impl core::cmp::PartialEq for bitcoin_hashes::sha256::Hash @@ -139,6 +142,7 @@ impl core::default::Default for bitcoin_hashes::sha512_256::HashEngine impl core::default::Default for bitcoin_hashes::siphash24::HashEngine impl core::fmt::Debug for bitcoin_hashes::FromSliceError impl core::fmt::Debug for bitcoin_hashes::hash160::Hash +impl core::fmt::Debug for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Debug for bitcoin_hashes::ripemd160::Hash impl core::fmt::Debug for bitcoin_hashes::sha1::Hash impl core::fmt::Debug for bitcoin_hashes::sha256::Hash @@ -152,6 +156,7 @@ impl core::fmt::Debug for bitcoin_hashes::siphash24::HashEngine impl core::fmt::Debug for bitcoin_hashes::siphash24::State impl core::fmt::Display for bitcoin_hashes::FromSliceError impl core::fmt::Display for bitcoin_hashes::hash160::Hash +impl core::fmt::Display for bitcoin_hashes::hkdf::MaxLengthError impl core::fmt::Display for bitcoin_hashes::ripemd160::Hash impl core::fmt::Display for bitcoin_hashes::sha1::Hash impl core::fmt::Display for bitcoin_hashes::sha256::Hash @@ -192,6 +197,7 @@ impl core::hash::Hash for bitcoin_hashes::sha512::Hash impl core::hash::Hash for bitcoin_hashes::sha512_256::Hash impl core::hash::Hash for bitcoin_hashes::siphash24::Hash impl core::marker::Copy for bitcoin_hashes::hash160::Hash +impl core::marker::Copy for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Copy for bitcoin_hashes::ripemd160::Hash impl core::marker::Copy for bitcoin_hashes::sha1::Hash impl core::marker::Copy for bitcoin_hashes::sha256::Hash @@ -203,6 +209,7 @@ impl core::marker::Copy for bitcoin_hashes::sha512_256::Hash impl core::marker::Copy for bitcoin_hashes::siphash24::Hash impl core::marker::Freeze for bitcoin_hashes::FromSliceError impl core::marker::Freeze for bitcoin_hashes::hash160::Hash +impl core::marker::Freeze for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Freeze for bitcoin_hashes::ripemd160::Hash impl core::marker::Freeze for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Freeze for bitcoin_hashes::sha1::Hash @@ -222,6 +229,7 @@ impl core::marker::Freeze for bitcoin_hashes::siphash24::HashEngine impl core::marker::Freeze for bitcoin_hashes::siphash24::State impl core::marker::Send for bitcoin_hashes::FromSliceError impl core::marker::Send for bitcoin_hashes::hash160::Hash +impl core::marker::Send for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Send for bitcoin_hashes::ripemd160::Hash impl core::marker::Send for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Send for bitcoin_hashes::sha1::Hash @@ -241,6 +249,7 @@ impl core::marker::Send for bitcoin_hashes::siphash24::HashEngine impl core::marker::Send for bitcoin_hashes::siphash24::State impl core::marker::StructuralPartialEq for bitcoin_hashes::FromSliceError impl core::marker::StructuralPartialEq for bitcoin_hashes::hash160::Hash +impl core::marker::StructuralPartialEq for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::StructuralPartialEq for bitcoin_hashes::ripemd160::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::sha1::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::sha256::Hash @@ -252,6 +261,7 @@ impl core::marker::StructuralPartialEq for bitcoin_hashes::sha512_256::Hash impl core::marker::StructuralPartialEq for bitcoin_hashes::siphash24::Hash impl core::marker::Sync for bitcoin_hashes::FromSliceError impl core::marker::Sync for bitcoin_hashes::hash160::Hash +impl core::marker::Sync for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Sync for bitcoin_hashes::ripemd160::Hash impl core::marker::Sync for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Sync for bitcoin_hashes::sha1::Hash @@ -271,6 +281,7 @@ impl core::marker::Sync for bitcoin_hashes::siphash24::HashEngine impl core::marker::Sync for bitcoin_hashes::siphash24::State impl core::marker::Unpin for bitcoin_hashes::FromSliceError impl core::marker::Unpin for bitcoin_hashes::hash160::Hash +impl core::marker::Unpin for bitcoin_hashes::hkdf::MaxLengthError impl core::marker::Unpin for bitcoin_hashes::ripemd160::Hash impl core::marker::Unpin for bitcoin_hashes::ripemd160::HashEngine impl core::marker::Unpin for bitcoin_hashes::sha1::Hash @@ -290,6 +301,7 @@ impl core::marker::Unpin for bitcoin_hashes::siphash24::HashEngine impl core::marker::Unpin for bitcoin_hashes::siphash24::State impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::FromSliceError impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hash160::Hash +impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hkdf::MaxLengthError impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::ripemd160::Hash impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::ripemd160::HashEngine impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::sha1::Hash @@ -309,6 +321,7 @@ impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::siphash24::Hash impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::siphash24::State impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::FromSliceError impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hash160::Hash +impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hkdf::MaxLengthError impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::ripemd160::Hash impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::ripemd160::HashEngine impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::sha1::Hash @@ -351,6 +364,7 @@ impl> core::ops::index::Index for bit impl core::str::traits::FromStr for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::Hash for bitcoin_hashes::hmac::Hmac impl bitcoin_hashes::HashEngine for bitcoin_hashes::hmac::HmacEngine +impl bitcoin_hashes::hkdf::Hkdf impl bitcoin_hashes::hmac::HmacEngine impl core::convert::AsRef<[u8]> for bitcoin_hashes::hmac::Hmac impl core::default::Default for bitcoin_hashes::hmac::HmacEngine @@ -384,26 +398,32 @@ 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 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 impl core::marker::Freeze for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Freeze impl core::marker::Freeze for bitcoin_hashes::sha256t::Hash +impl core::marker::Send for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::Hmac where T: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Send impl core::marker::Send for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Send impl core::marker::Send for bitcoin_hashes::sha256t::Hash where T: core::marker::Send +impl core::marker::Sync for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::Hmac where T: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Sync impl core::marker::Sync for bitcoin_hashes::sha256t::Hash where T: core::marker::Sync +impl core::marker::Unpin for bitcoin_hashes::hkdf::Hkdf where T: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::Hmac where T: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::marker::Unpin impl core::marker::Unpin for bitcoin_hashes::sha256t::Hash where T: core::marker::Unpin +impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hkdf::Hkdf where T: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::Hmac where T: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::panic::unwind_safe::RefUnwindSafe impl core::panic::unwind_safe::RefUnwindSafe for bitcoin_hashes::sha256t::Hash where T: core::panic::unwind_safe::RefUnwindSafe +impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hkdf::Hkdf where T: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::Hmac where T: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::HmacEngine where ::Engine: core::panic::unwind_safe::UnwindSafe impl core::panic::unwind_safe::UnwindSafe for bitcoin_hashes::hmac::HmacMidState where <::Engine as bitcoin_hashes::HashEngine>::MidState: core::panic::unwind_safe::UnwindSafe @@ -486,6 +506,11 @@ pub fn bitcoin_hashes::hash160::Hash::hash<__H: core::hash::Hasher>(&self, state pub fn bitcoin_hashes::hash160::Hash::index(&self, index: I) -> &Self::Output pub fn bitcoin_hashes::hash160::Hash::partial_cmp(&self, other: &bitcoin_hashes::hash160::Hash) -> core::option::Option pub fn bitcoin_hashes::hash160::Hash::to_byte_array(self) -> Self::Bytes +pub fn bitcoin_hashes::hkdf::Hkdf::expand(&self, info: &[u8], okm: &mut [u8]) -> core::result::Result<(), bitcoin_hashes::hkdf::MaxLengthError> +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] @@ -757,6 +782,7 @@ pub macro bitcoin_hashes::sha256t_hash_newtype! pub mod bitcoin_hashes pub mod bitcoin_hashes::cmp pub mod bitcoin_hashes::hash160 +pub mod bitcoin_hashes::hkdf pub mod bitcoin_hashes::hmac pub mod bitcoin_hashes::ripemd160 pub mod bitcoin_hashes::serde_macros @@ -770,6 +796,8 @@ pub mod bitcoin_hashes::sha512_256 pub mod bitcoin_hashes::siphash24 pub struct bitcoin_hashes::FromSliceError pub struct bitcoin_hashes::HmacEngine +pub struct bitcoin_hashes::hkdf::Hkdf +pub struct bitcoin_hashes::hkdf::MaxLengthError pub struct bitcoin_hashes::hmac::HmacEngine pub struct bitcoin_hashes::hmac::HmacMidState pub struct bitcoin_hashes::ripemd160::HashEngine