Resources

Glossary

Short definitions of the protocol, state-model and engine terms used throughout the StateSync-GKR documentation, each linked to the page that explains it.

Terms are listed alphabetically. Code names in parentheses are the Rust items that implement the term.

A#

Acceptance refinement#

The theorem that a successful acceptance trace of the shipped Rust verifier inhabits the reduction-chain event of the GKR assembly result, given an explicit relation between the Rust trace values and the model. That relation is a stated premise that is not discharged against the compiled program, so the result is a conditional refinement, and its reverse direction is not claimed. See Formal verification.

Accumulator#

One of the running digests along a Merkle path: the leaf hash first, then the result of each compression up to the root. The witness carries all of them, and the circuit checks each transition independently. See Circuits and layers.

Additional Use Grant#

The license parameter that permits production use solely to verify proofs, including embedding or distributing the verification functionality for that purpose. Production use that generates proofs, embeds or redistributes the proving functionality in a product or service, or offers proof generation to third parties needs a commercial license. See Licensing.

Admission cap#

The bound on admitted jobs that have not started computing, shared by every connection of the reference server (Admission, --max-queue). A request beyond it receives an explicit refusal instead of waiting in an unbounded queue. See Serving components.

Affine fusion#

How the circuit builder writes one Poseidon2 round as one layer: a combine node accumulates into one output wire a sum of linear and cube taps plus a constant, so the round constants, the S-box and the matrix multiplication need no layers of their own. The benefit is structural, fewer and denser layers, and no measurement of an unfused compiler exists. See Circuits and layers.

Archive of Formal Proofs#

The archive of Isabelle entries whose Sumcheck_Protocol entry the GKR theories build on. Per-round sumcheck soundness is imported from that entry rather than re-proved, so re-running the proofs needs a copy of the archive that contains it. See Formal verification.

AssetId#

The key of a slot in the sparse Merkle tree, a wrapper around u64 (AssetId). While the depth is below 64 it must be less than 2^depth. See Sparse Merkle state.

B#

Batch#

A set of independent jobs that share one prepared circuit, each with its own witness, transcript and proof. A batch produces one proof per job, identical to the single-request proof; it is not proof aggregation. See Batching and parallelism.

Batch cap#

The largest number of jobs in one batch in the reference server's batch modes (--batch-max). A queue is flushed as a batch when it reaches the cap or when its maximum wait (--max-wait-us) expires, so the two settings trade fuller batches against time spent waiting. Continuous serving has neither setting. See Performance tuning.

Batch-fused serving#

A serving mode that keeps one queue per operation kind and flushes it as a batch at the batch cap or the maximum wait (--serving-mode batch-fused). Each job's witness, proof, encoding, hash and release run as one task on its worker, and replies leave in batch order. See Serving components.

Business Source License#

The source-available license StateSync-GKR is distributed under, version 1.1 (SPDX identifier BUSL-1.1). Before a version's Change Date it is not an Open Source license; on that date the Licensor grants rights to that version under the Change License, the Apache License 2.0. See Licensing.

C#

Challenge field#

The degree-four binomial extension of KoalaBear from which verifier challenges are drawn (ChallengeField). Its size, about 2^124 elements, keeps the per-round error of the interactive protocol small. See How GKR works.

Change Date#

For each version, three years from the date that version is first publicly distributed under the Business Source License. On a version's Change Date the Licensor grants rights to that version under the Apache License 2.0, and the Business Source License grant for that version ends. See Licensing.

Circuit identity#

The section of an encoded proof that names the circuit the proof is for: operation tag, depth, version axes, leaf bound, strategy and full circuit commitment (CircuitIdentity). Verifiers compare it with the identity computed from their own configuration. See Wire format.

Commercial license#

The license from Oraclizer Labs, Inc. that production use needs when it generates proofs, embeds or redistributes the proving functionality in a product or service, or offers proof generation to third parties. Verifying proofs in production falls under the Additional Use Grant instead. See Licensing.

Continuous serving#

A serving mode in which each worker starts the oldest admitted job as soon as it finishes the previous one, with no batches (ContinuousRunner, --serving-mode continuous). Replies leave in completion order and are matched by job identifier. It is the reference server's default mode. See Serving components.

Creusot#

The verifier for Rust code in which the code contracts are written. Its contracts, checked through Why3 with automated solvers, anchor selected code clauses to model clauses in four refinement scopes. The Creusot and Why3 translation is part of what the formal evidence trusts. See Formal verification.

Cube gate#

A Pow3 gate, which adds coeff * a^3 to its output wire and represents the Poseidon2 S-box. It is an operation of the circuit representation, not a processor instruction. See Circuits and layers.

D#

Data-parallel family#

A set of blocks of identical sub-circuits laid out at a power-of-two stride from an aligned base. The circuit builder tags each gate and constant with its family as a hint, and derived wiring evaluates such families in closed form. Layer strategy A compiles one data-parallel instance per tree level. See Circuits and layers.

Dense reference#

DenseLayerOracle, a test-only prover oracle that materializes six tables over all input pairs of a layer. It anchors the equivalence tests and the internal memory comparison; production proving uses the sparse oracle. See How GKR works.

Derived wiring#

The production verifier's wiring oracle (DerivedRegularWiring). It evaluates data-parallel gate families in closed form, keeps every other gate on an exact sparse path, and is always rebuilt locally from the compiled circuit and its hints. See Circuits and layers.

Domain tag#

A fixed byte string absorbed first into a sponge so that the inputs of its different uses start with different prefixes: statesync-gkr/v0.1 for proof transcripts and ssgkr/circuit-commitment/v1 for circuit commitments. See Configuration.

E#

Encoded verification#

Checking received proof bytes with verify_encoded_sync_op. The bytes are decoded strictly, the decoded circuit identity must equal that of the verifier's own preparation, with the circuit commitment computed locally rather than read from the bytes, and only then does the prepared verifier run against the original request. It returns bool, and only true counts as acceptance. See Encoding and transport.

F#

Facade#

The root package statesync-gkr, the single package application code depends on. It re-exports the eight member crates under crates/ as modules (statesync_gkr). See Project layout.

Fiat-Shamir#

The transform that replaces a verifier's random challenges with values derived from a hash of all earlier messages, which makes an interactive protocol non-interactive. Here the hash is a Poseidon2 duplex transcript. See How GKR works.

Frontend#

The part that expresses a computation as a layered circuit and its witness for the sumcheck and GKR core, binds its statement in the transcript and discharges the residual input claims. The SMT frontend proves sparse Merkle operations. The sumcheck and GKR core does not depend on the sparse-Merkle compiler, so a custom frontend can prove other layered arithmetic computations with the same core. See Custom frontends.

Full circuit commitment#

A Poseidon2 digest of a compiled circuit's configuration and of every gate and constant in it. Every proof transcript absorbs it, encoded proofs carry it, and verifiers take it from their own preparation. See Wire format.

G#

Gate kind#

One of the three weighted gates of the circuit representation (GateKind): Lin adds coeff * a, Mul adds coeff * a * b and Pow3 adds coeff * a^3. See How GKR works.

GKR#

The interactive proof protocol of Goldwasser, Kalai and Rothblum for layered arithmetic circuits. A claim about the outputs is reduced, one sumcheck per layer, to claims about the inputs. See How GKR works.

I#

Inner proof#

The GKR proof StateSync-GKR produces for one request (GkrProof), as opposed to an outer proof that wraps it. It is not zero-knowledge on its own, and its verifier also needs the request's private witness; the outer wrapper adds zero knowledge. See Proof lifecycle.

inner-proof-v1#

The frozen canonical byte encoding of an inner proof together with its circuit identity and statement. See Wire format.

Isabelle/HOL#

The proof assistant in which the StateSync-GKR compiler and GKR protocol are modeled and machine-checked: compiler correctness, a GKR assembly soundness bound, their composition, batching agreement and the transfer of the bound to the exact KoalaBear degree-four extension field. See Formal verification.

J#

Job identifier#

The identifier that the reference server's request and reply envelope carries together with a run identifier (wire::Job, wire::Reply). In continuous serving, replies leave in completion order and are matched to requests by job identifier; the receiving side checks both identifiers against the request it sent. See Serving components.

Jobs in flight#

Jobs that have started computing and not yet finished. Each running job owns its own prover state, so memory use grows with their number. In continuous serving --max-in-flight bounds them, by default at the worker count minus two and at least one. See Serving components.

K#

KoalaBear#

The prime field with p = 2^31 - 2^24 + 1 = 2130706433 that holds circuit values, digests and public inputs (BaseField). See How GKR works.

L#

Latency budget#

The time within which a reply must be accepted to count as on time, measured from the request's scheduled arrival to acceptance by the strict verifier on the receiving side. A reply accepted after the budget counts as late. The serving capacity figures use a budget of one second. See Benchmark methodology.

Layer strategy#

The rule that maps tree levels to GKR layers (LayerStrategy). Only strategy A, one data-parallel instance per tree level, compiles. See Configuration.

Layered circuit#

An arithmetic circuit divided into layers in which every wire depends only on wires of the next layer, the form GKR proves (LayeredCircuit). See How GKR works.

Leaf bound#

The maximum length of a leaf encoding in field elements, tag included (SmtParams::leaf_max_fields, 31 by default). It fixes the width of the leaf hash's pre-image. See Configuration.

Leaf encoding#

The field-element form of a leaf state: [0] for Empty, [2] for Tombstone, and for an occupied leaf the tag 1, its sync_state elements and its identity digest split into nine limbs of at most 30 bits (LeafState::encode). The leaf hash absorbs it through the leaf pre-image. See Sparse Merkle state.

Leaf pre-image#

The fixed-width layout of a leaf encoding that the leaf hash absorbs: the tag, the encoding length, the rest of the encoding verbatim, then zeros (leaf_fold). See Sparse Merkle state.

Leaf state#

One of the three states of a slot (LeafState): Empty, never occupied; Occupied, holding an asset state; Tombstone, holding a state that was deleted. Empty and tombstone leaves have different digests, so a never-used slot stays distinct from a deleted one, and both satisfy non-membership. See Sparse Merkle state.

M#

Merkle path#

The sibling digests that connect a leaf to the root, ordered from the leaf level upward (MerklePath). A path for a tree of depth d holds exactly d siblings. See Sparse Merkle state.

MLE#

Multilinear extension: the unique polynomial of degree at most one in each variable that agrees with a table of 2^s values on every s-bit input. GKR evaluates layer values and wiring predicates as MLEs at random points. See How GKR works.

N#

Native build#

A release build compiled with -Ctarget-cpu=native, so the binary uses the instruction set of the CPU it was built on. The default release build was about 1.7 times slower on the measured host. Proof bytes must not depend on CPU features. See Installation.

O#

Offered rate#

The number of requests per second scheduled in a serving measurement, each with a fixed arrival time. Latency counts from that scheduled arrival, so a slow service cannot lower the offered demand by delaying its replies. A queue that keeps growing at a constant offered rate means the setting does not sustain that rate. See Benchmark methodology.

Operation kind#

One of Membership, NonMembership and Update (SmtOpKind). Each kind has its own compiled circuit and the public operation tag 0, 1 or 2. See Sparse Merkle state.

P#

p99#

The 99th-percentile latency, the tail figure the serving measurements report: 99 percent of the measured requests were accepted within it. Serving latency runs from each request's scheduled arrival to strict encoded-proof acceptance on the receiving side, including queueing and transport. See Benchmark methodology.

Parallel path constraints#

The circuit layout in which every compression transition of a Merkle path is checked independently against intermediate values that the witness supplies, with the level transitions as identical sub-circuits side by side in the same layers. A deeper tree therefore adds width rather than layers. See Circuits and layers.

Plonky3#

The Rust library that supplies the field arithmetic, the Poseidon2 permutation and the challenger. Its crates are pinned to an exact version, and only the ssgkr-primitives adapter crate may name them. They are treated as black boxes under their standard cryptographic assumptions. See Project layout.

Poseidon2#

The hash permutation used for in-circuit hashing, the transcript and the circuit commitment: width 16 over KoalaBear with an x^3 S-box. See How GKR works.

Prepared material#

Reusable setup for one operation kind and configuration. In memory it is PreparedSync: the compiled circuit, derived wiring and full circuit commitment, built once. PreparedMaterialV1 is a canonical byte form of a circuit and its hints for one fixed profile (depth 24, strategy A, membership), from which the derived wiring is always rebuilt locally. See Proof lifecycle.

Program identity#

The identity of the zkVM program an outer proof is bound to, its image ID, recorded from two controlled clean builds. The published external proof applies only to that fixed identity and its public statement. A change to protected prover source gives a new program identity. See Trust boundaries.

Public inputs#

The statement a proof is about: old_root, new_root, op_kind_tag, asset_id and value_digest, in that fixed order (PublicInputs). See Proof lifecycle.

R#

Rayon#

The Rust thread-pool library behind the parallel batch API. prove_batch_parallel runs on the Rayon pool that is current when it is called: your own pool inside its install call, otherwise Rayon's global pool, whose size Rayon chooses. Create the pool yourself so that the worker count is your decision. See Batching and parallelism.

Receipt#

Evidence from an external verification network that it checked a submitted proof. A zkVerify testnet receipt is recorded for the fixed depth-24 membership example of the external wrap path; it is integration evidence, not a settlement or finality result. See Trust boundaries.

Reference server#

The server in src/bin/ssgkr-serving that composes the serving components into a proof service; it is the server behind the v1.2.0 serving measurements. Its serving modes share the same admission, rejection, framing, return budget and shutdown behavior and produce the same proof bytes. See Serving components.

Residual claim#

What remains after a verifier's reduction steps: a point and the value a polynomial must take there. Sumcheck leaves a Subclaim; GKR verification leaves an InputClaim with two points on the input vector, which the party that knows the inputs must check. See How GKR works.

Residual output#

An output wire whose value is the difference between two quantities that must be equal. A compiled SMT circuit accepts exactly when every residual output is zero. See Circuits and layers.

Return budget#

The bound on finished replies waiting to be written, counted in responses and encoded bytes (Budget, --return-jobs, --return-bytes). A permit stays charged until the reply frame and its log row are written, so a slow reader slows the producers instead of growing memory. See Serving components.

RISC Zero#

The zkVM, a zero-knowledge virtual machine, in which the published outer proof is made: one preserved inner proof wrapped in a native RISC Zero succinct proof for a fixed program identity. The zkVM is designed to hide a guest's inputs and witness data, so a party that checks the outer proof sees only its public journal. See Trust boundaries.

Root#

The digest a Merkle path folds up to: the leaf digest compressed with each sibling in turn, from the leaf level upward (MerklePath::compute_root). Your state store supplies the roots each request carries, and StateSync-GKR does not authenticate where a root came from, so authenticate each root through your own trusted source. See Trust boundaries.

Round polynomial#

The univariate polynomial a sumcheck prover sends in each round (RoundPoly). Each one here has degree at most 4 and is encoded as exactly five coefficients. See Wire format.

S#

S-box#

The x^3 map that every Poseidon2 round applies between adding the round constants and multiplying the state by a fixed matrix. The circuit computes it with cube gates. See Circuits and layers.

Serving capacity#

How many requests one server proves and returns within one second, when every request is offered on a fixed schedule, proved by the reference server, sent as a complete encoded proof over TCP and accepted against its original request on the receiving side. Each figure belongs to its own host, serving mode, offered rate, connection count and latency budget. See Serving capacity.

Serving mode#

How the reference server schedules jobs: continuous, batch-fused, queued-return or original (--serving-mode). Proof bytes do not depend on the mode. See Serving components.

Soundness bound#

The proved probability bound within which a false claimed output can survive the sumcheck and wiring reduction chain against an arbitrary prover (GKR assembly soundness). It is machine-checked in Isabelle/HOL and transferred to the exact KoalaBear degree-four extension field. See Formal verification.

Sparse layer reduction#

The production prover oracle (SparseLayerOracle). It answers each layer's sumcheck with Libra-style two-phase booking: tables over the first half of the variables, then tables over the second half, each with one entry per input wire. See How GKR works.

Sparse Merkle tree#

A Merkle tree over a fixed key space in which most slots are empty. StateSync-GKR proves membership, non-membership and single-leaf updates over one. See Sparse Merkle state.

Sponge#

The construction that hashes with the Poseidon2 permutation: it absorbs input in blocks of eight lanes (rate 8), one permutation per block, and squeezes its outputs. The leaf hash is a rate-8 sponge over the leaf pre-image, and the transcript and the full circuit commitment are duplex sponges with their own domain tags. See How GKR works.

Succinct wrapper#

An outer proof system that proves the wrap relation of an encoded inner proof and gives external verifiers a small, zero-knowledge proof that exposes only the wrap statement. The published one is a RISC Zero native succinct proof for one fixed depth-24 membership example, not a service for arbitrary requests. See Trust boundaries.

Sumcheck#

An interactive protocol that checks a claimed sum of a polynomial over all boolean inputs, one variable per round, and ends in one evaluation at a random point. GKR runs one sumcheck per layer. See How GKR works.

T#

Table wiring#

The general wiring oracle (TableWiring), which evaluates predicate MLEs by iterating a circuit's sparse gate list. The derived oracle is checked against it, and verify_sync_op_reference uses it. See Circuits and layers.

Tombstone#

The leaf state of a deleted slot (LeafState::Tombstone). It differs from Empty, the never-used state, and both satisfy non-membership. See Sparse Merkle state.

Transcript#

The Poseidon2 duplex sponge that prover and verifier feed with the same observations, in the same order, to derive Fiat-Shamir challenges (Transcript). See Proof lifecycle.

Tree depth#

The number of levels of a sparse Merkle tree, which is also the number of siblings in every path (SmtParams::depth). The default is 24, which gives 2^24 slots; a larger depth widens the circuit and increases witness, proving and verification work. See Configuration.

V#

Value digest#

The public input naming the leaf an operation asserts: the hash of the occupied leaf, of the asserted empty or tombstone leaf, or of the new leaf of an update. See Proof lifecycle.

W#

Wiring oracle#

The component that gives the verifier the wiring predicate MLEs at the sumcheck's random point in the end check of each layer (gkr::WiringOracle). The engine ships three: TableWiring, DerivedRegularWiring for the production verifier and RegularWiring for hand-built data-parallel circuits. See Circuits and layers.

Witness#

The private data of a request: the leaf and its sibling path (SmtWitness). The prover expands it into a value for every wire (CircuitWitness), and the verifier needs it to check the input claims. See Proof lifecycle.

Wrap relation#

The predicate an outer proof attests: the encoded inner proof decodes to this configuration's circuit identity, and the inner verifier accepts it for the request. wrap_relation returns the wrap statement exactly when the relation holds. See Proof lifecycle.

Wrap statement#

wrap-statement-v1, the six BN254 scalars an outer proof exposes: a header word, the circuit commitment, both roots, the key and the value digest. See Wire format.

Z#

Zero knowledge#

The property of a proof that hides the witness and exposes only its public statement. The inner GKR proof does not have it, because its sumcheck messages and layer evaluations are computed from the witness without masking. The outer wrapper layer adds it and exposes only the wrap statement, not the leaf or its path. See Trust boundaries.

zkVerify#

The external verification network on whose public Volta test network the published outer proof was accepted: its RISC0 verifier checked the proof and aggregated it into an authenticated receipt. That receipt is integration evidence, not a settlement or finality result. See Trust boundaries.