Skip to main content

Module halo2

Module halo2 

Source
Expand description

Async Halo2 batch verifier service

Structs§

Item
A Halo2 verification item, used as the request type of the service.
OrchardFallback
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§

Halo2Error
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§

QueueBatchVerify 🔒

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§

CachedVerifierService 🔒
A private cache around one public Halo2 verifier.
ItemVerifyingKey
The type of a prepared verifying key. This is the key used to verify individual items.
Sender 🔒
The type of the batch sender channel.
VerifierService
The concrete type of a global Halo2 verification service.
VerifyResult 🔒
The type of verification results.