@polkadot/trie-db-old
TypeScript icon, indicating that this package has built-in type declarations

0.29.5 • Public • Published

polkadotjs mpl-2 style npm travis maintainability coverage dependency devDependency

@polkadot/trie-db

An Implementation of the Ethereum Merkle Patricia Tree that uses Blake2 for hashing.

Adapted from Ethereum

The has been adapted from the original EthereumJs implementation with the following changes -

  • Introduce TypeScript into the mix
  • ES6-ify as applicable (Classes, self -> this, function() {} -> () => {})
  • Moves to a Promise-based interface (as applicable)
  • Support only Uint8Array key/values (Buffer/String in the original)
  • Use utilities from @polkadot/util
  • Supports blake2 hashing (sha3 in the original), aligning with the Polkadot tech stack)
  • Updated the build steps with sources moved to src/
  • Tests updated to use Jest
  • Upgrade interfaces to latest levelup
  • Removed the secure interface (not applicable for Substrate chains)

... well at least the above is the idea behind the fork ...

Package Sidebar

Install

npm i @polkadot/trie-db-old

Weekly Downloads

0

Version

0.29.5

License

MPL-2.0

Unpacked Size

143 kB

Total Files

76

Last publish

Collaborators

  • polkadotjs
  • jacogr