zebra_consensus::redjubjub

Type Alias Item

Source
pub type Item = Item;
Expand description

The type of the batch item. This is a RedJubjubItem.

Aliased Type§

struct Item(/* private fields */);

Implementations

§

impl Item

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.

Trait Implementations

§

impl Clone for Item

§

fn clone(&self) -> Item

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Item

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'msg, M> From<(VerificationKeyBytes<Binding>, Signature<Binding>, &'msg M)> for Item
where M: AsRef<[u8]>,

§

fn from(_: (VerificationKeyBytes<Binding>, Signature<Binding>, &'msg M)) -> Item

Converts to this type from the input type.
§

impl<'msg, M> From<(VerificationKeyBytes<SpendAuth>, Signature<SpendAuth>, &'msg M)> for Item
where M: AsRef<[u8]>,

§

fn from( _: (VerificationKeyBytes<SpendAuth>, Signature<SpendAuth>, &'msg M), ) -> Item

Converts to this type from the input type.