Expand description
Async Halo2 batch verifier service
Structs§
- Item
- A Halo2 verification item, used as the request type of the service.
- Orchard
Fallback - The single-item fallback service for one Orchard circuit era.
- VERIFYING_
KEY_ NU6_ 2 - The Orchard Action verifying key for the NU6.2-until-NU6.3 (fixed) circuit.
- VERIFYING_
KEY_ NU6_ 3_ ONWARD - The Orchard Action verifying key for the NU6.3-onward circuit.
- VERIFYING_
KEY_ PRE_ NU6_ 2 - The Orchard Action verifying key for the pre-NU6.2 (insecure) circuit.
- Verifier
- Halo2 proof verifier implementation
Enums§
- Halo2
Error - An error that may occur when verifying Halo2 proofs of Zcash Orchard Action descriptions.
Constants§
- HALO2_
MAX_ 🔒BATCH_ SIZE - Adjusted batch size for halo2 batches.
Statics§
- CACHED_
VERIFIER_ 🔒NU6_ 2 - Cached verification at NU6.2 using the public verifier’s batch worker.
- CACHED_
VERIFIER_ 🔒NU6_ 3_ ONWARD - Cached verification from NU6.3 onward using the public verifier’s batch worker.
- CACHED_
VERIFIER_ 🔒PRE_ NU6_ 2 - Cached verification before NU6.2 using the public verifier’s batch worker.
- VERIFIER_
NU6_ 2 - Global batch verification context for NU6.2-until-NU6.3 Halo2 Action proofs.
- VERIFIER_
NU6_ 3_ ONWARD - Global batch verification context for NU6.3-onward Halo2 Action proofs.
- VERIFIER_
PRE_ NU6_ 2 - Global batch verification context for pre-NU6.2 Halo2 Action proofs.
Traits§
Functions§
- batch_
verifier 🔒 - Builds the batching-and-fallback stack for
vk. - cached_
orchard_ 🔒v5_ verifier_ for - Returns the cache for the same circuit selected by
orchard_v5_verifier_for. - cached_
orchard_ 🔒v6_ verifier - Returns the shared Orchard and Ironwood cache for v6 transactions.
- orchard_
v5_ verifier_ for - Returns the global Halo2 verifier for the Orchard-pool bundle of a v5 transaction in a
block at
network_upgrade. - orchard_
v5_ 🔒verifiers_ for - Routes both services together without initializing unused circuit eras.
- orchard_
v6_ verifier - Returns the global Halo2 verifier for v6 Orchard-pool and Ironwood-pool bundles.
Type Aliases§
- Cached
Verifier 🔒Service - A private cache around one public Halo2 verifier.
- Item
Verifying Key - The type of a prepared verifying key. This is the key used to verify individual items.
- Sender 🔒
- The type of the batch sender channel.
- Verifier
Service - The concrete type of a global Halo2 verification service.
- Verify
Result 🔒 - The type of verification results.