UNPKG

icjs-mpt

Version:

This is an implementation of the modified merkle patricia tree as speficed in the Ethereum's yellow paper.

17 lines (14 loc) 517 B
const CheckpointTrie = require('./index') const secureInterface = require('./secure-interface') const inherits = require('util').inherits module.exports = SecureTrie inherits(SecureTrie, CheckpointTrie) /** * You can create a secure Trie where the keys are automatically hashed using **SHA3** by using `require('icjs-mpt/secure')`. It has the same methods and constuctor as `Trie` * @class SecureTrie * @extends Trie */ function SecureTrie () { CheckpointTrie.apply(this, arguments) secureInterface(this) }