Skip to main content

Module primitives

Module primitives 

Source
Expand description

Asynchronous verification of cryptographic primitives.

Modulesยง

cache ๐Ÿ”’
A bounded cache of shielded bundle verifications that have already succeeded.
ed25519
Async Ed25519 batch verifier service
groth16
Async Groth16 verifier service for Sprout JoinSplit proofs
halo2
Async Halo2 batch verifier service
redjubjub
Async RedJubjub batch verifier service
redpallas
Async RedPallas batch verifier service
sapling
Async Sapling batch verifier service

Constantsยง

MAX_BATCH_LATENCY ๐Ÿ”’
The maximum latency bound for any of the batch verifiers.
MAX_BATCH_SIZE ๐Ÿ”’
The maximum batch size for any of the batch verifiers.

Functionsยง

spawn_fifo
Fires off a task into the Rayon threadpool and awaits the result through a oneshot channel.
spawn_fifo_and_convert
Fires off a task into the Rayon threadpool, awaits the result through a oneshot channel, then converts the error to a BoxError.