How truenetworkio/true works
Project type and purpose
• This is a Substrate-based blockchain node template written in Rust, split into multiple Cargo crates.
• It provides a node binary (node/ crate) that spins up a peer-to-peer blockchain, a runtime (runtime/ crate) compiled to Wasm containing FRAME pallets, and custom pallets (pallets/algorithms, pallets/credentials, pallets/issuers).
• It also includes AssemblyScript scripts (asm-scripts/) for generating Wasm artifacts and helper files for front-end integration or smart-contract-style modules.
File structure
Top-level crates and directories:
• node/ – the blockchain node application (networking, consensus, RPC server, CLI, chain specs).
• runtime/ – the state transition logic (Wasm runtime composed of FRAME pallets).
• pallets/… – custom FRAME pallets providing domain logic (algorithms, credentials, issuers).
• asm-scripts/ – AssemblyScript project producing Wasm modules or demo front-ends.
• Tooling & config: Cargo.toml, Containerfile, Nix flake (flake.nix), scripts/, .github/, .devcontainer/, etc.
README for additional insights
• Confirms the split between node, runtime, and pallets.
• Highlights key subsystem responsibilities: libp2p networking, consensus (Aura, GRANDPA), RPC, chain spec, FRAME pallet composition via macros.