[−][src]Enum lnpbp::bp::scripts::descriptor::PubkeyExtended
Public key information that can be used as a part of Bitcoin Core/miniscript
descriptors and parsed/serialized into string. Unlike
[miniscript::DescriptorPublicKey
] type can contain tweaking factor applied
to a public key after derication. In string-serialized form this factor
can be given as an optional extension after +
sign.
Variants
Native(DescriptorPublicKey)
Public key or extended public key without tweaking factor information
Tweaked(PubkeyWithTweak)
Public key or extended public key with tweaking information
Implementations
impl PubkeyExtended
[src]
pub fn has_tweak(&self) -> bool
[src]
Returns whether key has embedded tweaking information
pub fn as_tweaking_factor(&self) -> Option<&SecretKey>
[src]
Returns reference to a tweaking factor (in form of
Option::Some
(
[secp256k1::SecretKey
])
for
[PublicKey::Tweaked
] variant, or Option::None
otherwise
pub fn as_descriptor_public_key(&self) -> &DescriptorPublicKey
[src]
Returns reference to an untweaked DescriptorPublicKey
value
pub fn into_tweaking_factor(self) -> Option<SecretKey>
[src]
Converts into a tweaking factor value (in form of
Option::Some
(
[secp256k1::SecretKey
])
for
[PublicKey::Tweaked
] variant, or Option::None
otherwise
pub fn into_descriptor_public_key(self) -> DescriptorPublicKey
[src]
Converts into an untweaked DescriptorPublicKey
value
pub fn to_tweaked_public_key(&self, index: Option<u32>) -> PublicKey
[src]
Converts into an untweaked DescriptorPublicKey
value, optionally
using derivation into a child with index
Trait Implementations
impl Clone for PubkeyExtended
[src]
fn clone(&self) -> PubkeyExtended
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PubkeyExtended
[src]
impl Display for PubkeyExtended
[src]
impl Eq for PubkeyExtended
[src]
impl FromStr for PubkeyExtended
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for PubkeyExtended
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl MiniscriptKey for PubkeyExtended
[src]
type Hash = Self
The associated Hash type with the publicKey
fn to_pubkeyhash(&self) -> Self::Hash
[src]
fn is_uncompressed(&self) -> bool
[src]
impl Ord for PubkeyExtended
[src]
fn cmp(&self, other: &PubkeyExtended) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PubkeyExtended> for PubkeyExtended
[src]
fn eq(&self, other: &PubkeyExtended) -> bool
[src]
fn ne(&self, other: &PubkeyExtended) -> bool
[src]
impl PartialOrd<PubkeyExtended> for PubkeyExtended
[src]
fn partial_cmp(&self, other: &PubkeyExtended) -> Option<Ordering>
[src]
fn lt(&self, other: &PubkeyExtended) -> bool
[src]
fn le(&self, other: &PubkeyExtended) -> bool
[src]
fn gt(&self, other: &PubkeyExtended) -> bool
[src]
fn ge(&self, other: &PubkeyExtended) -> bool
[src]
impl StructuralEq for PubkeyExtended
[src]
impl StructuralPartialEq for PubkeyExtended
[src]
impl ToPublicKey for PubkeyExtended
[src]
fn to_public_key(&self) -> PublicKey
[src]
fn hash_to_hash160(hash: &Self::Hash) -> Hash
[src]
fn serialized_len(&self) -> usize
[src]
Auto Trait Implementations
impl RefUnwindSafe for PubkeyExtended
impl Send for PubkeyExtended
impl Sync for PubkeyExtended
impl Unpin for PubkeyExtended
impl UnwindSafe for PubkeyExtended
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,
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> Same<T> for T
type Output = T
Should always be Self
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,