Skip to main content

RandomnessSignatureHandler

Trait RandomnessSignatureHandler 

Source
pub trait RandomnessSignatureHandler:
    Send
    + Sync
    + 'static {
    // Required methods
    fn handle_randomness_signature(&self, data: Bytes);
    fn subscribe_randomness_signatures(&self) -> Receiver<Bytes>;
}
Expand description

Handler for randomness round signatures exchanged between validators and observer nodes via the consensus block stream.

Required Methods§

Source

fn handle_randomness_signature(&self, data: Bytes)

Called by the observer subscriber for each randomness round signature received from the block stream.

Source

fn subscribe_randomness_signatures(&self) -> Receiver<Bytes>

Returns a receiver for broadcast randomness signatures. Called by the observer service to merge signatures into the outgoing block stream.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§