Struct ed25519_zebra::batch::Item
source · pub struct Item { /* 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 Item
impl Item
sourcepub fn verify_single(self) -> Result<(), Error>
pub fn verify_single(self) -> Result<(), Error>
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
VerificationKey::verify
, which requires
borrowing the message data, the Item
type is unlinked from the lifetime of
the message.