[−][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)
Implementations
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: Clone> Clone for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
pub 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]
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>,
pub fn consensus_decode<D: Read>(mut d: D) -> Result<Self, Error>
[src]
impl<Subtype> Encodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype: Eq> Eq 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>,
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Subtype: Ord> Ord for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
pub fn cmp(&self, other: &ProprietaryKey<Subtype>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<Subtype: PartialEq> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>,
[src]
Subtype: Copy + From<u8> + Into<u8>,
pub fn eq(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
pub 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]
Subtype: Copy + From<u8> + Into<u8>,
pub fn partial_cmp(&self, other: &ProprietaryKey<Subtype>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
pub fn le(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
pub fn gt(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
pub fn ge(&self, other: &ProprietaryKey<Subtype>) -> bool
[src]
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,
[src]
Subtype: RefUnwindSafe,
impl<Subtype> Send for ProprietaryKey<Subtype> where
Subtype: Send,
[src]
Subtype: Send,
impl<Subtype> Sync for ProprietaryKey<Subtype> where
Subtype: Sync,
[src]
Subtype: Sync,
impl<Subtype> Unpin for ProprietaryKey<Subtype> where
Subtype: Unpin,
[src]
Subtype: Unpin,
impl<Subtype> UnwindSafe for ProprietaryKey<Subtype> where
Subtype: UnwindSafe,
[src]
Subtype: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,