@claviss/sdk 0.1.0
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/README.md +33 -0
- package/dist/chain/abi.d.ts +1149 -0
- package/dist/chain/abi.js +5 -0
- package/dist/chain/chains.d.ts +106 -0
- package/dist/chain/chains.js +24 -0
- package/dist/chain/index.d.ts +2 -0
- package/dist/chain/index.js +2 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +22 -0
- package/dist/pool/crypto.d.ts +17 -0
- package/dist/pool/crypto.js +79 -0
- package/dist/pool/index.d.ts +3 -0
- package/dist/pool/index.js +3 -0
- package/dist/pool/note.d.ts +22 -0
- package/dist/pool/note.js +66 -0
- package/dist/pool/prover.d.ts +35 -0
- package/dist/pool/prover.js +48 -0
- package/dist/shielded/index.d.ts +4 -0
- package/dist/shielded/index.js +4 -0
- package/dist/shielded/keypair.d.ts +23 -0
- package/dist/shielded/keypair.js +72 -0
- package/dist/shielded/note.d.ts +22 -0
- package/dist/shielded/note.js +32 -0
- package/dist/shielded/prover.d.ts +56 -0
- package/dist/shielded/prover.js +100 -0
- package/dist/shielded/scan.d.ts +21 -0
- package/dist/shielded/scan.js +28 -0
- package/dist/stealth/index.d.ts +2 -0
- package/dist/stealth/index.js +2 -0
- package/dist/stealth/scanner.d.ts +20 -0
- package/dist/stealth/scanner.js +31 -0
- package/dist/stealth/stealth.d.ts +41 -0
- package/dist/stealth/stealth.js +122 -0
- package/dist/zk/calldata.d.ts +21 -0
- package/dist/zk/calldata.js +11 -0
- package/dist/zk/index.d.ts +3 -0
- package/dist/zk/index.js +3 -0
- package/dist/zk/merkle.d.ts +36 -0
- package/dist/zk/merkle.js +92 -0
- package/dist/zk/prover.d.ts +20 -0
- package/dist/zk/prover.js +27 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @claviss/sdk
|
|
2
|
+
|
|
3
|
+
Privacy SDK for [Clavis](https://clavisrobinhood.com) — private payments on
|
|
4
|
+
Robinhood Chain (EVM). In-browser ZK proving via snarkjs.
|
|
5
|
+
|
|
6
|
+
- **Shielded payments** — hidden-amount join-split transfers (deposit,
|
|
7
|
+
private transfer, withdraw) against the `ShieldedPools` contract.
|
|
8
|
+
- **Compliant privacy pool** — fixed-denomination deposits with
|
|
9
|
+
association-set withdrawals (`PrivacyPools`).
|
|
10
|
+
- **Selective disclosure** — Semaphore-style group credentials
|
|
11
|
+
(`CredentialGroups`): prove membership without revealing identity.
|
|
12
|
+
- **Stealth addresses** — one-time receiving addresses derived from a
|
|
13
|
+
spend/view keypair.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @claviss/sdk
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { chain, shielded, pool, stealth, zk } from "@claviss/sdk";
|
|
21
|
+
|
|
22
|
+
// chains: chain.robinhoodTestnet (46630), chain.robinhoodMainnet (4663)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Proving artifacts (`*.wasm`, `*_final.zkey`) are not bundled — serve them from
|
|
26
|
+
your app (see [clavis-app](https://github.com/romeoscript/clavis-app/tree/main/public))
|
|
27
|
+
and pass their URLs to the provers.
|
|
28
|
+
|
|
29
|
+
> **Status:** early beta. The zk circuits are unaudited and the current
|
|
30
|
+
> trusted setup is a development ceremony — do not rely on this for
|
|
31
|
+
> significant value yet.
|
|
32
|
+
|
|
33
|
+
MIT — source: [github.com/romeoscript/clavis](https://github.com/romeoscript/clavis)
|