View Source MSSMT.Node (MSSMT v0.1.0)

Represents a node in the MS-SMT.

Each node contains:

  • key: The unique identifier for the leaf node.
  • value: The value associated with the key.
  • hash: The cryptographic hash of the node.
  • sum: The cumulative sum of values from the leaves up to this node.

Summary

Types

t()

The MSSMT.Node struct represents a node in the Merkle-Sum Sparse Merkle Tree.

Types

@type t() :: %MSSMT.Node{
  hash: binary(),
  key: binary(),
  sum: number(),
  value: number() | nil
}

The MSSMT.Node struct represents a node in the Merkle-Sum Sparse Merkle Tree.