How kanari-network/kanari-sdk works
Kanari is a Rust/Move workspace for a transaction network. Its principal workflow accepts a signed transaction through RPC, validates and gossips it, executes Move code, then commits transaction work into a checkpoint and synchronizes checkpoints to lagging nodes. The graph also preserves the documented client, query/index, framework, native-function, and state-commitment capabilities. Relationships are based on the README’s lifecycle and architecture diagrams; unsampled implementation details are not inferred.
Main entry points: engine.rs Blockchain engine · object_storage.rs Move runtime · apply_checkpoint.rs Checkpoint builder · lib.rs RPC client
Components 22
Clients
- Kanari CLI
crates/kanari/src/main.rs - Explorer
kanariexplorer/app/page.tsx - RPC client
crates/kanari-rpc-client/src/lib.rs
API and node
- RPC API types
crates/kanari-rpc-api/src/lib.rs - RPC server
crates/kanari-rpc-server/src/lib.rs - Validator node
crates/kanari-node/src/app.rs - P2P propagation
crates/kanari-node/src/p2p.rs - Checkpoint sync
crates/kanari-node/src/sync.rs
Chain processing
- Blockchain engine
crates/kanari-core/src/engine.rs - Verified mempool
crates/kanari-core/src/engine/mempool.rs - Checkpoint builder
crates/kanari-core/src/engine/apply_checkpoint.rs - DAG consensus
crates/kanari-core/src/consensus.rs - Mysticeti DAG blocks
crates/mysticeti/crates/dag/src/block.rs
Execution
- Move runtime
move-execution/v2/kanari-move-runtime-v2/src/storage/object_storage.rs - Move system natives
crates/kanari-system-natives/src/lib.rs - Move frameworks
crates/kanari-frameworks/src/packages_config.rs
State and crypto
- Transaction and object types
crates/kanari-types/src/lib.rs - Sparse Merkle Tree
crates/smt/src/sparse_merkle.rs - Transaction and object indexes
crates/kanari-indexer/src/indexer.rs - Persistent state store
move-execution/v2/kanari-move-runtime-v2/src/storage/object_storage.rs - Keys and signatures
crates/kanari-crypto/src/lib.rs
Other components
- Network users
Connections 25
- Network users → Kanari CLI: invoke commands
README.md - Network users → Explorer: browse network
README.md - Kanari CLI → RPC client: submit and query
README.md - Explorer → RPC client: query network
README.md - RPC client → RPC API types: uses methods
README.md - RPC API types → RPC server: defines requests
README.md - RPC server → Blockchain engine: submits transactions
README.md - Validator node → RPC server: serves requests
README.md - Validator node → P2P propagation: runs networking
README.md - P2P propagation → Checkpoint sync: propagates checkpoints
README.md - Checkpoint sync → Blockchain engine: recovers checkpoints
README.md - Blockchain engine → Verified mempool: admits transactions
README.md - Verified mempool → P2P propagation: gossips transactions
README.md - Blockchain engine → Move runtime: executes transactions
README.md - Blockchain engine → Checkpoint builder: produces checkpoints
README.md - Checkpoint builder → DAG consensus: records DAG metadata
README.md - DAG consensus → Mysticeti DAG blocks: uses DAG primitives
README.md - Checkpoint builder → Transaction and object indexes: updates indexes
README.md - Blockchain engine → Transaction and object types: processes chain types
README.md - Blockchain engine → Sparse Merkle Tree: commits state root
README.md - Blockchain engine → Persistent state store: persists state
README.md - Move runtime → Persistent state store: reads and writes objects
README.md - Move runtime → Move system natives: invokes native functions
README.md - Move runtime → Move frameworks: loads Move modules
README.md - Blockchain engine → Keys and signatures: validates signatures
README.md