Forge

v0.4.0

  • Pages
  • Modules

    Forge v0.4.0 Forge.Mpt View Source

    Encapsulate the Merkle Patricia Tree implementation to make it more robust for our use cases

    Link to this section Summary

    Types

    t()

    Functions

    get(trie, k)
    get_app_hash(trie)
    get_app_hash(trie, block)
    get_info(trie)
    get_last_block(trie)
    open(dbpath)
    put(trie, k, v)
    update_block(trie, height)

    Link to this section Types

    Link to this type t() View Source
    t() :: MerklePatriciaTree.Trie.t()

    Link to this section Functions

    Link to this function get(trie, k) View Source
    get(MerklePatriciaTree.Trie.t(), any()) :: any()
    Link to this function get_app_hash(trie) View Source
    get_app_hash(MerklePatriciaTree.Trie.t()) :: non_neg_integer()
    Link to this function get_app_hash(trie, block) View Source
    get_app_hash(MerklePatriciaTree.Trie.t(), non_neg_integer()) ::
      non_neg_integer()
    Link to this function get_info(trie) View Source
    get_info(MerklePatriciaTree.Trie.t()) :: map()
    Link to this function get_last_block(trie) View Source
    get_last_block(MerklePatriciaTree.Trie.t()) :: non_neg_integer()
    Link to this function open(dbpath) View Source
    open(String.t()) :: MerklePatriciaTree.Trie.t()
    Link to this function put(trie, k, v) View Source
    put(MerklePatriciaTree.Trie.t(), any(), any()) :: MerklePatriciaTree.Trie.t()
    Link to this function update_block(trie, height) View Source
    update_block(MerklePatriciaTree.Trie.t(), non_neg_integer()) :: :ok

    Built using ExDoc (v0.19.1), designed by Friedel Ziegelmayer.