@zk-kit/lazytower
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

LazyTower

LazyTower implementation in TypeScript.

NPM license NPM version Downloads npm bundle size (scoped) Linter eslint Code style prettier


❗ WARNING

This library has not been audited.

🛠 Install

npm or yarn

Install the @zk-kit/lazytower package with npm:

npm i @zk-kit/lazytower --save

or yarn:

yarn add @zk-kit/lazytower

CDN

You can also load it using a script tag using unpkg:

<script src="https://unpkg.com/@zk-kit/lazytower/"></script>

or JSDelivr:

<script src="https://cdn.jsdelivr.net/npm/@zk-kit/lazytower/"></script>

📜 Usage

import { LazyTowerHashChainProofBuilder } from "@zk-kit/lazytower"
import { poseidon } from "circomlibjs" // v0.0.8

const H = 10
const W = 4
const pb = LazyTowerHashChainProofBuilder(H, W, poseidon)
for (let i = BigInt(0); i < 150; i += BigInt(1)) {
    pb.add(i)
}
const index = pb.indexOf(BigInt(42))
const proof = pb.build(index)
console.log(proof)

Contacts

Developers

Readme

Keywords

none

Package Sidebar

Install

npm i @zk-kit/lazytower

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

25.3 kB

Total Files

11

Last publish

Collaborators

  • sripwoud
  • njofce
  • akinovak
  • cedoor