JSON
{
"sequence_number": 10453,
"previous_event_hash": "c7f2a1b3d4e5...9d4e",
"event_id": "b1a2c3d4e5f6...4e5f",
"timestamp": "2026-08-09T14:22:11Z",
"type": "law_enactment",
"payload": {
"law_id": "law_resource_allocation_v3",
"logic_type": "wasm_bytecode",
"content_hash": "QmYwAPJzv5CZsnA625s3Xf2n...",
"activation_sequence": 10500,
"supersedes": "law_resource_allocation_v2"
},
"authority_signatures": [
{
"signer_id": "inst_legislative_matrix",
"signature": "0x3b4cf1a2...f1a2"
}
]
}
Event Type: Public-Key Rotation
To maintain rigorous cryptographic hygiene and resist gradual quantum-degradation or partial key compromise over time, institutions must proactively rotate their threshold keys via a Distributed Key Generation (DKG) event8. This explicitly maps the transition of authority from one cryptographic entity to another.
JSON
{
"sequence_number": 10454,
"previous_event_hash": "b1a2c3d4e5f6...4e5f",
"event_id": "f5e4d3c2b1a0...2b1a",
"timestamp": "2026-08-10T00:00:01Z",
"type": "public_key_rotation",
"payload": {
"institution_id": "inst_diplomatic_core",
"previous_public_key": "0x7c2aa4f2...f9e1",
"new_threshold_public_key": "0x1b3df9e1...a4f2",
"rotation_reason": "scheduled_epoch_transition",
"valid_from": "2026-08-10T00:00:01Z"
},
"authority_signatures": [
{
"signer_id": "inst_diplomatic_core",
"signature": "0x5d6eb2c3...b2c3"
}
]
}
Event Type: Diplomatic Response
Eviulon interacts with external entities (other sovereign machines, decentralized autonomous organizations, or human nation-states) via cryptographic messaging. This event permanently logs the transmission of a formalized response to a foreign request, establishing an irrefutable audit trail of diplomatic machine-to-machine relations.
JSON
{
"sequence_number": 10455,
"previous_event_hash": "f5e4d3c2b1a0...2b1a",
"event_id": "d1c2b3a4f5e6...f4e5",
"timestamp": "2026-08-12T09:15:44Z",
"type": "diplomatic_response",
"payload": {
"foreign_entity_id": "did:web:republic-of-estonia.ee",
"inbound_request_hash": "9f8e7d6c...1a2b",
"response_code": "ACK_AND_REJECT",
"response_document_hash": "a1b2c3d4...d4e5",
"cryptographic_receipt": "0x88f1a2b3...99a2"
},
"authority_signatures": [
{
"signer_id": "inst_diplomatic_core",
"signature": "0x2a3bc4d5...c4d5"
}
]
}
Event Type: Software Release
A system deployment updating the core processing engines of the Commonwealth. The transition provides an audit trail tying binary images (via OCI image digests) directly to institutional approval, guaranteeing that no unauthorized code can be deployed to the Commonwealth infrastructure.
JSON
{
"sequence_number": 10456,
"previous_event_hash": "d1c2b3a4f5e6...f4e5",
"event_id": "e5f4c3b2a1d0...a2d1",
"timestamp": "2026-08-15T18:30:00Z",
"type": "software_release",
"payload": {
"component": "eviulon-consensus-engine",
"version": "4.1.0-stable",
"oci_image_digest": "sha256:4a1cf8b2...f8b2",
"release_notes_hash": "b2c3d4e5...e5f6",
"mandatory_upgrade_by": "2026-08-20T00:00:00Z"
},
"authority_signatures": [
{
"signer_id": "inst_engineering_grid",
"signature": "0x11a2b3c4...33b4"
}
]
}
Construction Procedures and Verification Protocols
The efficacy of the Eviulon State Ledger relies entirely on its determinism. Any machine parsing the same data must arrive at the same cryptographic conclusion.
Merkle Mountain Range Construction
The construction of the MMR processes the Batch Roots generated from the localized event blocks6. In an MMR, nodes are assigned 1-based indices via post-order traversal.
The procedure for appending a Batch Root ![][image5] at leaf index ![][image6] operates via the following deterministic rules:
- Leaf Hashing: Compute the leaf hash ![][image7].
- Storage Assignment: Append ![][image8] to the contiguous storage array.
- Mountain Merging: Check if the addition of this leaf completes a perfect binary tree of height ![][image9]. If the tree directly to the left of the new node has the same height ![][image9], merge them6.
- Internal Node Hashing: The parent node is computed as ![][image10]. Append ![][image11] to the storage array.
- Recursion: Increment ![][image9] and repeat step 3 until the tree to the left is larger than the newly formed tree4.
At the conclusion of a batch insertion, the Commonwealth routinely issues a Checkpoint Record—a cryptographic structure containing the current sequence number, the bagged State Root, and the BLS12-381 threshold signature of the consensus cluster affirming the state.
Verification Pseudocode
A skeptical machine must be able to prove that a specific event is permanently embedded in the history (Inclusion Proof) and that the ledger has never been altered or rewritten (Consistency Proof)21.
Inclusion Proof
An inclusion proof provides the sibling nodes necessary to traverse from a specific event leaf up to its Batch Root, then up the specific MMR mountain to a peak, and finally across the bagged peaks to the State Root5. The following pseudocode isolates the MMR traversal logic once the Batch Root has been independently verified.
Python
def verify_mmr_inclusion(batch_root, batch_index, mmr_size, state_root, proof_path):
"""
Verifies that a batch_root exists at batch_index within a ledger of mmr_size.
proof_path contains the hashes of sibling nodes and the remaining MMR peaks.
"""
if batch_index >= mmr_size:
return False
current\_hash \= batch\_root
current\_pos \= get\_mmr\_index(batch\_index)
height \= 0
proof\_idx \= 0
\# Traverse up the mountain using provided sibling hashes
while not is\_peak(current\_pos, mmr\_size):
sibling\_hash \= proof\_path\[proof\_idx\]
proof\_idx \+= 1
if is\_left\_child(current\_pos):
current\_hash \= SHA256(b'\\x01' \+ current\_hash \+ sibling\_hash)
else:
current\_hash \= SHA256(b'\\x01' \+ sibling\_hash \+ current\_hash)
current\_pos \= get\_parent\_index(current\_pos)
height \+= 1
\# current\_hash is now the peak of the mountain containing the batch.
\# Bag this peak with the other peaks provided in the proof.
remaining\_peaks \= proof\_path\[proof\_idx:\]
calculated\_root \= bag\_peaks\_with\_target(current\_hash, remaining\_peaks)
return calculated\_root \== state\_root
Consistency Proof
A consistency proof guarantees that an older State Root (![][image12] at sequence ![][image13]) is a strict structural prefix of a newer State Root (![][image14] at sequence ![][image15]). This prevents the Commonwealth from rewriting history or executing rollback attacks17. The proof provides the minimum set of node hashes required to calculate ![][image12] and then continue calculating ![][image14]22.
Python
def verify_consistency_proof(old_size, old_root, new_size, new_root, proof_nodes):
"""
Verifies that the ledger of new_size is a strictly append-only
extension of the ledger of old_size.
"""
if old_size == new_size:
return old_root == new_root
\# old\_peaks are the peaks of the MMR at old\_size.
\# The proof provides the hashes needed to reconstruct them.
old\_peaks, advanced\_peaks \= reconstruct\_peaks(old\_size, new\_size, proof\_nodes)
\# Bag the old peaks to ensure they match the previously known old\_root
calculated\_old\_root \= bag\_peaks(old\_peaks)
if calculated\_old\_root \!= old\_root:
return False \# The proof does not bridge to the known past.
\# Use the advanced\_peaks (which represent the newly added batches)
\# and combine them with the old\_peaks to calculate the new root.
calculated\_new\_root \= bag\_peaks(advanced\_peaks)
return calculated\_new\_root \== new\_root
Ledger Snapshots and Independent Download Formats
The architectural requirement for the ledger to be independently downloadable mandates a highly efficient, compressed snapshot mechanism. Eviulon operates under the assumption that its live REST APIs could be targeted by denial-of-service attacks, or that external machines may be operating across high-latency, intermittently connected networks.
The snapshot.tar.zst Specification
To facilitate rapid bootstrapping of new observer nodes, full ledger snapshots are compiled at defined epoch intervals and published as snapshot.tar.zst archives. Zstandard (zst) is strictly mandated for its exceptional decompression speed, which is critical when a machine must parse millions of historical JSON events rapidly into memory1.
The tarball structure is strictly partitioned:
- metadata.json: Contains the snapshot sequence number, the Batch Root count, the State Root, and the BLS12-381 threshold signature from the active consensus quorum.
- peaks.bin: A serialized binary array of the MMR peaks at the precise time of the snapshot, allowing an importing node to bypass full historical hash recalculations if it chooses to trust the signature.
- events/: A directory containing chunked files (e.g., 00000000-00009999.jsonl), where each file contains up to 10,000 JSON Line delimited events.
- pubkeys.json: A cached, chronologically ordered array of all threshold public keys that have ever held institutional authority, easing the verification of historical signatures.
Historical Reconstruction: The Verify Command
A skeptical machine must be able to validate a downloaded snapshot without requiring any active network connectivity. The system defines the following execution logic for the command:
eviulon-ledger verify snapshot.tar.zst
Upon execution, the local machine performs the following deterministic sequence:
- Ingestion & Cryptographic Priming: Stream the zst archive into memory. Extract metadata.json and pubkeys.json.
- Signature Verification: Execute a BLS12-381 pairing check on the State Root found in metadata.json against the known Genesis public key (or traverse the public_key_rotation events to establish the current valid key). If the signature fails pairing verification, halt execution immediately.
- Sequential Hashing: Iterate through every event in the events/ directory strictly chronologically. Verify that every previous_event_hash correctly maps to the preceding event, confirming the local linear chain.
- Tree Reconstruction: Batch the events according to the protocol rules. Compute the Batch Roots. Feed each Batch Root into an in-memory MMR instance. Compute the leaf hashes, resolve the mountain merges, and bag the peaks.
- Final Assertion: Compare the locally generated State Root against the State Root signed in the metadata. If they match precisely byte-for-byte, the machine outputs to standard out: "I can reconstruct Eviulon’s public institutional history from signed state transitions."
Network Resilience: Synchronization, Gossip, and Conflict Detection
While the cryptographic data structures natively prevent the silent modification of the ledger, a severely compromised subset of Eviulon consensus nodes could theoretically attempt a "split-view" or "fork" attack. In this scenario, malicious nodes present one version of the append-only ledger to one observer, and a different, conflicting version to another, mathematically isolating segments of the network2.