pub struct BasicVerificationAgent {
pub id: Uuid,
pub health: Arc<Mutex<AgentHealth>>,
}Expand description
Basic verification agent implementation
Fields§
§id: UuidAgent ID
health: Arc<Mutex<AgentHealth>>Agent health metrics
Implementations§
Source§impl BasicVerificationAgent
impl BasicVerificationAgent
Sourcepub async fn verify_task(&self, task: VerificationTask) -> VerificationResult
pub async fn verify_task(&self, task: VerificationTask) -> VerificationResult
Perform a verification task
Sourcepub async fn verify_batch(
&self,
tasks: Vec<VerificationTask>,
) -> Vec<VerificationResult>
pub async fn verify_batch( &self, tasks: Vec<VerificationTask>, ) -> Vec<VerificationResult>
Perform multiple verifications
Trait Implementations§
Source§impl Debug for BasicVerificationAgent
impl Debug for BasicVerificationAgent
Source§impl Default for BasicVerificationAgent
impl Default for BasicVerificationAgent
Source§impl VerificationAgent for BasicVerificationAgent
impl VerificationAgent for BasicVerificationAgent
Source§fn is_healthy(&self) -> bool
fn is_healthy(&self) -> bool
Check if agent is healthy
Source§fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
signature: &'life2 [u8],
public_key: &'life3 VerifyingKey,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
signature: &'life2 [u8],
public_key: &'life3 VerifyingKey,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Verify a signature
Auto Trait Implementations§
impl Freeze for BasicVerificationAgent
impl RefUnwindSafe for BasicVerificationAgent
impl Send for BasicVerificationAgent
impl Sync for BasicVerificationAgent
impl Unpin for BasicVerificationAgent
impl UnwindSafe for BasicVerificationAgent
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