@zktable/coup-lite 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +39 -0
- package/package.json +9 -4
package/LICENSE
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @zktable/coup-lite
|
|
2
|
+
|
|
3
|
+
**Coup-lite** — hidden 2-card hands, public claims, and prove-hold-or-bluff
|
|
4
|
+
challenges. The zkTable `deck` module showcase: `card_membership` proves in zero
|
|
5
|
+
knowledge that a claimed card really is in a player's committed hand, without
|
|
6
|
+
revealing the hand.
|
|
7
|
+
|
|
8
|
+
Part of [zkTable](https://github.com/freedanjeremiah/zktable) — a TypeScript
|
|
9
|
+
SDK for building trustless, privacy-preserving board games on Stellar.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @zktable/coup-lite @zktable/core
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What's inside
|
|
18
|
+
|
|
19
|
+
- The `defineGame` definition for Coup-lite (the `deck` + `sealed` primitives),
|
|
20
|
+
its AI strategies, and a headless testnet runner.
|
|
21
|
+
- The referee contract natively supports 2–4 players; the shipped on-chain demo
|
|
22
|
+
runs 2-player.
|
|
23
|
+
|
|
24
|
+
> v1 note: the deal is a semi-honest committed deal, not full mental-poker.
|
|
25
|
+
> `card_membership` is real ZK; the shuffle itself is trusted in v1. See the
|
|
26
|
+
> repo's limitations section.
|
|
27
|
+
|
|
28
|
+
## Play it on live testnet
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
COUP_TESTNET=1 pnpm --filter @zktable/coup-lite play
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Deploys a fresh verifier + referee to Stellar testnet, plays a real game (real
|
|
35
|
+
proofs, real transactions), and prints a full move-by-move transcript.
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT — see [LICENSE](https://github.com/freedanjeremiah/zktable/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zktable/coup-lite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Coup-lite: hidden 2-card hands + public claims + prove-hold-or-bluff challenges, the zkTable `deck` module showcase (defineGame + real ZK-verified card_membership proofs)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/freedanjeremiah/zktable.git",
|
|
10
10
|
"directory": "games/coup-lite"
|
|
11
11
|
},
|
|
12
|
+
"homepage": "https://github.com/freedanjeremiah/zktable#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/freedanjeremiah/zktable/issues"
|
|
15
|
+
},
|
|
12
16
|
"publishConfig": {
|
|
13
17
|
"access": "public"
|
|
14
18
|
},
|
|
@@ -23,10 +27,11 @@
|
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
"files": [
|
|
26
|
-
"dist"
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md"
|
|
27
32
|
],
|
|
28
33
|
"dependencies": {
|
|
29
|
-
"@zktable/core": "0.1.
|
|
34
|
+
"@zktable/core": "0.1.1"
|
|
30
35
|
},
|
|
31
36
|
"devDependencies": {
|
|
32
37
|
"tsx": "^4.19.2"
|