🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@auxo-dev/zkapp-offchain-storage

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auxo-dev/zkapp-offchain-storage

<img src="https://lh3.googleusercontent.com/u/0/drive-viewer/AKGpihbOeavm7ejNaJLr70jxI0YLtj_KzKk7pzjyfbrBPxKRCmXIhEmhLftyPX_ZgOTdpE_B9uoPmiyP1NhBTIShqW8rtQhusA=w2388-h1376" alt="Auxo Logo"

latest
npmnpm
Version
1.0.6
Version published
Maintainers
4
Created
Source

Auxo Libs

Auxo Logo

An On-chain Funding Platform with privacy-preserving features powered by ZKP.

NPM Version Package License NPM Downloads Coverage Status

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

  • 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.

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

Keywords

mina-zkapp

FAQs

Package last updated on 12 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts