Struct bitcoin::bip32::XpubIdentifier
source · pub struct XpubIdentifier(/* private fields */);
👎Deprecated since 0.0.0-NEXT-RELEASE: use XKeyIdentifier instead
Expand description
XpubIdentifier as defined in BIP-32.
Implementations§
source§impl XpubIdentifier
impl XpubIdentifier
sourcepub fn from_raw_hash(inner: Hash) -> XpubIdentifier
pub fn from_raw_hash(inner: Hash) -> XpubIdentifier
Creates this wrapper type from the inner hash type.
sourcepub fn to_raw_hash(self) -> Hash
pub fn to_raw_hash(self) -> Hash
Returns the inner hash (sha256, sh256d etc.).
sourcepub fn as_raw_hash(&self) -> &Hash
pub fn as_raw_hash(&self) -> &Hash
Returns a reference to the inner hash (sha256, sh256d etc.).
Trait Implementations§
source§impl AsRef<[u8]> for XpubIdentifier
impl AsRef<[u8]> for XpubIdentifier
source§impl Borrow<[u8]> for XpubIdentifier
impl Borrow<[u8]> for XpubIdentifier
source§impl Clone for XpubIdentifier
impl Clone for XpubIdentifier
source§fn clone(&self) -> XpubIdentifier
fn clone(&self) -> XpubIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for XpubIdentifier
impl Debug for XpubIdentifier
source§impl<'de> Deserialize<'de> for XpubIdentifier
impl<'de> Deserialize<'de> for XpubIdentifier
source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<XpubIdentifier, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<XpubIdentifier, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for XpubIdentifier
impl Display for XpubIdentifier
source§impl From<Hash> for XpubIdentifier
impl From<Hash> for XpubIdentifier
source§fn from(inner: Hash) -> XpubIdentifier
fn from(inner: Hash) -> XpubIdentifier
Converts to this type from the input type.
source§impl From<XpubIdentifier> for Hash
impl From<XpubIdentifier> for Hash
source§fn from(hashtype: XpubIdentifier) -> Hash
fn from(hashtype: XpubIdentifier) -> Hash
Converts to this type from the input type.
source§impl FromStr for XpubIdentifier
impl FromStr for XpubIdentifier
source§impl Hash for XpubIdentifier
impl Hash for XpubIdentifier
§type Engine = <Hash as Hash>::Engine
type Engine = <Hash as Hash>::Engine
A hashing engine which bytes can be serialized into. It is expected
to implement the
io::Write
trait, and to never return errors under
any conditions.source§const DISPLAY_BACKWARD: bool = false
const DISPLAY_BACKWARD: bool = false
Flag indicating whether user-visible serializations of this hash
should be backward. For some reason Satoshi decided this should be
true for
Sha256dHash
, so here we are.source§fn from_engine(e: Self::Engine) -> Self
fn from_engine(e: Self::Engine) -> Self
Produces a hash from the current state of a given engine.
source§fn from_slice(sl: &[u8]) -> Result<XpubIdentifier, FromSliceError>
fn from_slice(sl: &[u8]) -> Result<XpubIdentifier, FromSliceError>
Copies a byte slice into a hash object.
source§fn from_byte_array(bytes: Self::Bytes) -> Self
fn from_byte_array(bytes: Self::Bytes) -> Self
Constructs a hash from the underlying byte array.
source§fn to_byte_array(self) -> Self::Bytes
fn to_byte_array(self) -> Self::Bytes
Returns the underlying byte array.
source§fn as_byte_array(&self) -> &Self::Bytes
fn as_byte_array(&self) -> &Self::Bytes
Returns a reference to the underlying byte array.
source§impl Hash for XpubIdentifier
impl Hash for XpubIdentifier
source§impl<I: SliceIndex<[u8]>> Index<I> for XpubIdentifier
impl<I: SliceIndex<[u8]>> Index<I> for XpubIdentifier
source§impl LowerHex for XpubIdentifier
impl LowerHex for XpubIdentifier
source§impl Ord for XpubIdentifier
impl Ord for XpubIdentifier
source§fn cmp(&self, other: &XpubIdentifier) -> Ordering
fn cmp(&self, other: &XpubIdentifier) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<XpubIdentifier> for XpubIdentifier
impl PartialEq<XpubIdentifier> for XpubIdentifier
source§fn eq(&self, other: &XpubIdentifier) -> bool
fn eq(&self, other: &XpubIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<XpubIdentifier> for XpubIdentifier
impl PartialOrd<XpubIdentifier> for XpubIdentifier
source§fn partial_cmp(&self, other: &XpubIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &XpubIdentifier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SerdeHash for XpubIdentifier
impl SerdeHash for XpubIdentifier
source§fn from_slice_delegated(sl: &[u8]) -> Result<Self, FromSliceError>
fn from_slice_delegated(sl: &[u8]) -> Result<Self, FromSliceError>
Helper function to turn a deserialized slice into the correct hash type.
§fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, s: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Do serde serialization.
§fn deserialize<'de, D>(d: D) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<'de, D>(d: D) -> Result<Self, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Do serde deserialization.
source§impl Serialize for XpubIdentifier
impl Serialize for XpubIdentifier
source§impl UpperHex for XpubIdentifier
impl UpperHex for XpubIdentifier
impl Copy for XpubIdentifier
impl Eq for XpubIdentifier
impl StructuralEq for XpubIdentifier
impl StructuralPartialEq for XpubIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for XpubIdentifier
impl Send for XpubIdentifier
impl Sync for XpubIdentifier
impl Unpin for XpubIdentifier
impl UnwindSafe for XpubIdentifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more