Skip to content

Commit 8dddc29

Browse files
stackdumpclaude
andcommitted
Add jsDelivr badge and CDN usage section to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db6896c commit 8dddc29

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# bitwrap
22

3+
[![jsDelivr](https://data.jsdelivr.com/v1/package/gh/stackdump/bitwrap-io/badge)](https://www.jsdelivr.com/package/gh/stackdump/bitwrap-io)
4+
35
**Petri nets as ZK containers.**
46

57
bitwrap is a tool for modeling state machines as Petri nets and compiling them into ZK proofs and Solidity smart contracts. One model produces the editor view, the circuit constraints, and the contract code.
@@ -101,6 +103,25 @@ GET /api/circuits List available ZK circuits
101103
POST /api/prove Submit witness for ZK proof generation
102104
```
103105

106+
## CDN
107+
108+
Client-side modules are available via jsDelivr:
109+
110+
```html
111+
<script type="module">
112+
import { mimcHash } from 'https://cdn.jsdelivr.net/gh/stackdump/bitwrap-io@main/internal/static/public/mimc.js';
113+
import { MerkleTree } from 'https://cdn.jsdelivr.net/gh/stackdump/bitwrap-io@main/internal/static/public/merkle.js';
114+
import { buildTransferWitness } from 'https://cdn.jsdelivr.net/gh/stackdump/bitwrap-io@main/internal/static/public/witness-builder.js';
115+
</script>
116+
```
117+
118+
| Module | Description |
119+
|--------|-------------|
120+
| `mimc.js` | MiMC-BN254 hash (pure BigInt, zero deps) |
121+
| `merkle.js` | Fixed-depth binary Merkle tree |
122+
| `witness-builder.js` | Witness builders for all 6 ZK circuits |
123+
| `petri-view.js` | `<petri-view>` web component for Petri net editing |
124+
104125
## Architecture
105126

106127
Single Go binary. Vanilla JS frontend. No npm, no React, no build step.

0 commit comments

Comments
 (0)