pub struct Ed25519<'k> { /* private fields */ }
Available on crate features
dnssec
and dnssec-ring
only.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>
Internet-Draft EdDSA for DNSSEC December 2016
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
in [RFC 8032]. Breaking tradition, the keys are encoded in little-
endian byte order.
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