0.0.2 • Published 1 year ago

@punk.bid/merkle v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

This package provides a minimal and performance oriented implementation of a merkle tree for the punk.bid project.

Installation

npm install @punk.bid/merkle

Usage

import MerkleTree from "@punk.bid/merkle";

// MerkleTree takes an array of integers
// between 0 and 9999
const tree = new MerkleTree([1, 7, 9]);
const root = tree.root;
const proof = tree.proof(7);
0.0.2

1 year ago

0.0.1

1 year ago