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§
Sourcefn handle_randomness_signature(&self, data: Bytes)
fn handle_randomness_signature(&self, data: Bytes)
Called by the observer subscriber for each randomness round signature received from the block stream.
Sourcefn subscribe_randomness_signatures(&self) -> Receiver<Bytes>
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".