Expand description
§Duniter v2s Documentation
🆙 A rewriting of Duniter v1 in the Substrate framework.
⚠️ Duniter-v2s is under active development.
🚧 A test network called “ĞDev” is deployed, allowing testing of wallets and indexers.
§Crate Overview
This workspace consists of multiple crates that collaboratively implement the Duniter node, enabling features such as identity management, Web of Trust (WoT) evaluation, universal dividend calculation, and more. Below is a categorized list of crates within this workspace:
§Core Components
client/distance
: Provides an inherent data provider for distance evaluation in the Web of Trust.distance-oracle
: A standalone tool for performing computationally intensive Web of Trust distance calculations.node
: The main node implementation for running the Duniter blockchain network.
§Testing Utilities
end2end-tests
: End-to-end tests for validating the entire Duniter workflow.live-tests
: Live test cases for ensuring the integrity of the chain.
§Pallets (Runtime Modules)
pallets/authority-members
: Manages the authority members.pallets/certification
: Handles identity certification.pallets/distance
: Implements the storage and logic for WoT distance calculations.pallets/duniter-test-parameters
: Provides runtime testing parameters.pallets/duniter-test-parameters/macro
: Macros to simplify testing configurations.pallets/duniter-wot
: Core logic for managing the WoT.pallets/identity
: Implements identity management.pallets/membership
: Manages memberships.pallets/oneshot-account
: Manages one-shot accounts.pallets/quota
: Manages users quotas.pallets/smith-members
: Manages smiths.pallets/universal-dividend
: Handles the logic for distributing universal dividends.pallets/upgrade-origin
: Ensures secure origins for runtime upgrades.
§Shared Primitives
primitives/distance
: Shared types and logic for distance evaluations.primitives/membership
: Shared primitives for membership-related operations.
§Tooling and Utilities
resources/weight_analyzer
: Provides tools for analyzing runtime weights.runtime/common
: Shared components and utilities used across multiple runtimes.runtime/gdev
: The runtime implementation for the GDEV test network.runtime/g1
: The runtime implementation for the G1 test network.runtime/gtest
: The runtime implementation for the GTEST test network.xtask
: A custom xtask runner to automate release and testing.
Modules§
- A collection of node-specific RPC methods. Substrate provides the
sc-rpc
crate, which defines the core RPC layer used by Substrate nodes. This file extends those RPC definitions with capabilities that are specific to this project’s runtime configuration. - Service and ServiceFactory implementation. Specialized wrapper over substrate service.