-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b9a17a
commit 5a652b2
Showing
10 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Architecture | ||
|
||
## Components | ||
|
||
### P2P | ||
|
||
P2P is responsible for handling the peer-to-peer network. | ||
|
||
The main logic is implemented in `src/p2p.zig`. | ||
|
||
### RPC | ||
|
||
RPC is responsible for handling the RPC requests from the clients. | ||
|
||
The main logic is implemented in `src/rpc.zig`. | ||
|
||
### Storage | ||
|
||
Storage is responsible for handling the blockchain data. | ||
|
||
The main logic is implemented in `src/storage.zig`. | ||
|
||
### Mempool | ||
|
||
Mempool is responsible for handling the mempool of pending transactions. | ||
|
||
The main logic is implemented in `src/mempool.zig`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Roadmap | ||
|
||
## 0.1.0 | ||
|
||
- [ ] Implement the P2P network | ||
- [ ] Implement the RPC server | ||
- [ ] Implement the storage | ||
- [ ] Implement the mempool | ||
- [ ] Implement the CLI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
pub usingnamespace @import("config.zig"); | ||
pub usingnamespace @import("mempool.zig"); | ||
pub usingnamespace @import("p2p.zig"); | ||
pub usingnamespace @import("rpc.zig"); | ||
pub usingnamespace @import("storage.zig"); | ||
|
||
test { | ||
@import("std").testing.refAllDeclsRecursive(@This()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters