pub struct Ed25519PublicKey(/* private fields */);Expand description
An Ed25519 public key for verifying digital signatures.
Ed25519 public keys are used to verify signatures created with the corresponding private key. The Ed25519 signature system provides:
- Fast signature verification
- Small public keys (32 bytes)
- High security with resistance to various attacks
This implementation allows:
- Creating Ed25519 public keys from raw data
- Verifying signatures against messages
- Converting between various formats
Implementations§
Trait Implementations§
Source§impl Clone for Ed25519PublicKey
impl Clone for Ed25519PublicKey
Source§fn clone(&self) -> Ed25519PublicKey
fn clone(&self) -> Ed25519PublicKey
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 Ed25519PublicKey
Implements Debug to output the key with a type label.
impl Debug for Ed25519PublicKey
Implements Debug to output the key with a type label.
Source§impl Display for Ed25519PublicKey
Implements Display to output the key as a hex string.
impl Display for Ed25519PublicKey
Implements Display to output the key as a hex string.
Source§impl<'a> From<&'a Ed25519PublicKey> for &'a [u8]
Implements conversion from an Ed25519PublicKey reference to a byte slice.
impl<'a> From<&'a Ed25519PublicKey> for &'a [u8]
Implements conversion from an Ed25519PublicKey reference to a byte slice.
Source§fn from(value: &'a Ed25519PublicKey) -> Self
fn from(value: &'a Ed25519PublicKey) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a Ed25519PublicKey> for &'a [u8; 32]
Implements conversion from an Ed25519PublicKey reference to a byte array reference.
impl<'a> From<&'a Ed25519PublicKey> for &'a [u8; 32]
Implements conversion from an Ed25519PublicKey reference to a byte array reference.
Source§fn from(value: &'a Ed25519PublicKey) -> Self
fn from(value: &'a Ed25519PublicKey) -> Self
Converts to this type from the input type.
Source§impl From<[u8; 32]> for Ed25519PublicKey
Implements conversion from a byte array to an Ed25519PublicKey.
impl From<[u8; 32]> for Ed25519PublicKey
Implements conversion from a byte array to an Ed25519PublicKey.
Source§impl Hash for Ed25519PublicKey
impl Hash for Ed25519PublicKey
Source§impl PartialEq for Ed25519PublicKey
impl PartialEq for Ed25519PublicKey
impl Eq for Ed25519PublicKey
impl StructuralPartialEq for Ed25519PublicKey
Auto Trait Implementations§
impl Freeze for Ed25519PublicKey
impl RefUnwindSafe for Ed25519PublicKey
impl Send for Ed25519PublicKey
impl Sync for Ed25519PublicKey
impl Unpin for Ed25519PublicKey
impl UnwindSafe for Ed25519PublicKey
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