Return to Merkle treeInteractive demo
Open-source contributor2025Public detailed

Provable Forking For Katana And Bonsai Trie

Remote forking infrastructure that starts from canonical state, materializes proof-backed paths, and recomputes local roots without full cloning.

Reading frame

Proof-backed forks without full-state cloning

A fork should avoid full-state cloning without losing root continuity or proof provenance.

Katana imports canonical state lazily; Bonsai `PartialTrie` and multiproofs keep root computation verifiable as local paths materialize.

Boundary note
Most of the evidence lives in infrastructure code and internal state flow, which is harder to explain than a user-facing product feature.Readers unfamiliar with tries need help understanding why imported-state correctness is a first-class concern.
Evidence path
Imported canonical state / Selective trie materialization / Proof-backed root continuityPublic proof lives in the Katana and Bonsai repos; linked PRs are the fastest entry points.
What it proves
  • Public evidence of sequencer and state-depth work
  • Foundation for the sharding story because imported-state execution stays credible
System Model

How the data moves through the system

First read the data path. Then use the code hooks as pointers to the mechanisms that make the claim inspectable.

Data path
01
Imported state boundary

The fork starts from canonical remote state, not a full local clone.

02
Selective trie materialization

Only touched paths materialize locally; proofs and cached nodes preserve root continuity.

03
Proof-backed root continuity

Local roots recompute from partial imported structure without treating missing state as locally owned.

Code hooks
01
Imported state instead of full clone

Forking becomes selective import through canonical updates, RPC reads, and proof-aware tries.

02
Proof-backed path materialization

Missing nodes are inserted from proofs, not guessed or preloaded wholesale.

03
Root continuity under partial state

Local writes and later reads still produce roots explainable against imported proof data.

04
Cache-aware startup

Cached proof nodes keep repeated reads and root checks from restarting at zero.

05
Original-proof reuse

Unchanged keys keep original proof material while forked writes use cached nodes for later proof generation.

Execution Flow

How the system progresses

A short staged view of the system from start to final output.

#01
Stage 01Provable Forking For Katana And Bonsai Trie

Import canonical remote state

The fork starts from canonical updates, not an eager clone.

#02
Stage 02Provable Forking For Katana And Bonsai Trie

Materialize only the proof-backed paths you need

The runtime fetches and materializes only required trie paths.

#03
Stage 03Provable Forking For Katana And Bonsai Trie

Recompute verifiable local roots with cache continuity

Lazy fetch, snapshots, and caching reduce startup cost without breaking root continuity.

Code evidence

Public proof lives in the Katana and Bonsai repos; linked PRs are the fastest entry points.

Imported canonical stateSelective trie materializationProof-backed root continuityFork cache reuse
What to inspect in public code
  • Inspect Katana for canonical state updates, fork backend import, lazy RPC reads, and remote-state execution.
  • Inspect Bonsai Trie for `PartialTrie`, `insert_with_proof`, multiproofs, cached proof nodes, and root continuity.
Reading order

Finish the evidence first. The full-screen environment is the closing section.

Experiment Environment

Open the full-screen environment for this project

One project mechanism, isolated from the article.