pub enum ElligatorSwiftParty {
A,
B,
}
Expand description
Represents which party we are in the ECDH.
Here A
is the initiator and B
is the responder.
this context, “we” means the party that possesses the secret key passed to
ElligatorSwift::shared_secret
.
This distinction is important because the different parties compute different hashes of the 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§impl PartialOrd for ElligatorSwiftParty
impl PartialOrd for ElligatorSwiftParty
impl 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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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§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.