This package has been deprecated

Author message:

use ipld-graph-builder instead

merkle-trie

0.0.0 • Public • Published

SYNOPSIS

NPM Package Build Status Coverage Status

js-standard-style

A merkle trie implemention that if focused on being generic and fast

INSTALL

npm install merkle-trie

USAGE

  const Vertex = require('merkle-trie')
  const Store = require('merkle-trie/store.js')
  const newVertex = new Vertex({store: store})
  const path = ['not', 'all', 'those', 'who', 'wanderer', 'are', 'lost']
  const value = 'all that is gold does not glitter'
 
  newVertex.set(path, new Vertex({value: value}))
  newVertex.get(path)
  .then(vertex => {
    // retrieves the vertex that was stored
    newVertex.del(path)
  })
  .flush(link => {
    // saves all the work done on the trie to the store
    // and return the merkle link to the root vertex
  })

TESTS

npm run tests

API

LICENSE

MPL-2.0

Readme

Keywords

Package Sidebar

Install

npm i merkle-trie

Weekly Downloads

1

Version

0.0.0

License

MPL-2.0

Last publish

Collaborators

  • null_radix