Enum 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
§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,
§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