A Substrate node template based sample runtime, showcasing validator and account permissioning.
The runtime includes:
- Account Set pallet for account-level permissioning using account allow-list.
- Validator Set pallet for managing addition and removal of validators in PoA networks.
Install Rust:
curl https://sh.rustup.rs -sSf | sh
Initialize your Wasm Build environment:
./scripts/init.sh
Build Wasm and native code:
cargo build --release
Start a development chain with:
./target/release/substrate-permissioning-sample --dev
Detailed logs may be shown by running the node with the following environment variables set: RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev
.
This code not audited and reviewed for production use cases. You can expect bugs and security vulnerabilities. Do not use it as-is in real applications.