Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Jolt

------------------------------------------------------------------------------------------------------------------
Jolt guest programs (tests/fixtures/jolt-guests)
Built from Jolt's examples at commit 44a878f0748ccb176064312794d95440f525a180, the commit of the third-party/jolt
Built from Jolt's examples at commit 708e6a0519e372065b0f504e31c85fb7fe5b5bba, the commit of the third-party/jolt
git submodule (https://github.com/a16z/jolt; the submodule is not part of this repository's tree). Jolt's
copyright and licence are as above. The ELF files also contain compiled code of the crates and C libraries the
examples link (Rust's standard library, Jolt's guest SDK, ZeroOS (Apache-2.0), and for some guests musl and
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ evaluation claim per committed multilinear bit polynomial: the trace, plus the p
these are committed. A pluggable polynomial commitment scheme (PCS) then opens those claims.

The implementation lives in `crates/binary-jolt`. Cargo imports Jolt’s tracer, runtime, RISC-V types and inline
registry at the execution-semantics pin `44a878f0`, and Jolt's field algebra at the fork base `92688c2d`, unmodified.
registry at the execution-semantics pin `708e6a05`, and Jolt's field algebra at the fork base `92688c2d`, unmodified.
The guest corpus is built from the execution pin using the `third-party/jolt` submodule. The one forked Jolt crate is
the transcript (`crates/jolt-transcript`), shared with Akita. [Local changes](MODIFICATIONS.md)

The `magnetar/jolt/2` proof checks the guest's exit instruction and final output. RAM Twist checks the address bound and requires stores to protected words to preserve their value. The I/O gap and heap padding are writable.

## Techniques

The protocol is specified in [`specs/binary-jolt`](specs/binary-jolt/README.md). In outline:
Expand Down Expand Up @@ -200,7 +202,9 @@ says how to update them or move the pin. The Fibonacci end-to-end tests use the
`BINARY_JOLT_EXTERNAL_GUESTS` to an absolute corpus directory to override it. Other external-guest tests opt in
through that same variable.

**Coverage.** 158 public programs were run under each of the three backends (binary WHIR, Akita and flock), as a
**Coverage.** At Jolt `708e6a05`, the WHIR corpus run covered all 35 rebuilt examples. It verified 32 proofs with the upstream tracer's outputs and exit kind. Both sides refused the two field-inline guests and the stack overflow.

For the initial release, 158 public programs were run under each of the three backends (binary WHIR, Akita and flock), as a
correctness check only, with identical results under all three. These runs were recorded for the initial release
(`4f90ff1`), with binary WHIR at rate 1/4 for every slot, its default. WHIR's opt-in per-role set (then the feature
`whir-per-role`; now `BINARY_JOLT_WHIR_RATES=per-role` at run time, `pcs::hash::PerRoleHash` in Rust) changes only the entries with a precommitted slot, so those were also run under it: the 19 entries in
Expand All @@ -217,7 +221,7 @@ the verdict; it no longer records a trace digest.
To reproduce Jolt's example rows, run the corpus driver on the committed corpus `tests/fixtures/jolt-guests` (see
Building and running). The test-guest rows were produced with guest programs and generators that are not part of this
release; `tests/fixtures/` ships a subset of them as prebuilt ELFs, which the crate's tests use.
- **Jolt's examples** (at the compatibility pin `44a878f0`): 32 of 35 proved, 3 refused. `field-limbs` and
- **Jolt's examples** (measured at `44a878f0`): 32 of 35 proved, 3 refused. `field-limbs` and
`field-ops` use field-inline instructions, which are not supported. `overflow-stack` overflows its stack, so it has
no valid trace.
- **Test guests** (123): 71 proved. The other 52 are deliberately invalid or unsupported programs
Expand All @@ -228,7 +232,7 @@ release; `tests/fixtures/` ships a subset of them as prebuilt ELFs, which the cr

| group | programs | proved | refused by design |
|---|---:|---:|---:|
| Jolt's examples (at the compatibility pin `44a878f0`) | 35 | 32 | 3 |
| Jolt's examples (measured at `44a878f0`) | 35 | 32 | 3 |
| one guest per registered Jolt inline (SHA-2, SHA-3/Keccak, BLAKE2/3, BigInt, secp256k1, P-256, grumpkin, NTT) | 40 | 35 | 5 |
| ELF-loader and decoder guests (section layouts, inline sites) | 15 | 8 | 7 |
| execution-environment guests (faults, traps, advice, I/O, atomics) | 41 | 7 | 34 |
Expand Down
2,116 changes: 1,058 additions & 1,058 deletions artifacts/protocol/cpu-jolt/grid.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion artifacts/protocol/cpu-jolt/spec-pin/PIN
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sha256 c34e43a8c813f705f8199899e4b0b0f63d6a548f39cf326a9dd7e942e03aa800 identity_kat.json
sha256 19093aa1695d008b2f8686ce93cf9063d6b25a541bd64b05ee6d3e69ac4e02df identity_kat.json
10 changes: 5 additions & 5 deletions artifacts/protocol/cpu-jolt/spec-pin/identity_kat.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"PD": "c3408f307198cd49147baac525600e95c4c057ceb6a8906320652fd3eb999e51",
"IM(L=24,w_pc=22)": "b003af3f6c67fceee018d5e264fc6385bcfafacf485d4b0aa41fb46a8332d688",
"PD": "a23b18d55c762611e4eb1ca2570aae4fcad21ec2ae59b6404985dcd3bdd31b84",
"IM(L=24,w_pc=22)": "9dca48e513852add40955ffd07fd076f221b5f3cde73d0c3f3c774aa97a029fc",
"M_digest(P=0)": "24937c8f287a9aa9aacb5b4db16dcaf7948abbea706766a66b5675077ace0c94",
"circuit_manifest(L=24,w_pc=22,P=0)": "053d2ecf655c454fc93a104a3f0e316ee48e96ee6b62a6f868d5719e5abcade0",
"circuit_manifest(L=24,w_pc=22,P=0)": "fc891991c5e4a8b8dc09db3281680b308fbf26f72416e17482dea36dbda853f6",
"M_digest(P=full(0x1fff))": "b9fd0973446005cfc6f4c5869fd8599395f79919e498edebc54a1762e6461519",
"circuit_manifest(L=24,w_pc=22,P=full(0x1fff))": "f170cff9b1093d4d20d768a388a250d4faace5101f34ca1f2a5d0994f225245b",
"parameter_set(kind 1, n=24, L=24, l=20, lp=0, l_g=6, r1=17 Round1, A=1, Akita, cm(P=full), PCS protocol/geometry/setup = 0x44/0x55/0x66 x32 placeholders)": "4e3b2f375dd7058baab0a6af95a7c6f712da0fbda9f1d8cdb02bdfc12dc48bcf",
"circuit_manifest(L=24,w_pc=22,P=full(0x1fff))": "e78d510ab39b061383389e4ca5a11520ec6e606c4637e63f091a621331ce117f",
"parameter_set(kind 1, n=24, L=24, l=20, lp=0, l_g=6, r1=17 Round1, A=1, Akita, cm(P=full), PCS protocol/geometry/setup = 0x44/0x55/0x66 x32 placeholders)": "36149557af9cafd359e3c1b4a9b4544e337dbd5c0487c84b6d5acd4e94bbc5e4",
"instruction_starts(one range [RAM_START, +12), J_G = 6, slots 0 2 3 5)": "823661a5e268c5babca7743129bb7e4913ff7177ee1b0cfa0781aee1a5340946",
"program_image(bytes 13000000 0100 13000000 0100 aabbccdd, text [RAM_START, +12), e_entry RAM_START)": "c939020841bdd342739d7fb2031e55bcf3ea96a9f48624e241c580cbcca5a28d",
"program_key(full: program_size 16, MemoryConfig (100, 4, 0, 8, 4096, 2^20), n_max 26, w_f 8, J_G 6, R_pool 0, n_P 0, P 0)": "f2cf3ace77223820f8982d57b68e1bec1f90e37ab4afae066ecda3edeb231dd8",
Expand Down
52 changes: 31 additions & 21 deletions crates/binary-jolt/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions crates/binary-jolt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ publish = false
description = "binary-jolt packed frontend (experimental, non-admitted; specs/binary-jolt)"
license = "MIT OR Apache-2.0"

# The repository's only Cargo workspace. Execution semantics come from Jolt Git crates at the execution pin 44a878f0;
# The repository's only Cargo workspace. Execution semantics come from Jolt Git crates at the execution pin 708e6a05;
# the field algebra comes from Jolt at the fork base 92688c2d, unmodified. The one local Jolt fork, jolt-transcript, is
# shared with Akita through the [patch] at the end of this file.
[workspace]

[dependencies]
# The guest tracer and its inline registry must match the Jolt execution-semantics pin.
jolt-tracer = { git = "https://github.com/a16z/jolt", rev = "44a878f0748ccb176064312794d95440f525a180", package = "tracer" }
jolt-common = { git = "https://github.com/a16z/jolt", rev = "44a878f0748ccb176064312794d95440f525a180", package = "common" }
jolt-inlines-fixtures = { git = "https://github.com/a16z/jolt", rev = "44a878f0748ccb176064312794d95440f525a180" }
jolt-tracer = { git = "https://github.com/a16z/jolt", rev = "708e6a0519e372065b0f504e31c85fb7fe5b5bba", package = "tracer" }
jolt-common = { git = "https://github.com/a16z/jolt", rev = "708e6a0519e372065b0f504e31c85fb7fe5b5bba", package = "common" }
jolt-inlines-fixtures = { git = "https://github.com/a16z/jolt", rev = "708e6a0519e372065b0f504e31c85fb7fe5b5bba" }
# `solinas` + `asm`: the fp128 prime field of the fpcheck zerocheck (BitZ round). Both features touch only
# the Fp128 code. The same package as Akita's `jolt-field` (the ../jolt-field re-export), so the field types are shared.
jolt-algebra = { git = "https://github.com/a16z/jolt", rev = "92688c2d4618a84e2012cc72c1c46fc2bb1b587b", default-features = false, features = ["binary", "parallel", "solinas", "asm"] }
jolt-transcript = { path = "../jolt-transcript", default-features = false, features = ["transcript-keccak", "binary", "prover-grinding"] }
jolt-riscv = { git = "https://github.com/a16z/jolt", rev = "44a878f0748ccb176064312794d95440f525a180" }
jolt-riscv = { git = "https://github.com/a16z/jolt", rev = "708e6a0519e372065b0f504e31c85fb7fe5b5bba" }
jolt-program = { git = "https://github.com/a16z/jolt", rev = "708e6a0519e372065b0f504e31c85fb7fe5b5bba", features = ["image"] }
tempfile = "3"
libc = "0.2"
rayon = "1.12"
Expand Down
Loading
Loading