Skip to main content

CertifiableBlock

Trait CertifiableBlock 

Source
pub trait CertifiableBlock: Block {
    type Context: Clone;

    // Required method
    fn context(&self) -> Self::Context;
}
Expand description

CertifiableBlock extends Block with consensus context information.

This trait is required for blocks used with deferred verification in CertifiableAutomaton. It allows the verification context to be derived directly from the block when a validator needs to participate in certification but never verified the block locally (necessary for liveness).

Required Associated Types§

Source

type Context: Clone

The consensus context type stored in this block.

Required Methods§

Source

fn context(&self) -> Self::Context

Get the consensus context that was used when this block was proposed.

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§