Documentation / Project overview
8.1 Current baseline
As of 2026-11-01, this repository contains a Rust 2024 workspace with:
- canonical shared types and bounded decoder primitives;
- standard BLAKE2s-256 and strict Ed25519 backends, canonical transaction commitments, and state-aware signed admission;
- normalized access leases and dependency-preserving greedy execution-wave planning;
- compileable interfaces for cryptography, genesis, transactions, PoTB committees, BFT votes, state, runtime, execution, persistence, synchronization, P2P, RPC, configuration, keystore, telemetry, and node coordination;
- a tested in-memory mempool reference policy, genesis validation, configuration secret redaction, quorum arithmetic, decoder boundary helpers, and workspace integration invariants;
- authenticated double-vote evidence, bounded durable validator evidence outboxes, offline evidence CLI verification, experimental deterministic scoring and an explicit PoTB producer profile with canonical inclusion, active age weights, quorum admission and authenticated recovery, with daemon activation and RPC/CLI/DNS verification;
- bounded finalized-block history RPC for read-only explorers, alongside status and account reads;
- an allocation-free Rust contract SDK with tested wasm32 host bindings and bounded offline source-package reconstruction;
- a bounded Trocto
.tccompiler, typed scalar/control/state profiles, pinned LLVM native workers with OS isolation, reference/native comparison and explicit genesis runtime profile 3; - an on-chain DNS registry with owner-authorized leases and a certified-proof resolver;
- operator CLI with genesis verification, validator/devnet provisioning and a native-payment wallet, a network-capable daemon, and pinned Rust contract build/source verification tools;
- CI, dependency-policy automation, contribution templates, project governance documents, and engineering specifications;
- a block production pipeline (
BlockProducer) that coordinates mempool selection, deterministic execution, and storage commitment; - a local demonstration service (
FullNodeService) that simulates finality while coordinating execution and storage; - a daemon with both local demonstration and certified fixed-committee network modes, bounded peer exchange, payment gossip, protected signing recovery, and RPC status tied to durable commits.
The repository now runs a certified reference network for native payments and fixed-committee BFT across independent daemon processes. A reference CLI wallet supports offline signing and real RPC submission. Live genesis-v2 VRF rotation, standby participation and verified client catch-up are implemented. Live PoTB activation is implemented. Bounded historical state indexing and quorum capacity/fee governance are implemented. Explicit bounded history export and pinned recovery and automated in-place retention are implemented, the latter with daemon activation for validators and observers. Certified state and receipt queries, authenticated finality waiting, on-chain DNS and bounded source-package tooling are implemented. Verified VRF selection, the WASM runtime and signed contract activation are implemented; see VRF, runtime and contracts. See network setup and current limits.
8.2 Component status
| Area | State |
|---|---|
| Canonical codec | primitive, version-1 transaction, block-header, and receipt codecs implemented; strict lengths/flags, version/lane rejection, and transaction preflight validation tested; version-1 consensus vote/certificate and bounded reference-network envelopes implemented/tested; production compatibility qualification remains open |
| Shared protocol types | interface baseline |
| Genesis | bounded version-1 decoding, validated BLAKE2s commitment, account/validator state materialization, CLI verification, atomic daemon activation and restart identity checks implemented; exact genesis-key registry and explicit protected signer provisioning implemented |
| Cryptography and VRF | standard BLAKE2s-256 and strict Ed25519 implemented/tested; registered validator-key verification; strict registered-key RFC 9381 VRF verification/generation and RFC/malleability/context tests implemented; bounded parallel strict verification with deterministic failing-index reporting and serial-equivalence tests implemented/tested; independent cryptographic review remains open |
| PoTB and BFT | checked committee commitments, registered Ed25519 vote authentication, bounded round-specific quorum collection, and independently verified version-1 certificates implemented/tested; protected local prevote/precommit locks, verified valid-round proofs, and timeout transitions implemented/tested; signed proposals and explicit reference round-robin designation implemented/tested; reference monotonic timers and fixed-committee daemon networking implemented/tested; verified VRF selection, complete contribution collection, certified handoff and rotating execution/history replay APIs and explicit PoTB daemon/client activation implemented; bounded exhaustive modelling of agreement, lock safety, weighted accountability and bounded-round decision, conformance-tested against the production voter, implemented/tested; an enumerated unbounded safety and liveness argument over arbitrary committee weight and an unbounded round count is implemented/tested, and is never a mechanized proof; independent review of it remains open |
| Keystore | single-key Ed25519 signer, bounded decision journal with protected watermark rollover, chain/genesis/key binding, monotonic watermark, atomic version-2 vote/lock records, process locking, restart and uncertain-write recovery implemented/tested; daemon open-only journal recovery and explicit CLI provisioning implemented/tested; encrypted wallet vaults and OS-generated keys implemented/tested; encrypted consensus-key custody, an independent monotonic signing anchor rejecting a restored older journal, and explicit daemon activation implemented/tested; hardware isolation and a coordinated rewrite of both stores remain out of scope |
| Transactions | canonical signing/ID commitments and state-aware signed validator implemented/tested; native signed payment transitions and fixed reference fees implemented/tested; version-1 envelope, inclusive expiry, signed lane/prices, and expiry eviction implemented/tested |
| Mempool | bounded in-memory reference admission and deterministic selection implemented/tested |
| State and storage | bounded Merkle state, membership and absence proofs, immutable snapshots, atomic transitions, file-backed state and whole-chain archive recovery, and authenticated snapshot exchange implemented/tested; daemon block/state restart recovery implemented/tested; native payment account transitions implemented/tested; append-only block/delta logs with disk history reads, atomic head publication and replay recovery are implemented/tested for new network directories; bounded recent transaction indexing and certified receipt recovery are implemented/tested; bounded historical state indexing is implemented; explicit pinned physical retention and automated in-place retention with a durable local anchor and daemon activation are implemented/tested |
| Runtime and execution | signed serial/parallel payments and ABI-v2 contract waves, bounded integer WebAssembly interpreter, staged writes/events and atomic publication; worker-count/error equivalence tested; explicit rotating-producer VRF system lane reserves resources and commits atomically; genesis-v2 daemon activation is implemented; quorum capacity/fee governance is implemented; alternate engine configurations are qualified across the backend seam, with lazy compilation prohibited because deferred translation is charged to call fuel; the bounded ahead-of-time backend completes translation before the call budget and is implemented/tested on the historical contract path; Trocto native execution adds pinned LLVM 22.1.8, Linux/Windows x86-64 OS-isolated persistent workers, bounded artifact/worker pools and complete value/fuel/state/write/event comparison with reference semantics under genesis runtime profile 3; readiness-driven dependency dispatch preserves canonical ordering with immutable declared-key views; infrastructure failures remain local, with no native-to-reference execution fallback; in-process JIT and SIMD are outside the active runtime profile |
| Sync, P2P, RPC, and node | node demonstration pipeline with staged proposal execution, atomic commit, retry preservation, and canonical transaction/receipt leaves; genesis-backed native payment admission/execution and daemon RPC implemented/tested; genesis-free admission and finality remain demonstrations; explicit producer certified proposal/commit APIs and a reference round-robin participant coordinate signed proposals, evidence, timeout events, and recovery; certified validator and non-voting observer networking over mutual TLS 1.3, transaction gossip, available-value persistence, full-history certificate authentication, sequential catch-up, scoped private-network discovery, bounded reusable sessions and authenticated observer export implemented/tested |
| Configuration | pure validation and debug redaction baseline |
| Telemetry | bounded fixed-cardinality operational counters and optional loopback Prometheus endpoint implemented/tested; measurements never enter consensus |
| Contracts | historical pinned Rust/ABI-v2 builds, signed deployment/calls under genesis runtime profile 2, fee/nonce transitions, SDK host bindings and bounded offline source reconstruction implemented/tested; Trocto .tc and .tcp source tooling, language/metering profiles 1/1 and 2/2, typed Copy scalars, control flow, state capabilities, events and signed profile-3 deployment/calls implemented; historical ABI-v2 calls retain their behavior under profile 3; aggregate ownership/borrowing and independent compiler/runtime security review remain open |
| DNS | bounded on-chain registry, ownership/lease transitions, confusable-name reservations, transaction preparation and certified-proof TCP resolver implemented/tested |
| CLI and daemon | CLI genesis verification; local daemon with file-backed block/state recovery, genesis activation, strict arguments, startup failure propagation, and durable RPC head; signed native payments and committed account/submission RPC implemented/tested; opt-in certified fixed-committee network, devnet provisioning, and standalone TLS identity provisioning implemented/tested; default local mode retains demonstration finality |
The persistent version-1 state backend implements incremental existing-key updates and cached membership/absence paths, with flat-reference differential tests. Topology changes still rebuild the tree; production disk indexing and distributed performance qualification remain open.
8.3 Removed architecture
The current design removes:
- C and C++ as node implementation languages; the Trocto native worker uses a fixed generated host harness;
- the C ABI as the primary module boundary;
- ALVM and its custom instruction set;
- the earlier Regol and Kreep contract designs; Trocto now has bounded language profiles and explicitly activated native execution in document 64;
- a general-purpose off-chain user storage/share service;
- claims that VRF is intentionally absent;
- historical implementation claims not represented by this Rust repository.
Validator-local persistence remains required and is named storage; it is not a user content service.
8.4 Planned milestones
M1 — canonical foundations
Canonical encodings, domain tags, hashing, addresses, signatures, checked resource arithmetic, golden vectors, property tests, and fuzz targets.
The codec now rejects alternate length prefixes and non-canonical receipt flags, and validates transaction structure before allocating owned fields. Regression coverage includes golden bytes, every supported sequence length, every receipt flag, truncations, and transaction byte mutations. The standalone fuzz package includes the accepted-input re-encoding invariant for transactions, state keys, and receipts. The version-1 transaction envelope adds signed expiry, explicit lane, and prices; transaction encoder output changes and old archives fail closed. See the current codec baseline.
Standard hashing and signing backends, signed transaction IDs, address derivation, and checked resource pricing are implemented with conformance tests. These replace incompatible placeholder cryptographic outputs; see suite and compatibility details. The daemon now supports explicitly selected authenticated fixed-committee networking; local mode retains demonstration certificates.
M2 — state and transactions
Signed envelopes, validation order, account/state commitments, immutable snapshots, proofs, diffs, sequential atomic commit, crash recovery, pruning, receipts, and snapshot exchange.
Implemented reference state commitments, membership and absence proofs, bounded versioned snapshots, atomic file-backed state publication, writer locks, recovery, verified snapshot exchange, and proposal rollback are described in state and recovery. Whole-chain archives now persist blocks, certificates, checkpoints, and historical state atomically. Local daemon block/state restart integration is implemented with process and differential recovery tests. Genesis activation creates committed account balances/nonces and validator weights, installs a durable height-zero anchor, and validates genesis identity on restart. Recovered accounts are tested against signed admission. Native payments implement sequential account transitions, fixed reference fees, atomic revalidation/publication, and daemon account/submission RPC with process restart tests. Versioned transaction policy is enforced at admission, proposal execution, and commit; expiry eviction follows successful durable publication. Durable consensus signing decisions now recover independently through the signing journal. Daemon signer integration and full-history certificate verification are implemented in the reference-network profile. Append-only chain storage removes whole-history rewrites and the archive checkpoint cap for new network directories, with legacy compatibility and fault/replay coverage. Quorum capacity/fee governance, bounded historical state indexing, explicit pinned history export and automated in-place retention are implemented. A production durable database engine remains open.
M3 — deterministic runtime
Pinned Rust contract toolchain, target selection, validator, interpreter, host ABI, resource metering, SDK, reproducible artifacts, source verification, and differential execution.
Historical ABI-v2 WebAssembly execution and its Rust SDK/source tools remain
implemented. Trocto adds checked .tc source and .tcp
packages, typed u64/bool Copy scalars, mutable lexical locals, branches,
short-circuit logic, fuel-bounded loops, literal/dynamic state capabilities and
events. Pinned LLVM 22.1.8 compiles checked IR into persistent Linux/Windows x86-64
workers with OS isolation and bounded pools. The stateful native ABI compares
every value, fuel count, state slot, write flag and event against the independent
reference evaluator before publishing private effects. Signed deployment/calls,
fees, receipts and historical ABI-v2 compatibility are implemented under explicit
genesis runtime profile 3.
These implementations and conformance checks do not complete Rust-style aggregate ownership/borrowing, independent compiler/runtime security review or production qualification. Native artifacts are local derived data; independent-machine reproducibility remains an external release gate.
M4 — parallel execution
Deterministic waves, Adaptive Execution Leasing, lanes, optimistic access validation, replay bounds, locality, fusion, prefetch, caches, pools, and signature batches.
Bounded execution-parent caching and borrowed-key wave planning are implemented with uncached/serial differential tests and deterministic read-count checks; scope and limits. Per-block worker reuse is implemented with thread-count and serial-equivalence checks; scope. Consecutive singleton-wave fusion, bounded declared-key prefetch and reusable worker result buffers are implemented with serial-equivalence checks; behavior and limits. These complete the reference execution optimization scope. Bounded parallel strict signature verification is implemented across every quorum path with deterministic failing-index reporting and serial-equivalence tests; scope and limits. It splits independent verifications across workers rather than reducing the work per signature. End-to-end throughput is not established by these functional checks. Per-operation cost is measured separately on one host, where 512 requests verify 5.7x faster at eight workers than at one; measurement method and limits.
M5 — consensus
PoTB transitions and evidence, audited VRF provider, unbiased weighted sampler, partial committee rotation, producer selection, prevote/precommit state machine, certificates, durable anti-equivocation, formal models, and adversarial simulations.
The authenticated finality layer verifies registered keys, chain/height/committee-bound vote digests, and weighted precommit certificates. The collector retains one round, rejects duplicate nil votes, distinguishes authenticated equivocation, and never combines weights across rounds or phases. Certified producer commits authenticate finality before existing execution/storage checks, with failed-write retry and restart verification tests. The durable signing journal now reserves a chain/genesis/key-bound decision before returning an Ed25519 signature, blocks stale coordinates, and recovers after process exit. Typed vote signing maps wire phases to protected journal coordinates. Protected journals now support bounded rollover, preserving their immutable prefix and inode lock while continuing past 100,000 decisions. The local BFT guard now verifies prevote proofs, preserves locks through nil votes/timeouts and restarts, and reserves locks atomically with signatures. Read-only producer validation and a payment/vote/certificate/archive integration test exercise execution before signing and publication after finality. Signed proposals and a reference participant now authenticate designation, persist proposal reservations, coordinate execution/voting/commit, and recover across round changes and failed storage writes. The reference network driver integrates daemon voting, timers, signer provisioning, durable available values, and certified synchronization. Mutually authenticated TLS 1.3 and independent transport provisioning are implemented; see transport security. Verified weighted VRF selection, authenticated handoff and rotating execution/recovery APIs are implemented; genesis-v2 daemon activation is implemented; production qualification remains open.
M6 — P2P and node
Authenticated encrypted transport, peer discovery, rate limits, compact blocks, finalized sync, bounded queues, pipelining, speculation, external RPC, telemetry, and finalized adaptive-capacity observations.
Non-voting full nodes now verify and serve certified history, re-execute imported blocks, relay payments, and recover without consensus keys. Observer provisioning and actual TLS/RPC process tests are implemented.
Owned response preparation and encoding are separated in both node roles. The daemon releases its node lock before encoding; scope and byte-equivalence tests. Incoming exchanges are decoded once in peer workers and retained in the bounded mailbox for processing against current node state; scope and equivalence tests.
Optional compact-block propagation, bounded detached execution, speculative local candidate preparation and next-height fetch are integrated with sequential voting and publication checks; behavior and qualification. Routine operations and reproducible metrics sampling have a runbook. Speculative execution/voting on uncommitted descendant state remains outside the reference profile. Bounded local admission control — token buckets per traffic class, misbehaviour scoring, bounded bans and per-source connection caps — is implemented in the daemon's peer workers; calibration of its defaults against a measured hostile load, and qualification on a public network, remain open. Automated in-place retention is implemented alongside the explicit offline pinned export, and is enabled by daemon flag rather than by default.
M7 — ecosystem
Wallet integration and DNS registry/resolver.
Native-payment CLI signing and a bounded RPC client are implemented/tested, including devnet funding, signature inspection, submission failure handling and real finalized account queries. Encrypted wallet custody, certified state/receipt queries, authenticated finality waiting and on-chain DNS are implemented/tested; see receipt behavior.
M8 — production gates
Distributed calibration, interoperability suite, long fuzz campaigns, reproducible releases, dependency audit, independent cryptography/consensus/runtime/security reviews, key ceremonies, and incident/operator runbooks.
Supported fixed/rotating wire histories retain 50 frozen compatibility fixtures. The explicit PoTB producer profile adds eight separate fixtures with authenticated replay and independent Python checks. The shared deterministic mutation corpus now uses 99 seeds and passes one million inputs; scope and live PoTB qualification.
The concise checklist and remaining-work split are maintained in
../ROADMAP.md. Alternate-runtime
qualification and automated retention recovery design are no longer deferred: both
are implemented and documented in document 58
and document 60. What stays outstanding is
external: independent cryptography, consensus, runtime and security audits,
independent provider and argument review, a release authority identity and key
ceremony, and independent-machine release evidence. Linux suite execution and
Linux two-build reproducibility are now observed on hosted runners; local Windows
checks and configured CI jobs still do not satisfy the external gates.
A dependency-free benchmark harness and per-crate micro-benchmarks now measure per-operation cost locally, covering part of the preliminary benchmark suite. Distributed calibration, latency percentiles and the confidence intervals a calibration report must state are not covered and stay release activities; method and limits.
8.5 Required continuous gates
Every protocol change must pass formatting, Clippy with warnings denied, unit/integration/doc tests, canonical serialization compatibility, cross-platform deterministic fixtures, documentation-link checks, and benchmark execution on both platforms. The benchmark gate establishes only that every declared benchmark still runs and none has silently stopped; it thresholds no duration and the hosted figures are not comparable; limits. Relevant changes additionally require property testing, fuzzing, recovery tests, and optimized/reference differential checks.
Unsafe Rust remains forbidden except in the dedicated wasm32 FFI module; documented binding review. CI currently covers Linux and Windows quality checks. Dependency policy, registry advisory lookup and the workspace-excluded fuzz package are checked by separate configured workflows; review and its coverage gaps.
8.6 Open decisions
Before production implementation, resolve:
- Adversarial contribution/evidence availability and formal safety/liveness. Capacity/fee governance uses more than two thirds of incumbent weight with next-epoch activation; implementation. The live PoTB profile, candidate provisioning and incumbent-quorum admission CLI are implemented. Bounded delivery simulations cover both rotating profiles, validly signed Byzantine coalitions below the accountability threshold, membership churn crossed with delivery faults and adverse weight concentration. A bounded formal model checks agreement, lock safety, weighted accountability and bounded-round decision at one height. Unbounded safety/liveness and independent provider review remain open.
- Alternative availability policies beyond the implemented complete-roster private-network profile.
- Rotating weighted BFT lock, unlock, timeout, and handoff rules.
- Versioned activation of future protocol changes; current encoding/hash compatibility is fixed by the literal corpus.
- Cross-platform contract artifact qualification and independent compiler/runtime review; bounded offline source reconstruction, historical ABI-v2 WebAssembly/Rust tooling and Trocto's pinned LLVM, OS-isolated stateful ABI and genesis runtime profile 3 are implemented. Aggregate ownership/borrowing requires a new language profile.
- Production state indexing and concrete durable chain database engine; the reference Merkle commitment is specified.
- Transaction ordering, anti-MEV policy and lane borrowing; versioned fee governance is implemented.
- Adaptive-capacity observation, manipulation resistance, and activation.
- P2P transport, discovery, topology, identities, and denial-of-service bounds.
- Deployment-specific DNS lease pricing; deterministic naming, ownership and lease rules are implemented.
- Supported platforms, compatibility lifecycle, and maintainer authority. Detached release-manifest signing and offline verification are implemented; the release authority identity and its key ceremony are deliberately not invented here; workflow.
8.7 Non-negotiable correctness properties
- Finalized transaction order is unique at each height.
- A finality certificate represents voting power strictly greater than two thirds.
- Committee selection is publicly verifiable and proportional to finalized PoTB weight under the specified sampler.
- Parallel, sequential, speculative, fused, cached, AOT, JIT, SIMD, and portable paths agree.
- Adaptive capacity cannot be changed by one node's local measurements.
- Canonical state is published only after finality and execution commitments validate.
- Sync and snapshot imports remain staged until verified.
- Configuration and logs do not expose secret key material.
- Ecosystem services cannot access validator signing authority.