pub struct Ed25519Signer { /* private fields */ }Expand description
Ed25519 signer.
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
pub fn generate() -> Result<Self, SignerError>
pub fn from_pem(pem: &str) -> Result<Self, SignerError>
pub fn from_seed(seed: &[u8]) -> Result<Self, SignerError>
pub fn to_pem(&self) -> Result<String, SignerError>
pub fn verify_with_public_key( data: &[u8], public_key: &[u8], signature: &[u8], ) -> Result<(), SignerError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ed25519Signer
impl RefUnwindSafe for Ed25519Signer
impl Send for Ed25519Signer
impl Sync for Ed25519Signer
impl Unpin for Ed25519Signer
impl UnsafeUnpin for Ed25519Signer
impl UnwindSafe for Ed25519Signer
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