pub struct PublicKey(/* private fields */);Expand description
A public key for asymmetric encryption using X25519
This key is used for encrypting messages and can be shared publicly. It is derived from the corresponding secret key using the X25519 elliptic curve.
§Properties
- Size: 32 bytes (256 bits)
- Based on the X25519 elliptic curve
- Can be safely shared with anyone
- Used to encrypt messages that can only be decrypted with the corresponding secret key
Implementations§
Trait Implementations§
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin for PublicKey
impl UnwindSafe for PublicKey
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