Enum secp256k1::ellswift::ElligatorSwiftParty
source · 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§
source§impl Clone for ElligatorSwiftParty
impl Clone for ElligatorSwiftParty
source§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 moresource§impl Debug for ElligatorSwiftParty
impl Debug for ElligatorSwiftParty
source§impl Hash for ElligatorSwiftParty
impl Hash for ElligatorSwiftParty
source§impl Ord for ElligatorSwiftParty
impl Ord for ElligatorSwiftParty
source§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
source§impl PartialEq for ElligatorSwiftParty
impl PartialEq for ElligatorSwiftParty
source§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 ==
.source§impl PartialOrd for ElligatorSwiftParty
impl PartialOrd for ElligatorSwiftParty
source§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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)