pub struct ConsensusEngine { /* private fields */ }Expand description
Consensus engine for multi-agent verification
Implementations§
Source§impl ConsensusEngine
impl ConsensusEngine
Sourcepub fn new(config: ConsensusConfig) -> Self
pub fn new(config: ConsensusConfig) -> Self
Create a new consensus engine
Sourcepub async fn verify_with_consensus(
&self,
agents: Vec<Arc<dyn VerificationAgent>>,
signature: Signature,
message: &[u8],
public_key: &VerifyingKey,
) -> Result<ConsensusResult>
pub async fn verify_with_consensus( &self, agents: Vec<Arc<dyn VerificationAgent>>, signature: Signature, message: &[u8], public_key: &VerifyingKey, ) -> Result<ConsensusResult>
Verify with consensus across multiple agents
Auto Trait Implementations§
impl Freeze for ConsensusEngine
impl RefUnwindSafe for ConsensusEngine
impl Send for ConsensusEngine
impl Sync for ConsensusEngine
impl Unpin for ConsensusEngine
impl UnwindSafe for ConsensusEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more