State

class jam.state.state.State(**kwargs)[source]

Bases: Sigma

State implementation that adds Merklization to Sigma

__init__(**kwargs)[source]

Initialize state with component kwargs

transform() → dict[source]

Transform the state into a dictionary as defined in D.2

generate_root() → ByteArray32[source]

Generate the root hash of the state

get_merkle_nodes() → dict[source]

Get all nodes in the state Merkle trie