Struct wallet::psbt::ProprietaryKey [−][src]
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: SubtypeCustom proprietary subtype
key: Vec<u8, Global>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<ProprietaryKey<Subtype>, 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 for ProprietaryKey<Subtype> where
Subtype: Clone + Copy + From<u8> + Into<u8>, [src]
Subtype: Clone + 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 for ProprietaryKey<Subtype> where
Subtype: Debug + Copy + From<u8> + Into<u8>, [src]
Subtype: Debug + 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>(d: D) -> Result<ProprietaryKey<Subtype>, Error> where
D: Read, [src]
D: Read,
impl<Subtype> Encodable for ProprietaryKey<Subtype> where
Subtype: Copy + From<u8> + Into<u8>, [src]
Subtype: Copy + From<u8> + Into<u8>,
impl<Subtype> Eq for ProprietaryKey<Subtype> where
Subtype: Eq + Copy + From<u8> + Into<u8>, [src]
Subtype: Eq + Copy + From<u8> + Into<u8>,
impl<Subtype> Hash for ProprietaryKey<Subtype> where
Subtype: Hash + Copy + From<u8> + Into<u8>, [src]
Subtype: Hash + Copy + From<u8> + Into<u8>,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<Subtype> Ord for ProprietaryKey<Subtype> where
Subtype: Ord + Copy + From<u8> + Into<u8>, [src]
Subtype: Ord + Copy + From<u8> + Into<u8>,
pub fn cmp(&self, other: &ProprietaryKey<Subtype>) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl<Subtype> PartialEq<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: PartialEq<Subtype> + Copy + From<u8> + Into<u8>, [src]
Subtype: PartialEq<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<ProprietaryKey<Subtype>> for ProprietaryKey<Subtype> where
Subtype: PartialOrd<Subtype> + Copy + From<u8> + Into<u8>, [src]
Subtype: PartialOrd<Subtype> + Copy + From<u8> + Into<u8>,
pub 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 le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[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,
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,
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>,