KesSigner

Trait KesSigner 

Source
pub trait KesSigner: Send + Sync {
    // Required method
    fn sign(
        &self,
        message: &[u8],
        current_kes_period: KesPeriod,
    ) -> StdResult<(Sum6KesSig, OpCert)>;
}
Expand description

Trait for KES (Key Evolving Signature) signing operation.

Required Methods§

Source

fn sign( &self, message: &[u8], current_kes_period: KesPeriod, ) -> StdResult<(Sum6KesSig, OpCert)>

Return signed bytes with the KES secret key and the associated Operational Certificate

current_kes_period: The KES period used to sign the message (absolute period computed from the chain at the moment of signature)

Implementors§