Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By fractalyzev0.1.0Apache-2.0In 1 marketplace
Guides you through building zero-knowledge proof systems from reusable FRX blocks for rounds, stages and commitments. Requires Python 3.11 on Linux x86_64 or Apple Silicon macOS; GPU use needs CUDA 12.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
zero-knowledge, zk-snark, proof-systems, frx, jax, cryptography
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
SNARK = Σ IOP Round
FRX-native building blocks for proof systems. zorch sits between FRX —
Fractalyze's fork of JAX — and the proof systems
that consume it: FRX provides tracing and codegen, lowered through Fractalyze
XLA, its fork of stock XLA that adds native
field and elliptic-curve types. zorch provides the reusable pieces a proof
system is assembled from.
The banner is a mnemonic for where the work is, not a definition: repeated IOP rounds are the core interactive computation, and a non-interactive argument adds its relation, a Fiat–Shamir transform, and commitment machinery around them. Folding and other families reuse the same pieces without fitting the equation literally. So zorch's two units are the round — one step of a repeated recurrence — and the stage — one claim reduction with paired prover and verifier roles.
Python 3.11 on Linux x86_64, or macOS on Apple Silicon. (frxlib ships a
cp311 wheel for those two platforms only — not 3.12/3.13, not Intel Macs.)
Install as pyzorch, import as zorch — the zorch name on PyPI belongs to an
unrelated project.
pip install pyzorch
pip install pyzorch 'frx[cuda12]' \
--extra-index-url https://fractalyze.github.io/pypi/simple/
The extra index carries the CUDA plugin wheels, which are too large for PyPI's per-file limit. It is not needed for the CPU tier.
python -c "import frx, zorch; print(frx.devices()); print(zorch.__version__)"
[CpuDevice(id=0)] means the CPU tier; a CUDA install prints the GPU devices.
Round, Fiat-Shamir, Polynomial, PCS,
fold, and zero-check compose into FRI, sumcheck, GKR, STARK, Basefold, WHIR,
…; pairing-based schemes plug in by swapping the PCS block (e.g. a
KZG-style commitment).zorch targets the proving scheme, not any one
downstream implementation — a zkVM, a zkML prover, a zkTLS prover. Each plugs
in as a consumer; nothing implementation-specific leaks into a block.Round — and each commit/open, each
absorb/squeeze, each fold step, and a hash permutation's internal rounds —
must lower to one replayable device unit. We get there by construction,
not by a per-primitive pattern-matcher in the compiler. The
fusion north star is where that unit is
defined and measured.The two units differ in kind, not size. A round is directional and repeated: one step of a homogeneous recurrence, driven in a loop. A stage is paired and whole: a claim reduction with a prover role and a verifier role that can be deployed separately. A whole sumcheck stage may be cheaper than one GKR round — repetition versus pairing decides, never scale.
ProverRound: (carry, transcript) -> (carry, transcript, message)
VerifierRound: (carry, transcript, message) -> (carry, transcript, ok)
ProverStage.prove(claim, witness, transcript) -> ProveResult
VerifierStage.verify(claim, reduction_proof, ...) -> VerifyResult
The claim is the public assertion entering the stage; the witness is the prover's private evidence. Both roles derive the same reduced claim, and the reduction proof does not establish it — it establishes the source claim conditional on it:
reduced claim is true => source claim is true
That conditional is what lets stages chain: each one's reduced claim is the
next one's source claim, so a proof system is a sequence of reductions ending at
TrivialClaim, which holds by construction and leaves nothing left to prove. An
argument of knowledge is exactly a reduction to the trivial claim, and a PCS
opening is the usual terminal one.
Dense sumcheck is the smallest complete stage, entire:
@dataclass(frozen=True)
class SumClaim: # public: this polynomial sums to `value` over the cube
value: Array
rounds: int
@dataclass(frozen=True)
class EvaluationClaim: # reduced: ...provided it evaluates to `value` at `point`
point: Array
value: Array
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub fractalyze/zorch --plugin zorchPlugins from other owners that cover similar ground