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