Enum bdk_chain::bitcoin::secp256k1::ellswift::ElligatorSwiftParty
pub enum ElligatorSwiftParty {
A,
B,
}
Expand description
Represents which party we are in the ECDH, A is the initiator, B is the responder.
This is important because the hash of the shared secret is different depending on which party
we are. In this context, “we” means the party that is using this library, and possesses the
secret key passed to ElligatorSwift::shared_secret
.
Variants§
Trait Implementations§
§impl Clone for ElligatorSwiftParty
impl Clone for ElligatorSwiftParty
§fn clone(&self) -> ElligatorSwiftParty
fn clone(&self) -> ElligatorSwiftParty
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 ElligatorSwiftParty
impl Debug for ElligatorSwiftParty
§impl Hash for ElligatorSwiftParty
impl Hash for ElligatorSwiftParty
§impl Ord for ElligatorSwiftParty
impl Ord for ElligatorSwiftParty
§fn cmp(&self, other: &ElligatorSwiftParty) -> Ordering
fn cmp(&self, other: &ElligatorSwiftParty) -> 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
§impl PartialEq for ElligatorSwiftParty
impl PartialEq for ElligatorSwiftParty
§fn eq(&self, other: &ElligatorSwiftParty) -> bool
fn eq(&self, other: &ElligatorSwiftParty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ElligatorSwiftParty
impl PartialOrd for ElligatorSwiftParty
§fn partial_cmp(&self, other: &ElligatorSwiftParty) -> Option<Ordering>
fn partial_cmp(&self, other: &ElligatorSwiftParty) -> 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 moreimpl Copy for ElligatorSwiftParty
impl Eq for ElligatorSwiftParty
impl StructuralPartialEq for ElligatorSwiftParty
Auto Trait Implementations§
impl Freeze for ElligatorSwiftParty
impl RefUnwindSafe for ElligatorSwiftParty
impl Send for ElligatorSwiftParty
impl Sync for ElligatorSwiftParty
impl Unpin for ElligatorSwiftParty
impl UnwindSafe for ElligatorSwiftParty
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
§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