Struct frost_core::batch::Item
source · pub struct Item<C: Ciphersuite> { /* private fields */ }
Expand description
A batch verification item.
This struct exists to allow batch processing to be decoupled from the lifetime of the message. This is useful when using the batch verification API in an async context.
Implementations§
source§impl<C> Item<C>where
C: Ciphersuite,
impl<C> Item<C>where C: Ciphersuite,
sourcepub fn verify_single(self) -> Result<(), Error<C>>
pub fn verify_single(self) -> Result<(), Error<C>>
Perform non-batched verification of this Item
.
This is useful (in combination with Item::clone
) for implementing
fallback logic when batch verification fails. In contrast to
VerifyingKey::verify
, which
requires borrowing the message data, the Item
type is unlinked
from the lifetime of the message.