Skip to main content

ThresholdSigner

Trait ThresholdSigner 

Source
pub trait ThresholdSigner {
    // Required method
    fn sign(
        &self,
        quorum_id: &str,
        scheme: SignatureScheme,
        data: &[u8],
    ) -> Result<Vec<u8>, String>;
}
Expand description

Signer hook — caller provides concrete threshold signing backend.

Required Methods§

Source

fn sign( &self, quorum_id: &str, scheme: SignatureScheme, data: &[u8], ) -> Result<Vec<u8>, String>

Sign data using the quorum’s threshold key.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§