Trait ring_compat::signature::Signer [−][src]
pub trait Signer<S> where
S: Signature, { pub fn try_sign(&self, msg: &[u8]) -> Result<S, Error>; pub fn sign(&self, msg: &[u8]) -> S { ... } }
This is supported on crate feature
signature
only.Sign the provided message bytestring using Self
(e.g. a cryptographic key
or connection to an HSM), returning a digital signature.
Required methods
pub fn try_sign(&self, msg: &[u8]) -> Result<S, Error>
[src]
Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong.
The main intended use case for signing errors is when communicating with external signers, e.g. cloud KMS, HSMs, or other hardware tokens.
Provided methods
Loading content...Implementors
impl Signer<Signature> for ring_compat::signature::ed25519::SigningKey
[src]
impl Signer<Signature> for ring_compat::signature::ed25519::SigningKey
[src]