Struct bitcoin::util::psbt::raw::ProprietaryKey [−][src]
pub struct ProprietaryKey<Subtype = ProprietaryType> where
Subtype: Copy + From<u8> + Into<u8>, { pub prefix: Vec<u8>, pub subtype: Subtype, pub key: Vec<u8>, }
Proprietary keys (i.e. keys starting with 0xFC byte) with their internal structure according to BIP 174.
Fields
prefix: Vec<u8>Proprietary type prefix used for grouping together keys under some application and avoid namespace collision
subtype: SubtypeCustom proprietary subtype
key: Vec<u8>Additional key bytes (like serialized public key data etc)
Implementations
impl<Subtype> ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype> ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]Trait Implementations
impl<Subtype: Clone> Clone for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype: Clone> Clone for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]fn clone(&self) -> ProprietaryKey<Subtype>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Subtype: Debug> Debug for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype: Debug> Debug for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]impl<Subtype> Decodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype> Decodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>[src]
impl<'de, Subtype> Deserialize<'de> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
Subtype: Deserialize<'de>, [src]
impl<'de, Subtype> Deserialize<'de> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
Subtype: Deserialize<'de>, [src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<Subtype> Encodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype> Encodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]impl<Subtype: Hash> Hash for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype: Hash> Hash for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]impl<Subtype: PartialEq> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype: PartialEq> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]fn eq(&self, other: &ProprietaryKey<Subtype>) -> bool[src]
fn ne(&self, other: &ProprietaryKey<Subtype>) -> bool[src]
impl<Subtype: PartialOrd> PartialOrd<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
impl<Subtype: PartialOrd> PartialOrd<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]fn partial_cmp(&self, other: &ProprietaryKey<Subtype>) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<Subtype> Serialize for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
Subtype: Serialize, [src]
impl<Subtype> Serialize for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
Subtype: Serialize, [src]impl<Subtype: Eq> Eq for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype> StructuralEq for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype> StructuralPartialEq for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
Subtype: Copy + From<u8> + Into<u8>,
Auto Trait Implementations
impl<Subtype> RefUnwindSafe for ProprietaryKey<Subtype> where
Subtype: RefUnwindSafe,
Subtype: RefUnwindSafe,
impl<Subtype> Send for ProprietaryKey<Subtype> where
Subtype: Send,
Subtype: Send,
impl<Subtype> Sync for ProprietaryKey<Subtype> where
Subtype: Sync,
Subtype: Sync,
impl<Subtype> Unpin for ProprietaryKey<Subtype> where
Subtype: Unpin,
Subtype: Unpin,
impl<Subtype> UnwindSafe for ProprietaryKey<Subtype> where
Subtype: UnwindSafe,
Subtype: UnwindSafe,