A merkle trie implemention that if focused on being generic and fast
npm install merkle-trie
const Vertex = require('merkle-trie')
const Store = require('merkle-trie/store.js')
let 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
})
npm run tests