Trait openmls_traits::signatures::Signer
source · pub trait Signer {
// Required methods
fn sign(&self, payload: &[u8]) -> Result<Vec<u8>, Error>;
fn signature_scheme(&self) -> SignatureScheme;
}
Expand description
Sign the provided payload and return a signature.
Required Methods§
sourcefn sign(&self, payload: &[u8]) -> Result<Vec<u8>, Error>
fn sign(&self, payload: &[u8]) -> Result<Vec<u8>, Error>
Sign the provided payload.
Returns a signature on success or an Error.
sourcefn signature_scheme(&self) -> SignatureScheme
fn signature_scheme(&self) -> SignatureScheme
The SignatureScheme
of this signer.