<p align="center">
    <h1 align="center">
         Lazy Incremental Merkle Tree (Solidity)
    </h1>
    <p align="center">Lazy Incremental Merkle tree implementation in Solidity.</p>
</p>

<p align="center">
    <a href="https://github.com/privacy-scaling-explorations/zk-kit.solidity">
        <img src="https://img.shields.io/badge/project-zk--kit-blue.svg?style=flat-square">
    </a>
    <a href="https://github.com/privacy-scaling-explorations/zk-kit.solidity/tree/main/packages/imt.sol/contracts/LICENSE">
        <img alt="NPM license" src="https://img.shields.io/npm/l/%40zk-kit%2Flazy-imt.sol?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@zk-kit/lazy-imt.sol">
        <img alt="NPM version" src="https://img.shields.io/npm/v/@zk-kit/lazy-imt.sol?style=flat-square" />
    </a>
    <a href="https://npmjs.org/package/@zk-kit/lazy-imt.sol">
        <img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-kit/lazy-imt.sol.svg?style=flat-square" />
    </a>
    <a href="https://prettier.io/">
        <img alt="Code style prettier" src="https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square&logo=prettier" />
    </a>
</p>

<div align="center">
    <h4>
        <a href="https://appliedzkp.org/discord">
            🗣️ Chat &amp; Support
        </a>
    </h4>
</div>

> [!WARNING]  
> These library has **not** been audited.

> [!WARNING]  
> If you are looking for the first version of this package, please visit this [link](https://github.com/privacy-scaling-explorations/zk-kit/tree/imt-v1/packages/incremental-merkle-tree.sol).

---

## 🛠 Install

### npm or yarn

Install the `@zk-kit/lazy-imt.sol` package with npm:

```bash
npm i @zk-kit/lazy-imt.sol --save
```

or yarn:

```bash
yarn add @zk-kit/lazy-imt.sol
```

## 📜 Usage

Please, see the [test contracts](./test) for guidance on utilizing the libraries.
