pub trait BlockchainInterface: Send + Sync + Unpin + Sized + Clone {
type Clock: Debug + AtLeast32BitUnsigned + Copy + Send + Sync;
type GossipEngine: GossipEngineIface;
type MaxProposalLength: Get<u32> + Clone + Send + Sync + Debug + 'static + Unpin;
type BatchId: Clone + Send + Sync + Debug + 'static + Unpin;
type MaxProposalsInBatch: Get<u32> + Clone + Send + Sync + Debug + 'static + Unpin;
type MaxSignatureLength: Get<u32> + Clone + Send + Sync + Debug + 'static + Unpin;
// Required methods
fn verify_signature_against_authorities<'life0, 'async_trait>(
&'life0 self,
message: SignedDKGMessage<Public>
) -> Pin<Box<dyn Future<Output = Result<DKGMessage<Public>, DKGError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn sign_and_send_msg(
&self,
unsigned_msg: DKGMessage<Public>
) -> Result<(), DKGError>;
fn process_vote_result(
&self,
result: VoteResult<Self>
) -> Result<(), DKGError>;
fn gossip_public_key(&self, key: PublicKeyMessage) -> Result<(), DKGError>;
fn store_public_key(
&self,
key: LocalKeyType,
session_id: SessionId
) -> Result<(), DKGError>;
fn get_gossip_engine(&self) -> Option<&Self::GossipEngine>;
fn get_backend_db(&self) -> Option<&Arc<dyn DKGDbBackend>>;
fn now(&self) -> Self::Clock;
}