pub struct Ed25519Key { /* private fields */ }
Implementations§
Source§impl Ed25519Key
impl Ed25519Key
pub fn generate_pkcs8() -> Result<Vec<u8>>
pub fn from_pkcs8_der(pkcs8_der: &[u8]) -> Result<Self>
pub fn from_pkcs8_maybe_unchecked_der(pkcs8_der: &[u8]) -> Result<Self>
pub fn from_seed_and_public_key(seed: &[u8], public_key: &[u8]) -> Result<Self>
pub fn public_key(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ed25519Key
impl RefUnwindSafe for Ed25519Key
impl Send for Ed25519Key
impl Sync for Ed25519Key
impl Unpin 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