🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@zk-kit/lazytower

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zk-kit/lazytower

LazyTower implementation in TypeScript.

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
-71.43%
Maintainers
3
Weekly downloads
 
Created
Source

LazyTower

LazyTower implementation in TypeScript.

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

🗣️ Chat & Support   |   📘 Docs

❗ 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

FAQs

Package last updated on 05 Mar 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