[−][src]Struct bitcoin::util::psbt::raw::ProprietaryKey
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: Subtype
Custom proprietary subtype
key: Vec<u8>
Additional key bytes (like serialized public key data etc)
Methods
impl<Subtype> ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
pub fn from_key(key: Key) -> Result<Self, Error>
[src]
Constructs [ProprietaryKey] from [Key]; returns
[Error::InvalidProprietaryKey] if key
do not starts with 0xFC byte
pub fn to_key(&self) -> Key
[src]
Constructs full [Key] corresponding to this proprietary key type
Trait Implementations
impl<Subtype> Encodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype> Decodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl<Subtype: Ord> Ord for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
fn cmp(&self, other: &ProprietaryKey<Subtype>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl<Subtype: PartialOrd> PartialOrd<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
fn partial_cmp(&self, other: &ProprietaryKey<Subtype>) -> Option<Ordering>
[src]
fn lt(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
fn le(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
fn gt(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
fn ge(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
impl<Subtype: Clone> Clone for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
fn clone(&self) -> ProprietaryKey<Subtype>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Subtype: PartialEq> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
fn eq(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
fn ne(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
impl<Subtype: Eq> Eq for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype: Debug> Debug for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype: Hash> Hash for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
Auto Trait Implementations
impl<Subtype> Unpin for ProprietaryKey<Subtype> where
Subtype: Unpin,
Subtype: Unpin,
impl<Subtype> Sync for ProprietaryKey<Subtype> where
Subtype: Sync,
Subtype: Sync,
impl<Subtype> Send for ProprietaryKey<Subtype> where
Subtype: Send,
Subtype: Send,
impl<Subtype> UnwindSafe for ProprietaryKey<Subtype> where
Subtype: UnwindSafe,
Subtype: UnwindSafe,
impl<Subtype> RefUnwindSafe for ProprietaryKey<Subtype> where
Subtype: RefUnwindSafe,
Subtype: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,