Architecture Overview¶
PostFiat has four protocol planes:
- consensus ordering for account, issued-asset, W6 atomic-swap, governance, bridge, and shielded batches;
- prefunded object-certificate lanes for FastPay and FastSwap;
- versioned governance: Cobalt ratifies validator-registry and trust-graph changes in the final height-924 controlled-devnet observation, while Foundation governance retains unrelated scopes and Consensus v2 orders every mutation; see Current State for freshness;
- privacy execution for Orchard/Halo2 shielded value.
flowchart LR
Wallet[Wallet or SDK] --> RPC[RPC / controlled write path]
RPC --> Mempool[Mempool and batch builder]
Mempool --> Ordering[Fast certified ordering]
Ordering --> Execution[Deterministic execution]
Execution --> Storage[State, blocks, receipts]
Storage --> ReadRPC[Read RPC]
Proposal[Foundation-administered proposal source] --> Scope{Governance scope}
Scope -->|validator registry / trust graph| Cobalt[Cobalt ratification]
Scope -->|unrelated governance| Foundation[Foundation authorization]
Cobalt --> GovOrdering[Consensus v2 ordering]
Foundation --> GovOrdering
GovOrdering --> Registry[Validator registry and protocol state]
Registry --> Ordering
FastWallet[FastPay / FastSwap wallet] --> ObjectLane[Prefunded object certificate lanes]
ObjectLane --> Primary[FastLane deposits, exits, checkpoints]
Primary --> Ordering
PrivacyWallet[Orchard wallet] --> PrivacyBatch[Shielded batch]
PrivacyBatch --> Ordering
Execution --> OrchardPool[Orchard pool state]
Core Crates¶
| Crate | Role |
|---|---|
crates/types |
Protocol data structures and IDs. |
crates/crypto_provider |
Signing and verification. |
crates/execution |
State transition. |
crates/ordering_fast |
Certified ordering path. |
crates/consensus_cobalt |
Cobalt trust-graph and agreement rules used by the validator-trust ratification lane and its adversarial tooling. |
crates/fastpay-prototype |
FastPay safety and recovery models. |
crates/privacy_orchard |
PostFiat adapter over the upstream Rust/Zcash Orchard/Halo2 implementation. |
crates/storage |
Persistent state and snapshots. |
crates/node |
Node orchestration, CLI, RPC, wallet flows. |
crates/pfusdc_proofs |
Proof statements of the pfUSDC bridges, also run inside the SP1 guest programs (programs/). |
crates/nav_reserve_protocol |
Host-side construction of NAV reserve packets. |
Crate Dependency Graph¶
Arrows point from a crate to the local crate it depends on (normal
dependencies in each Cargo.toml on main, checked on 25 November 2026).
Test harnesses and models (cobalt_*, fastswap_model, arc-conformance),
contract packages (arc-sp1-contracts, pft-token-contracts) and
wallet_wasm (browser wallet core: depends on crypto_provider, rpc_sdk and
types) are not drawn.
flowchart TD
types[crates/types<br/>protocol data structures]
crypto[crates/crypto_provider<br/>signing and verification]
bridge[crates/bridge<br/>bridge packet types]
cobalt[crates/consensus_cobalt<br/>Cobalt governance]
execution[crates/execution<br/>state transition]
fastpay[crates/fastpay-prototype<br/>fast payment prototype]
mempool[crates/mempool_dag<br/>mempool DAG]
network[crates/network<br/>transport substrate]
ordering[crates/ordering_fast<br/>certified ordering]
privacy[crates/privacy<br/>privacy interfaces]
orchard[crates/privacy_orchard<br/>Orchard/Halo2 adapter]
proofs[crates/proofs<br/>proof abstractions]
rpc[crates/rpc_sdk<br/>client RPC SDK]
storage[crates/storage<br/>state and snapshots]
nav[crates/nav_reserve_protocol<br/>NAV reserve packets]
pfusdc[crates/pfusdc_proofs<br/>bridge proof statements]
lane[crates/pft_lane_proofs<br/>lane export statements]
uniswap[crates/pftl_uniswap_proofs<br/>Uniswap mint statements]
node[crates/node<br/>node orchestration and CLI]
bench[crates/bench_harness<br/>benchmark harness]
fuzz[crates/fuzz_harness<br/>fuzz and adversarial harness]
eth[crates/ethereum-contracts<br/>EVM bridge contracts]
bridge --> crypto
bridge --> types
cobalt --> crypto
cobalt --> types
execution --> bridge
execution --> crypto
execution --> nav
execution --> types
fastpay --> crypto
fastpay --> types
fastpay --> execution
mempool --> crypto
mempool --> types
network --> crypto
ordering --> crypto
ordering --> mempool
ordering --> types
privacy --> crypto
privacy --> proofs
privacy --> types
orchard --> crypto
proofs --> crypto
rpc --> crypto
rpc --> execution
rpc --> types
storage --> types
nav --> types
pfusdc --> cobalt
pfusdc --> crypto
pfusdc --> ordering
pfusdc --> types
lane --> ordering
lane --> pfusdc
lane --> types
uniswap --> crypto
uniswap --> pfusdc
uniswap --> types
node --> bridge
node --> crypto
node --> cobalt
node --> execution
node --> mempool
node --> network
node --> ordering
node --> privacy
node --> orchard
node --> lane
node --> uniswap
node --> rpc
node --> storage
node --> types
bench --> bridge
bench --> crypto
bench --> execution
bench --> mempool
bench --> ordering
bench --> privacy
bench --> proofs
bench --> storage
bench --> types
fuzz --> bridge
fuzz --> cobalt
fuzz --> crypto
fuzz --> execution
fuzz --> mempool
fuzz --> network
fuzz --> node
fuzz --> ordering
fuzz --> privacy
fuzz --> orchard
fuzz --> proofs
fuzz --> types
eth -. bridge ABI and withdrawal verification .-> bridge
Design Principles¶
- Consensus data must be deterministic and replayable.
- Public inputs must be bounded before expensive verification.
- Governance changes must be signed, ordered, and replayable.
- Privacy claims must be tied to the real Orchard/Halo2 path, not debug proof scaffolding.
- Operator evidence must be machine-readable.
The lanes deliberately do not share one success rule. A consensus transaction needs a valid block certificate and an accepted receipt code. FastPay and FastSwap additionally require their lane-specific signed intent, certificate, and durability rules. See Settlement Lanes.