pub struct Ed25519Key(/* private fields */);Expand description
Ed25519 签名密钥(非批准)。
Implementations§
Trait Implementations§
Source§impl Debug for Ed25519Key
impl Debug for Ed25519Key
Source§impl SigningKey for Ed25519Key
impl SigningKey for Ed25519Key
Source§fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>
fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>
Choose a
SignatureScheme from those offered. Read moreSource§fn algorithm(&self) -> SignatureAlgorithm
fn algorithm(&self) -> SignatureAlgorithm
What kind of key we have.
Source§fn public_key(&self) -> Option<SubjectPublicKeyInfoDer<'_>>
fn public_key(&self) -> Option<SubjectPublicKeyInfoDer<'_>>
Get the RFC 5280-compliant SubjectPublicKeyInfo (SPKI) of this
SigningKey if available.Auto Trait Implementations§
impl Freeze for Ed25519Key
impl RefUnwindSafe for Ed25519Key
impl Send for Ed25519Key
impl Sync for Ed25519Key
impl Unpin for Ed25519Key
impl UnsafeUnpin for Ed25519Key
impl UnwindSafe for Ed25519Key
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