Struct decaf377_ka::Public
source · pub struct Public(pub [u8; 32]);
Expand description
A public key sent to the counterparty in the key agreement protocol.
This is a refinement type around [u8; 32]
that marks the bytes as being a
public key. Not all 32-byte arrays are valid public keys; invalid public
keys will error during key agreement.
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl PartialEq for Public
impl PartialEq for Public
impl Copy for Public
impl Eq for Public
impl StructuralPartialEq for Public
Auto Trait Implementations§
impl Freeze for Public
impl RefUnwindSafe for Public
impl Send for Public
impl Sync for Public
impl Unpin for Public
impl UnwindSafe for Public
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