An On-chain Funding Platform with privacy-preserving features powered by ZKP.
This library provides offchain storage APIs for Mina's zkApp, wrap around the Merkle Tree data structure.
To implement these APIs, developers need to:
- Specify the storage's size - Merkle Trees' height (except for key-value storage)
- Define data structure for a record and how to commit them in a single Field value (254-bit).
- How to calculate an index value.
-
OneLevelStorage: Abstract class for a simple storage with predefined size of record.
-
TwoLevelStorage: Abstract class for a nested storage (two level of MT) with predefined size of record.
-
KeyValueStorage: Abstract class for a key value storage with 254-bit of key's length.
npm run build
npm run test
npm run testw # watch mode
npm run coverage