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 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
- Eventually this repo aims to provide functionality similar to [AlgoPlonk](github.com/giuliop/AlgoPlonk/) by providing an SDK for building with plonk circuits on Algorand, but it currently serves as a proof of concept. The verifier is [tested](./__test__/verifier.test.ts) and works, but the off-chain code is a bit messy and not well documented (and only exists in the tests). Below is a TODO list of things I want to do in the future.
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
- - Use more TemplateVars where they make sense (i.e get rid of the hard-coded `Frw11`)
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