qsag

Cut-the-Hash MPC · Pure-Quintic Hem / QSAGIVC2 · 19-Chain PQ Migration

Post-quantum threshold custody.
4.02 ms committee verification.

qsag lets validator and treasury custodians share post-quantum signing keys, rotate quorums without leaf reuse, migrate legacy Bitcoin/Ethereum/Solana/Zcash wallets into PQ custody, and compress thousands of signatures into one Johnson-radius WHIR proof—backed by 18,187 protocol theorems replayed across 6/6 paranoid Lean kernels and bit-exact MoltenVK / RADV Vulkan provers.

4.02 ms
Ethereum Beam verify (128 signers)
4×32 Jorts · 3.57 ms (16 Jorts + 2 Corduroy)
0.87 ms
3-of-4 BFT Shamir Jorts sign
4,172 B sig · 31 µs OtMesh Beaver MAC check
131,072
QSAGIVC2 max (shard, signer) leaves
350–762 KB across 2–256 shards · 1 WHIR open
6 / 6
Paranoid Lean kernels accepting
18,187 protocol + 1,487 MIR thms · 0 CT errors
01 · Cut-the-Hash MPC

Secret hashes in MPC, Merkle trees in the clear.

Evaluates only the four secret hash-oracle families under honest-majority CNF or SPDZ MPC (sequential depth 4 hashes for Jorts/Baggy/Corduroy, 16 for FIPS 205 SLH-DSA), opens boundary digests, and computes public trees natively—cutting threshold latency below 1 ms.

02 · Pure-Quintic Hem & Vulkan

128-bit QROM over Fp5 with VRAM fusion.

Proves public (QSAGHQM2), private (QSAGZKH2/QSAGZKS2), and high-arity (QSAGIVC2) committees over Goldilocks quintic extensions. Fused Vulkan coset_lde -> canopy eliminates PCIe round-trips on RADV (74.8× Merkle) and matches CPU bit-for-bit on Apple M2 Max MoltenVK.

03 · 19-Chain PQ Migration

Zero-knowledge ownership bridge.

Proves classical key ownership across Bitcoin/Taproot/Ethereum secp256k1, Solana Ed25519, BLS12-381, and Zcash NU7 (Sapling, Orchard, Ironwood, Transparent) into hardware-anchored BeltLatch + HemDynamicShamirQuorum PQ vaults.

Live Solana Devnet · Native sol_keccak256

1 atomic transaction settles post-quantum custody

The 51,944 B SBPFv3 zero-heap program (9heTwnYuQgmCTGm8oaEavYUBZRMtVqRvYPefrerJkThn) verifies Everyday80-1TX in 1 single transaction (84,957 CU) inside Solana's default 200k CU limit, and Standard128 Cat-5 dual-auth in 7 transactions.

Default Everyday80-1TX (868 B JortsKeccak256 · 2-of-3 RSS / 3-of-4)1 ATOMIC TX · 1,081–1,113 B ≤ 1,232 B MTU · 84,957 CU
1,081 B live Devnet tx (65 B sig + 137 B hdr/keys + 11 B ix hdr + 868 B JortsKeccak256 sig) — 0 staging PDAs · 0 staging rent · 5,000 lamports fee
High-Security Standard128 Dual-Auth Cat-5 (4,564 B Jorts + WOTS+C-Guard)5 Chunks (4×1,167 B + 931 B) + 1 Atomic Settle (164k CU)
Live Solana Devnet Deployment (Finalized · BPFLoaderUpgradeab1e)
Program: 9heTwnYuQgmCTGm8oaEavYUBZRMtVqRvYPefrerJkThn (51,944 B SBPFv3 · 0 B heap · 2,624 B max stack)
Vault PDA: Aedd8NTk19mZTtcdC1rH558fa8ym5h9VoP72rgi8MYj7 (360 B PQVAULT2 · 1,024 h=10 leaves)
1-TX Spend: 4FcmaTZqRKBZEYTKV5msBrb4xXZWLTPUTMCdjZmyxrhq1uVz6RM6Pjw2ccjWd8mVU7iy6sePGAewsnvxQyk5EcLj (84,957 CU · 1,081 B tx · 5,000 lamports · slot 528954372)
Click “Fetch Live Devnet Vault” to read live PQVAULT2 account bytes directly from Solana Devnet JSON-RPC (read-only; Mainnet-Beta hard-blocked).
1,509× fewer CUs and 198× fewer transactions than the prior Poseidon2 baseline. Everyday80-1TX runs live on Devnet at 84,957 CU in 1 atomic transaction (5,000 lamports fee, 0 staging rent), while Standard128 Cat-5 dual-auth settles in 7 transactions (163,992–164,158 CU settle, 35,000 lamports total, full staging rent refunded) across 1,024 reusable leaves. Live Devnet transcript, CU tables & build instructions
Measured Release Performance

Beam Chain, QSAGIVC2 & Vulkan GPU Explorer

Multi-Kernel Formal Verification

Protocol Proofs, Aeneas MIR & Machine-Code Constant-Time

Assurance Layer Scope Measured / Checked Artifact Explicit Boundary
Protocol Lean Library 367 modules · 18,187 theorems 6/6 paranoid kernels · 0 sorry · all 13 zk-Hem v2 WHIR certs discharged (0 Classical.choice) QROM reductions assume Merkle root consistency, collision bound & ideal hashes
Custody & WHIR MIR (Aeneas) 60 modules · 1,487 theorems 174/197 (88.3%) custody fns + 86 WHIR fns extracted · 6/6 kernels Outer Rust parsers & caller control flow remain outside MIR equivalences
Machine Code & SPIR-V 28 .rlib symbols (3,355 insns) DOIT/DIT secret-independent · 26/28 functional equiv · 7 ELF ≃ Math ≃ MIR triangles · universal poseidon2_perm12.spv AVX2/NEON transpose functional proofs open; audit_elf_ct.py certifies codegen-units=1
Planted-Fault GPU & CT Audit 10 SPIR-V shaders · qsag ELF 10/10 planted faults caught on RX 6750 XT · 0 CT errors · 2/2 dudect · 5 fuzzers (0 crashes) Module identity & sampled faults on tested RADV driver; Wave64/NVIDIA/Intel open
Zero Runtime Dependencies · Rust 1.99.1

Run in 3 Commands

1. Run Solana Ed25519 → 2-of-3 / 3-of-4 Everyday80-1TX & Standard128 PQ custody demo (requires OpenSSL 3+)
cargo run --release -p qsag-cli --no-default-features --example solana_pq_treasury
2. Benchmark Ethereum Beam Chain regional verification (4.02 ms / 3.57 ms on i9-12900)
cargo run --locked --release -p qsag-agg --example mock_ethereum_beam
3. Verify bit-exact portable Vulkan GPU == CPU HemQuintic128 proofs (set QSAG_ALLOW_USER_VULKAN_LOADER=1 on macOS)
QSAG_VK_DEVICE=0 cargo test -p qsag-agg --features vulkan --lib vulkan_wire_parity_hqm2 -- --ignored --nocapture
Honest Scope · Research Prototype

Threat Model & Open Engineering Work

Key Guarantees

  • No leaf reuse across quorum switches: BeltLatch + TPM 2.0 NV / disjoint-mount / VMGenID anti-rollback anchors burn leaves before share release.
  • Active dishonest-majority checks: OtMesh active Beaver sacrifice achieves < 2^-255 per staged blinding triple and poisons pools on mismatch.
  • Audit-enforced private GPU path: try_new_audited() rejects Wave64/spilling drivers, scrubs VRAM in command buffer, and issues keyed execution receipts.

Explicit Gaps & Limits

  • No external audit yet: Applications supply their own on-chain settlement and consensus rules.
  • Rust-authored AIRs: hem_quintic/rows.rs and recursive_ivc/leaf.rs are written in Rust and modeled in Lean (not yet emitted from Lean descriptors); QSAGIVC2 has QROM error checks without a Lean extractor.
  • Solana treasury capacity. Each fixed quorum root supports up to 1,024 one-time leaves (h = 10). Each settled leaf permanently advances the BeltLatch replay cursor.
  • Portable Vulkan scope: try_new_portability() is for public aggregation only; physical NVIDIA/Intel/Wave64 runs remain open.
Full Stack

The 7-Repo Constellation