Type Alias bitcoin::key::TweakedKeyPair
source · pub type TweakedKeyPair = TweakedKeypair;
👎Deprecated since 0.31.0: use TweakedKeypair instead
Expand description
Tweaked BIP-340 key pair
Aliased Type§
struct TweakedKeyPair(/* private fields */);
Implementations§
source§impl TweakedKeypair
impl TweakedKeypair
sourcepub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair
pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair
Creates a new TweakedKeypair
from a Keypair
. No tweak is applied, consider
calling tap_tweak
on an UntweakedKeypair
instead of using this constructor.
This method is dangerous and can lead to loss of funds if used incorrectly. Specifically, in multi-party protocols a peer can provide a value that allows them to steal.
sourcepub fn public_parts(&self) -> (TweakedPublicKey, Parity)
pub fn public_parts(&self) -> (TweakedPublicKey, Parity)
Returns the TweakedPublicKey
and its Parity
for this TweakedKeypair
.
Trait Implementations§
source§impl Clone for TweakedKeypair
impl Clone for TweakedKeypair
source§fn clone(&self) -> TweakedKeypair
fn clone(&self) -> TweakedKeypair
Returns a copy 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 TweakedKeypair
impl Debug for TweakedKeypair
source§impl<'de> Deserialize<'de> for TweakedKeypair
impl<'de> Deserialize<'de> for TweakedKeypair
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TweakedKeypair
impl Hash for TweakedKeypair
source§impl Ord for TweakedKeypair
impl Ord for TweakedKeypair
source§fn cmp(&self, other: &TweakedKeypair) -> Ordering
fn cmp(&self, other: &TweakedKeypair) -> 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<TweakedKeypair> for TweakedKeypair
impl PartialEq<TweakedKeypair> for TweakedKeypair
source§fn eq(&self, other: &TweakedKeypair) -> bool
fn eq(&self, other: &TweakedKeypair) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TweakedKeypair> for TweakedKeypair
impl PartialOrd<TweakedKeypair> for TweakedKeypair
source§fn partial_cmp(&self, other: &TweakedKeypair) -> Option<Ordering>
fn partial_cmp(&self, other: &TweakedKeypair) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more