SignedStepMessage

Trait SignedStepMessage 

Source
pub trait SignedStepMessage: StepMessage {
    const SIGN_SEED: &'static [u8];

    // Required methods
    fn signable(&self) -> Vec<u8> ;
    fn sign_info(&self) -> SignInfo;
    fn sign_info_mut(&mut self) -> &mut SignInfo;

    // Provided methods
    fn verify_signature(&self) -> Result<(), BlsSigError> { ... }
    fn sign(&mut self, sk: &BlsSecretKey, pk: &BlsPublicKey) { ... }
}

Required Associated Constants§

Source

const SIGN_SEED: &'static [u8]

Required Methods§

Source

fn signable(&self) -> Vec<u8>

Source

fn sign_info(&self) -> SignInfo

Source

fn sign_info_mut(&mut self) -> &mut SignInfo

Provided Methods§

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§