icjs-mpt
Version:
This is an implementation of the modified merkle patricia tree as speficed in the Ethereum's yellow paper.
17 lines (12 loc) • 436 B
JavaScript
const BaseTrie = require('./baseTrie')
const checkpointInterface = require('./checkpoint-interface')
const inherits = require('util').inherits
const proof = require('./proof.js')
module.exports = CheckpointTrie
inherits(CheckpointTrie, BaseTrie)
function CheckpointTrie () {
BaseTrie.apply(this, arguments)
checkpointInterface.call(this, this)
}
CheckpointTrie.prove = proof.prove
CheckpointTrie.verifyProof = proof.verifyProof