Skip to content

abeauvois/merkletree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get started

import { MerkleTree } from '../src';

const mt = new MerkleTree(['L1', 'L2']);

// results:

//    expect(mt.root[1][0]).toEqual(SHA256('L1'));
//    expect(mt.root[1][1]).toEqual(SHA256('L2'));
//    expect(mt.root[0][0]).toEqual(SHA256(SHA256('L1').toString() + SHA256('L2').toString()));

How to Use

npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To do a one-off build, use npm run build or yarn build.

To run tests, use npm test or yarn test.

Continuous Integration

GitHub Actions

Two actions are added by default:

  • main which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
  • size which comments cost comparison of your library on every pull request using size-limit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published