Skip to main content

Signer

Trait Signer 

Source
pub trait Signer: Send + Sync {
    // Required methods
    fn dual_sign(
        &self,
        canonical_bytes: &[u8],
    ) -> Result<(String, String), SignerError>;
    fn key_id(&self) -> &str;
}
Expand description

Dual-signing facade. Implementations sign with BOTH ed25519 and ML-DSA.

Required Methods§

Source

fn dual_sign( &self, canonical_bytes: &[u8], ) -> Result<(String, String), SignerError>

Return (ed25519_sig_hex, mldsa_sig_hex) over canonical_bytes.

Source

fn key_id(&self) -> &str

Return the signing-key-pair identifier recorded on every output.

Implementors§