Struct psbt::ProprietaryKey [−][src]
pub struct ProprietaryKey<Subtype = u8> where
Subtype: Copy + From<u8> + Into<u8>, {
pub prefix: Vec<u8, Global>,
pub subtype: Subtype,
pub key: Vec<u8, Global>,
}
Expand description
Proprietary keys (i.e. keys starting with 0xFC byte) with their internal structure according to BIP 174.
Fields
prefix: Vec<u8, Global>
Proprietary type prefix used for grouping together keys under some application and avoid namespace collision
subtype: Subtype
Custom proprietary subtype
key: Vec<u8, Global>
Additional key bytes (like serialized public key data etc)
Implementations
Constructs ProprietaryKey from Key; returns
Error::InvalidProprietaryKey if key
do not starts with 0xFC byte
Trait Implementations
Decode an object with a well-defined format
impl<Subtype> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: PartialEq<Subtype> + Copy + From<u8> + Into<u8>,
impl<Subtype> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: PartialEq<Subtype> + Copy + From<u8> + Into<u8>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<Subtype> PartialOrd<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: PartialOrd<Subtype> + Copy + From<u8> + Into<u8>,
impl<Subtype> PartialOrd<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: PartialOrd<Subtype> + Copy + From<u8> + Into<u8>,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<Subtype> StructuralEq for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype> StructuralPartialEq for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
Auto Trait Implementations
impl<Subtype> RefUnwindSafe for ProprietaryKey<Subtype> where
Subtype: RefUnwindSafe,
impl<Subtype> Send for ProprietaryKey<Subtype> where
Subtype: Send,
impl<Subtype> Sync for ProprietaryKey<Subtype> where
Subtype: Sync,
impl<Subtype> Unpin for ProprietaryKey<Subtype> where
Subtype: Unpin,
impl<Subtype> UnwindSafe for ProprietaryKey<Subtype> where
Subtype: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more