pub struct Signer { /* private fields */ }
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn new(key: SigningKey) -> Self
pub fn new(key: SigningKey) -> Self
Creates a new Signer
from an ed25519 SigningKey
(private key)
Sourcepub fn as_verifier(&self) -> Verifier
pub fn as_verifier(&self) -> Verifier
Creates a Verifier
which can decode and verify PWT but can not sign them
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
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