Reference
Licences
Batin's own code
packages/sdk (batin-sdk on npm) is Apache-2.0. That is the client other projects use against the one pool. Apache-2.0 is permissive, so an app can ship it without opening the rest of its source, and it includes a patent grant. It does not depend on snarkjs or the circuit sources.
The rest of this repository is not yet licensed: UNLICENSED (all rights reserved) and private. That choice is still open (Spec §17). Nothing on this site grants a licence to the app, the relayer, or the contracts.
GPL-3.0 components
Several tools at the heart of the zero-knowledge stack are GPL-3.0. Here is where they touch Batin:
| Component | Licence | Where it's used |
|---|---|---|
| snarkjs 0.7.4 | GPL-3.0 | Build tool, and the in-browser prover (see below) |
| circom 2.1.9 | GPL-3.0 | Build tool only |
| circomlib 2.0.5 | GPL-3.0 | Included in the circuits through one file, lib.circom, so packages/circuits is GPL-3.0 for now |
| Solidity verifier exported by snarkjs | GPL-3.0 | JoinSplitVerifier.sol, deployed unmodified. The deployed pool calls it. |
| circomlibjs 0.1.7 | GPL-3.0 | Tests only, as an independent cross-check |
The prover in this web app
The app makes proofs with snarkjs in your browser. To keep GPL code out of the app's own bundle, the unmodified snarkjs.min.js (0.7.4) is served as a separate file, /vendor/snarkjs-0.7.4.min.js, next to its licence at /vendor/snarkjs-COPYING.txt. A web worker loads it at run time. Whether that arrangement counts as an "aggregate" under the GPL is a legal question this site does not answer. It's flagged for the owner.
The circuit's wasm and proving key are generated from the GPL-3.0 circuit sources.
Consequences being weighed
- The circomlib dependency can be removed by writing MIT-based replacements for five templates. That means a new setup, verifier and pool.
- The verifier is GPL-3.0 whatever happens to circomlib, so contracts that embed it will likely need a GPL-compatible licence when published.
Permissive dependencies
| Component | Licence |
|---|---|
| poseidon-lite 0.3.0, poseidon-solidity 0.0.5 | MIT |
| @noble/hashes, @noble/ciphers 2.4.0 | MIT |
| @zk-kit/baby-jubjub 1.0.3 | MIT |
| viem 2.58 | MIT |
| Next.js 16, React 19 | MIT |
| marked | MIT |
| forge-std 1.17.0 | MIT / Apache-2.0 (tests) |
Fonts
Newsreader, IBM Plex Sans, IBM Plex Mono and IBM Plex Sans Arabic are used under the SIL Open Font License 1.1. The licence texts are served at /fonts/.
Source: apps/web/content/docs/licences.md