[−][src]Struct lnpbp::bp::scripts::descriptor::PubkeyWithTweak
Representation of a public key with attached tweaking factor
Fields
pubkey: DescriptorPublicKey
tweak: SecretKey
Trait Implementations
impl Clone for PubkeyWithTweak
[src]
fn clone(&self) -> PubkeyWithTweak
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PubkeyWithTweak
[src]
impl Display for PubkeyWithTweak
[src]
impl Eq for PubkeyWithTweak
[src]
impl FromStr for PubkeyWithTweak
[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 PubkeyWithTweak
[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 MaybeTweakPair for PubkeyWithTweak
[src]
fn has_tweak(&self) -> bool
[src]
Returns whether key has embedded tweaking information
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
fn as_descriptor_public_key(&self) -> &DescriptorPublicKey
[src]
Returns reference to an untweaked DescriptorPublicKey
value
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
fn into_descriptor_public_key(self) -> DescriptorPublicKey
[src]
Converts into an untweaked DescriptorPublicKey
value
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
impl MiniscriptKey for PubkeyWithTweak
[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 PubkeyWithTweak
[src]
fn cmp(&self, other: &PubkeyWithTweak) -> 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<PubkeyWithTweak> for PubkeyWithTweak
[src]
fn eq(&self, other: &PubkeyWithTweak) -> bool
[src]
fn ne(&self, other: &PubkeyWithTweak) -> bool
[src]
impl PartialOrd<PubkeyWithTweak> for PubkeyWithTweak
[src]
fn partial_cmp(&self, other: &PubkeyWithTweak) -> Option<Ordering>
[src]
fn lt(&self, other: &PubkeyWithTweak) -> bool
[src]
fn le(&self, other: &PubkeyWithTweak) -> bool
[src]
fn gt(&self, other: &PubkeyWithTweak) -> bool
[src]
fn ge(&self, other: &PubkeyWithTweak) -> bool
[src]
impl StructuralEq for PubkeyWithTweak
[src]
impl StructuralPartialEq for PubkeyWithTweak
[src]
impl ToPublicKey for PubkeyWithTweak
[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 PubkeyWithTweak
impl Send for PubkeyWithTweak
impl Sync for PubkeyWithTweak
impl Unpin for PubkeyWithTweak
impl UnwindSafe for PubkeyWithTweak
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> 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub 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>,