snarkjs-algorand 0.5.2 → 0.7.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 +2 -7
- package/dist/index.cjs +644 -1335
- package/dist/index.d.cts +20 -13
- package/dist/index.d.ts +20 -13
- package/dist/index.js +644 -1335
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -2,19 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This repo contains an Algorand TypeScript implementation of a BLS12-381 Plonk ZKP verifier. [The contract](./contracts/verifier.algo.ts) is based on the [snarkjs verifier implementation](https://github.com/iden3/snarkjs/blob/e0c7219bd69db07845560162af7e6876d15390e1/src/plonk_verify.js?plain=1#L29).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This repo not only contains the smart contract, but also a TypeScript SDK that uses [algokit-utils](https://github.com/algorandfoundation/algokit-utils). This SDK has not yet been documented, but you can see usage in the [tests](./__test__/verifier.test.ts).
|
|
6
6
|
|
|
7
7
|
## TODO
|
|
8
8
|
|
|
9
9
|
In no particular order:
|
|
10
10
|
|
|
11
|
-
- Switch from reading files (from snarkjs CLI) to using snarkjs pragmatically
|
|
12
11
|
- Add input validation to the contract
|
|
13
|
-
-
|
|
14
|
-
- Add more tests
|
|
15
|
-
- Create an SDK
|
|
16
|
-
- Refactor contract code to be more like a library
|
|
17
|
-
- PR contract generation to snarkjs?
|
|
12
|
+
- Documentation
|
|
18
13
|
|
|
19
14
|
## Why Not AlgoPlonk?
|
|
20
15
|
|