panzk

CakeML Pancake Semantic zkVM · Sub-500 KB ZK Passkeys · PQ zkTLS 1.3

Compile semantics, not CPUs.
Sub-500 KB passkeys & PQ zkTLS.

panzk eliminates the fetch/decode/register-file tax of traditional zkVMs by compiling CakeML's low-level Pancake language directly into Lean-verified dsig-v2 descriptors over one shared committed bit table. It ships sub-500 KB zero-knowledge WebAuthn ES256 passkeys (panzk-passkey), verified angelic @witness certificates (u256, @farkas_cert, @merkle_verify), and a 1,757-LOC post-quantum zkTLS 1.3 oracle price prover (panzk-zktls).

444 / 492 KB
faest-128s / qrom-s passkey
Both < 500 KB · 400-bit Merkle + 128b QROM
7.29 s
First passkey prove (32t EPYC)
Down from 62.16 s · 7.4–7.9 s warm
3,043
Lean 4 theorems & lemmas
168 PanZk modules · 509 jobs · 0 sorry
717 ms
PQ zkTLS 1.3 warm prove
129 ms verify · 128b QROM ZkSpine · 0 hits
01 · Semantic zkVM + HOL4 CompilerBridge

One bit table, algebra-matched coprocessors.

Standard zkVMs lower source programs to RISC-V traces and pay cycle-by-cycle overhead for every hash, signature, and byte parser. panzk lowers panLang/crepLang into RVSDG regions (γ conditionals, bounded θ loops, O(1) Twist RAM ports) and bridges HOL4 panSem.evaluate (CompilerBridge.lean) to SHA-256, BLAKE3, ChaCha20-Poly1305, P-256 ECDSA, and zero-copy parsers.

02 · Sub-500 KB Privacy-Preserving WebAuthn

Prove hardware-bound login in 444–492 KB.

panzk-passkey hides the P-256 credential public key, signature, blinding bytes, authenticator data, and client data JSON behind a 128-bit MAC-linked hybrid proof: wire-deduplicated VOLE-in-the-head (tau = 14 on qrom-s) paired with a unified linked P-256 sumcheck, 400-bit Merkle WHIR Round-0, and a Ring71/OuterLab tail (dsig-v2 @ 0e813d5).

03 · Verified Angelic @witness Certificates

u256, Farkas LP infeasibility & Merkle inclusion.

AngelicCert.lean + crates/panzk-zkvm/src/angelic_cert.rs ship Lean-verified, falsifier-tested U256AddGlue (14.4 KB), U256ModWitnessGlue (88.9 KB), overflow-guarded FarkasCertGlue (15.5 KB, y_i < 2^16), and branchless MerkleVerifyGlue (93.4 KB depth-4 @blake3) on 128-bit QROM qrom-s.

04 · Post-Quantum zkTLS 1.3 Oracle Receipts

Authenticate HTTPS JSON quotes without leaking tokens.

crates/panzk-zktls (1,757 LOC) composes RFC 8439 ChaCha20-Poly1305, BLAKE3, and zero-copy Pancake HTTP/JSON parsing (unaligned barrel shifts, \r\n\r\n header-smuggling barrier, RFC 8446 0x17) on 128-bit QROM ZkSpine (717 ms warm prove, 129 ms verify) and panzk-voleith while hiding Authorization/Cookie/X-Api-Key headers.

Real WebAuthn · PRF Snapshot Vault · WebAssembly

Live 1-Tap Passkey Delegation, Encrypted KV/Steering Vault & DRGDEL01 Bundle

panzk_passkey.wasm (wasm32-unknown-unknown, +simd128) runs in a Web Worker. One navigator.credentials.get tap signs SHA-256("DRGCHN/PASSKEY-DELEGATE/v1" || pk_chan || epoch), derives AES-256-GCM & blinded KV-index keys from WebAuthn prf, seals a versioned DRGSNAP1 session snapshot (monotonic DRGCHN01 checkpoint + private residual-steering vector + conversation-prefix HMAC index), and exports a verifiable DRGDEL01 DelegationBundle for dreggference-node / keygate.

Prove—
Verify (in browser)—
Proof size—
clientDataJSON—
Verdict—
Channel voucher (DRGCHN01)—
PRF snapshot vault (DRGSNAP1)—
Delegation bundle (DRGDEL01)—

Private Residual-Steering & Blinded KV-Prefix Config (Sealed in DRGSNAP1)

Checkpoint recovery: —
Recovered steering: —
KV prefix HMAC index: —

Verifiable DelegationBundle Export (dreggference-node / keygate)

Self-contained DRGDEL01 bundle carrying (pk_chan, epoch), the zero-knowledge passkey proof over delegation_challenge(pk_chan, epoch), and the latest 127 B DRGCHN/STATE/v1 voucher — zero credentialId or prf bytes.

Run step 3 to generate and verify a DRGDEL01 DelegationBundle.

—

Credential commitment: —

Loading panzk_passkey.wasm…


      
    
Live Read-Only Solana Devnet State Inspector

Inspect dreggference (DRGCHN01 / DRGMODL2) on Public Devnet

Read-only JSON-RPC decoder for live dreggference-program (Dn9oFTTPeNFbHBmgBUZPr97NPVv3XkcfAFrKPUN9u3En; sibling qsag PQ treasury: 9heTwnYuQgmCTGm8oaEavYUBZRMtVqRvYPefrerJkThn). Mainnet-Beta endpoints and genesis hash are hard-blocked.

Confirmed Slot—
Configs / Models—
Operator Bonds—
Active Channels—

Ready to query read-only Solana Devnet accounts owned by Dn9oFTTPeNFbHBmgBUZPr97NPVv3XkcfAFrKPUN9u3En.

Click “Sync Live Solana Devnet State” to decode live DRGCONF4, DRGMODL2, DRGOPBD4, DRGREG02, DRGCHN01, and DRGCSL01 accounts.
Interactive Proof-Byte Anatomy

WebAuthn Passkey Compression Explorer (Original → 403de4d → 0e813d5)

Compare exact canonical wire proof bytes (ZkPasskeyProof::to_bytes) on the 132-byte valid vector (AMD EPYC-Milan, 32 threads, seed 0).

Serialized Proof Composition
How both profiles broke 500 KB (443.5–445.6 KB faest-128s · 491.9–492.4 KB qrom-s): Unified linked P-256 sumcheck + ec_collapse/fk_collapse shrank column & inverse evaluations from 397,320 B to 10,523 B (37.8×); 61/305-bit packing + hybrid 400-bit-Merkle WHIR Round-0 + Ring71/OuterLab tail cut P-256 total from 788,668 B to 292,636–294,198 B; and wire deduplication + tau = 14 cut qrom-s VOLE from 323,409 B to 199,235 B. Trade-offs: peak RSS is 2.52–3.30 GiB and qrom-s verify is 1.72–1.98 s.
Verified Compilation Chain

From CakeML Pancake to Shared-Spine & Hybrid Proofs

Click any compilation stage to inspect its Lean module, proved guarantee, and explicit open verification boundary.

Measured on Linux AMD EPYC-Milan (32 Threads)

Passkey, zkTLS 1.3 & Angelic Certificate Performance

Workload / Profile VOLE / Engine First Prove Warm Prove Verify Total Proof Peak RSS
Passkey Original · faest-128s 158,835 B 62.16 s 9.30 s 265–268 ms 1,113.2–1,113.5 KB 925.8 MiB
Passkey Original · qrom-s 323,409 B 66.50 s 9.99 s 656–713 ms 1,278.3–1,280.8 KB 954.6 MiB
Passkey Staggered (403de4d) · faest-128s 158,835 B 11.50 s 8.80–11.22 s 255–348 ms 945.9–948.0 KB 1,712.0 MiB
Passkey Staggered (403de4d) · qrom-s 323,409 B 11.45 s 10.58–11.12 s 492–503 ms 1,110.6–1,110.9 KB 1,710.0 MiB
Passkey Current (0e813d5) · faest-128s 151,341 B 7.29 s 7.67–7.89 s 352–456 ms 443.5–445.6 KB 2,645.5 MiB
Passkey Current (0e813d5) · qrom-s 199,235 B 7.87 s 7.41–7.59 s 1,718–1,976 ms 491.9–492.4 KB 3,456.7 MiB
panzk-zktls Single-Record (176 B) ZkSpine (128b QROM) 855.9 ms 717.3 ms 129.3 ms 1,119.8 KB —
panzk-zktls Bidirectional (128 + 192 B) ZkSpine (128b QROM) 1,430.2 ms 1,086.1 ms 193.8 ms 1,203.6 KB —
Angelic Certs (u256_add / farkas / merkle_d4) voleith qrom-s 407–750 ms — 335–748 ms 14.4 / 15.5 / 93.4 KB —
Reproduce in 3 Commands

Build & Verify Locally

1. Build & run the sub-500 KB zero-knowledge WebAuthn ES256 passkey prover (both profiles)
RUSTFLAGS='-C target-cpu=native' cargo build --locked --release -p panzk-passkey --example zk_passkey && target/release/examples/zk_passkey valid faest_128s 1 && target/release/examples/zk_passkey valid qrom_s 1
2. Run passkey hiding, twin-signature replay & splice-tamper tests
cargo test --release -p panzk-passkey --test hiding
3. Run PQ zkTLS oracle receipt, angelic zkVM certificate & compiled Pancake tests
cargo test --release -p panzk-zktls && cargo test --release -p panzk-zkvm && cargo test --release -p panzk-prove --test examples
Honest Assurance Scope

Threat Model & Known Gaps

Verified & Enforced (0 sorry, 0 native_decide)

  • pan_sound_strong & CompilerBridge (hol_panSem_*): Connects any standard HOL model (M, R) satisfying PanEvaluateEquations M R to compiled entries, θ-loops, call inlining, O(1) Twist RAM, subword loads/stores, and angelic @witness + typed FFI.
  • zk_passkey_ring71_tail_rbr_sound: Kernel-checks p256LinkedRing71TailSchedule_ok (400-bit Merkle WHIR-R0 + Ring71 tail, ≤ 2^-128 QROM at 2^64 queries) composed with binary VOLE (qromS) and 3×128-bit MAC link.
  • passkey_channel_delegation_sound: Binds DRGCHN01 (channel, seq, cum_fee, mmr_root, receipt_leaf) state vouchers under pk_chan to the committed P-256 credential behind pk_commit over SHA-256("DRGCHN/PASSKEY-DELEGATE/v1" || pk_chan || epoch) while proving base64url/clientDataOk challenge uniqueness (cross-epoch assertion reuse needs a 66-byte SHA-256 collision), Solana tx header non-confusion, and that the exported view and the 768-bit witness interface never read credentialId or WebAuthn prf vault outputs (519/519 lake build jobs green).
  • AngelicCert & sha256_xorand_sound: End-to-end soundness for U256 arithmetic, overflow-guarded @farkas_cert, @merkle_verify, and 23,296-row GF(2) SHA-256.

Open & Explicitly Disclosed

  • Concrete min/bool article instantiation: CompilerBridge is non-vacuous via StdBase, but automatically extracting PanSemRep directly from the concrete linked min/bool/panSem OpenTheory article closure remains open (checked against HOL4 vectors today).
  • General .sexp System::wiring emission: panzk-zkvm's System::wiring and panzk-zktls's spine_wiring_for are authored and falsifier-tested in Rust rather than emitted with a Lean proof for arbitrary .sexp programs.
  • End-to-end Rust verifier soundness: Mechanized refinement from Rust's hiding verify_zk, Ring71/OuterLab tail, and VOLE ROM extraction to Sat remains open (aligned pin: dsig-v2 @ 0e813d5, 509/509 lake build green).
  • Passkey subset: ES256 only, 37-byte authenticator data, 1 ≤ prefix_len < cdj_len ≤ 512 (real macOS, iOS and Android assertions run 260–450 bytes), no extensions or cross-origin assertions.
Full Stack

The 7-Repo Constellation