CredentialSign

Trait CredentialSign 

Source
pub trait CredentialSign<SP = NotSpecialized> {
    type Error;

    // Required method
    fn credential_sign<T: SigningContextProvider>(
        &self,
        text: impl AsRef<str>,
    ) -> Result<Vec<u8>, Self::Error>;
}
Expand description

Sign with some public/private keypair credential

Required Associated Types§

Source

type Error

the hashed context this credential signature takes place in

Required Methods§

Source

fn credential_sign<T: SigningContextProvider>( &self, text: impl AsRef<str>, ) -> Result<Vec<u8>, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§