Skip to main content

VERIFIER

Static VERIFIER 

Source
pub(crate) static VERIFIER: Lazy<Cached<Fallback<Batch<Verifier, Item>, ServiceFn<fn(Item) -> BoxFuture<'static, Result<(), Box<dyn Error + Send + Sync>>>>>>>
Expand description

Global batch verification context for Sapling shielded data.

The stack is wrapped in a Cached so that a bundle verified when its transaction was gossiped into the mempool does not have to be verified again when the block that mines it arrives. One cache covers all of Sapling: its spend and output verifying keys have never changed, so unlike Orchard there are no circuit eras to keep apart.