Experimental 2-layered blockchain with rust.
Visit DevDocs for more details.
to install the project, clone the repository and run the following command:
cargo build
Also for documentation, run the following command:
cargo doc --open
-
Setup Initial Codebase
- Create a new Rust project using
cargo
. - Define the basic project structure.
- Set up dependencies in the
Cargo.toml
file.
- Create a new Rust project using
-
Implement Single Node Chain (Layer 1)
- Create a basic block structure.
- Implement Proof of Work (PoW) consensus for Layer 1.
- Develop functions for adding blocks to the main chain.
-
Implement Multiple Node Chain (Layer 1)
- Extend the code to handle multiple nodes in Layer 1.
- Implement peer-to-peer communication for nodes in Layer 1.
-
Make Central Chain (Layer 2)
- Create a new module for Layer 2 functionality.
- Define a specialized block structure for Layer 2.
- Design a consensus mechanism for Layer 2 (e.g., PBFT).
-
Connect Layer 2 to Layer 1
- Develop a mechanism for Layer 2 to connect with the main chain.
- Enable communication between Layer 1 and Layer 2 nodes.
- Implement data exchange and confirmation between the layers.
-
Documentation and Refinement
- Document the code and system architecture.
- Refine the code for clarity and maintainability.
- Consider adding comments and docstrings where necessary.