pub struct Ed25519<'k> { /* private fields */ }
Expand description
Ed25519 Public key
Implementations§
Source§impl<'k> Ed25519<'k>
impl<'k> Ed25519<'k>
Sourcepub fn from_public_bytes(public_key: Cow<'k, [u8]>) -> Result<Self, ProtoError>
pub fn from_public_bytes(public_key: Cow<'k, [u8]>) -> Result<Self, ProtoError>
RFC 8080 EdDSA for DNSSEC February 2017
An Ed25519 public key consists of a 32-octet value, which is encoded
into the Public Key field of a DNSKEY resource record as a simple bit
string. The generation of a public key is defined in Section 5.1.5
of [RFC8032].
Trait Implementations§
Auto Trait Implementations§
impl<'k> Freeze for Ed25519<'k>
impl<'k> RefUnwindSafe for Ed25519<'k>
impl<'k> Send for Ed25519<'k>
impl<'k> Sync for Ed25519<'k>
impl<'k> Unpin for Ed25519<'k>
impl<'k> UnwindSafe for Ed25519<'k>
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