pub struct Ed25519PublicKey(pub [u8; 32]);Expand description
Ed25519 public key (32 bytes, compressed point encoding).
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl Ed25519PublicKey
impl Ed25519PublicKey
Sourcepub fn to_spki_der(&self) -> Vec<u8> ⓘ
pub fn to_spki_der(&self) -> Vec<u8> ⓘ
Encode as SubjectPublicKeyInfo DER (RFC 8037).
Sourcepub fn from_spki_der(der: &[u8]) -> Option<Self>
pub fn from_spki_der(der: &[u8]) -> Option<Self>
Parse from SPKI DER.
Sourcepub fn to_spki_pem(&self) -> String
pub fn to_spki_pem(&self) -> String
Encode as SPKI PEM.
Sourcepub fn from_spki_pem(pem: &str) -> Option<Self>
pub fn from_spki_pem(pem: &str) -> Option<Self>
Parse from SPKI PEM.
Trait Implementations§
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
impl Debug 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 UnsafeUnpin 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