1.0.6 • Published 9 months ago

@auxo-dev/zkapp-offchain-storage v1.0.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

Auxo Libs

Description

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.

Features

  1. OneLevelStorage: Abstract class for a simple storage with predefined size of record.

  2. TwoLevelStorage: Abstract class for a nested storage (two level of MT) with predefined size of record.

  3. KeyValueStorage: Abstract class for a key value storage with 254-bit of key's length.

How to build

npm run build

How to run tests

npm run test
npm run testw # watch mode

How to run coverage

npm run coverage

License

Apache-2.0

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago