Struct TweakedKeyPair
pub struct TweakedKeyPair(/* private fields */);
Expand description
Tweaked BIP-340 key pair
Implementations§
§impl TweakedKeyPair
impl TweakedKeyPair
pub 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.
pub fn into_inner(self) -> KeyPair
👎Deprecated since 0.29.0: use to_inner instead
pub fn into_inner(self) -> KeyPair
Returns the underlying key pair
Trait Implementations§
§impl Clone for TweakedKeyPair
impl Clone for TweakedKeyPair
§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 more§impl Debug for TweakedKeyPair
impl Debug for TweakedKeyPair
§impl From<TweakedKeyPair> for KeyPair
impl From<TweakedKeyPair> for KeyPair
§fn from(pair: TweakedKeyPair) -> KeyPair
fn from(pair: TweakedKeyPair) -> KeyPair
Converts to this type from the input type.
§impl Hash for TweakedKeyPair
impl Hash for TweakedKeyPair
§impl Ord for TweakedKeyPair
impl Ord for TweakedKeyPair
§impl PartialEq for TweakedKeyPair
impl PartialEq for TweakedKeyPair
§impl PartialOrd for TweakedKeyPair
impl PartialOrd for TweakedKeyPair
impl Copy for TweakedKeyPair
impl Eq for TweakedKeyPair
impl StructuralPartialEq for TweakedKeyPair
Auto Trait Implementations§
impl Freeze for TweakedKeyPair
impl RefUnwindSafe for TweakedKeyPair
impl Send for TweakedKeyPair
impl Sync for TweakedKeyPair
impl Unpin for TweakedKeyPair
impl UnwindSafe for TweakedKeyPair
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request