pub enum SignatureAlgorithm {
EdDsa,
Es256,
Es256k,
}Expand description
Signature related batteries for DIDComm. Implementation of all algorithms required by (spec)[https://identity.foundation/didcomm-messaging/spec/#algorithms]
Variants§
Trait Implementations§
Source§impl Clone for SignatureAlgorithm
impl Clone for SignatureAlgorithm
Source§fn clone(&self) -> SignatureAlgorithm
fn clone(&self) -> SignatureAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureAlgorithm
impl Debug for SignatureAlgorithm
Source§impl Signer for SignatureAlgorithm
impl Signer for SignatureAlgorithm
Source§fn signer(&self) -> SigningMethod
fn signer(&self) -> SigningMethod
Builds signer FnOnce, which performs signing.
§Examples
use co_didcomm::crypto::{SignatureAlgorithm, Signer};
let signer = SignatureAlgorithm::Es256k.signer();Source§fn validator(&self) -> ValidationMethod
fn validator(&self) -> ValidationMethod
Builds validator FnOnce, which performs signature validation.
§Examples
use co_didcomm::crypto::{Signer, SignatureAlgorithm};
let validator = SignatureAlgorithm::Es256k.validator();Auto Trait Implementations§
impl Freeze for SignatureAlgorithm
impl RefUnwindSafe for SignatureAlgorithm
impl Send for SignatureAlgorithm
impl Sync for SignatureAlgorithm
impl Unpin for SignatureAlgorithm
impl UnsafeUnpin for SignatureAlgorithm
impl UnwindSafe for SignatureAlgorithm
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