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).
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).
Self-contained DRGDEL01 bundle carrying (pk_chan, epoch), the zero-knowledge passkey proof over
delegation_challenge(pk_chan, epoch), and the latest 127 BDRGCHN/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
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 KBfaest-128s · 491.9–492.4 KBqrom-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.
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/519lake 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 .sexpSystem::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/509lake 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.