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 AsRef<[u8]> for Ed25519PublicKey
impl AsRef<[u8]> for Ed25519PublicKey
Source§impl Clone for Ed25519PublicKey
impl Clone for Ed25519PublicKey
Source§fn clone(&self) -> Ed25519PublicKey
fn clone(&self) -> Ed25519PublicKey
Returns a duplicate 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)