pub struct TweakedPublicKey(/* private fields */);Expand description
Tweaked Schnorr public key
Implementations§
Source§impl TweakedPublicKey
impl TweakedPublicKey
Sourcepub fn from_keypair(keypair: TweakedKeypair) -> Self
pub fn from_keypair(keypair: TweakedKeypair) -> Self
Returns the TweakedPublicKey for keypair.
Sourcepub fn new(key: XOnlyPublicKey) -> TweakedPublicKey
pub fn new(key: XOnlyPublicKey) -> TweakedPublicKey
Create a new TweakedPublicKey from a XOnlyPublicKey. No tweak is applied.
Sourcepub fn into_inner(self) -> XOnlyPublicKey
pub fn into_inner(self) -> XOnlyPublicKey
Returns the underlying public key
Sourcepub fn as_inner(&self) -> &XOnlyPublicKey
pub fn as_inner(&self) -> &XOnlyPublicKey
Returns a reference to underlying public key
Trait Implementations§
Source§impl Clone for TweakedPublicKey
impl Clone for TweakedPublicKey
Source§fn clone(&self) -> TweakedPublicKey
fn clone(&self) -> TweakedPublicKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TweakedPublicKey
impl Debug for TweakedPublicKey
Source§impl From<TweakedKeypair> for TweakedPublicKey
impl From<TweakedKeypair> for TweakedPublicKey
Source§fn from(pair: TweakedKeypair) -> Self
fn from(pair: TweakedKeypair) -> Self
Converts to this type from the input type.
Source§impl From<TweakedPublicKey> for XOnlyPublicKey
impl From<TweakedPublicKey> for XOnlyPublicKey
Source§fn from(pair: TweakedPublicKey) -> Self
fn from(pair: TweakedPublicKey) -> Self
Converts to this type from the input type.
Source§impl Hash for TweakedPublicKey
impl Hash for TweakedPublicKey
Source§impl Ord for TweakedPublicKey
impl Ord for TweakedPublicKey
Source§fn cmp(&self, other: &TweakedPublicKey) -> Ordering
fn cmp(&self, other: &TweakedPublicKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TweakedPublicKey
impl PartialEq for TweakedPublicKey
Source§impl PartialOrd for TweakedPublicKey
impl PartialOrd for TweakedPublicKey
impl Copy for TweakedPublicKey
impl Eq for TweakedPublicKey
impl StructuralPartialEq for TweakedPublicKey
Auto Trait Implementations§
impl Freeze for TweakedPublicKey
impl RefUnwindSafe for TweakedPublicKey
impl Send for TweakedPublicKey
impl Sync for TweakedPublicKey
impl Unpin for TweakedPublicKey
impl UnwindSafe for TweakedPublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more