Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MerklePatriciaTreeOptions<K, V>

Configuration for a merkle tree.

Type parameters

  • K

  • V

Hierarchy

  • MerklePatriciaTreeOptions

Index

Properties

Optional keyConverter

keyConverter: undefined | function

A function which converts keys to the native type of the tree.

Optional memoizeSerialization

memoizeSerialization: undefined | false | true

Whether or not to memoize serializations or not. If true, serializations will be memoized, which will increase the speed of proof generation at the cost of increased memory overhead.

putCanDelete

putCanDelete: boolean

Whether a put with an empty value can delete a node. Note that turning this on will require serialization at insert time.

Optional valueConverter

valueConverter: undefined | function

A function which converts values to the native type of the tree

Generated using TypeDoc