-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from 0xsharma/shivam/add-p2p
init : p2p gRPC
- Loading branch information
Showing
26 changed files
with
1,717 additions
and
98 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 |
---|---|---|
@@ -1,21 +1,53 @@ | ||
# Compact-Chain | ||
|
||
## About <a name = "about"></a> | ||
|
||
This is a simple implentation of Blockchain in Golang. This is still in development and is not ready. This project is undertaken to enhance my knowlege on advanced(p2p, db, state-transitions) blockchain concepts. This can be used by anyone who wants to learn about blockchain and how it works. | ||
# Compact-Chain | ||
This is a simple implentation of Blockchain in Golang. This project is undertaken to enhance my knowlege on advanced(p2p, db, state-transitions) blockchain concepts. This can be used by anyone who wants to learn about blockchain and how it works. | ||
|
||
### Prerequisites | ||
|
||
What things you need to install the software and how to install them. | ||
|
||
``` | ||
Golang 1.19+ | ||
Golang 1.20+ | ||
``` | ||
|
||
### Run | ||
### Run Demo Chain | ||
|
||
``` | ||
go mod tidy | ||
go run main.go start | ||
go run main.go demo | ||
``` | ||
|
||
### Run Multiple Nodes Chain | ||
|
||
``` | ||
go mod tidy | ||
go run main.go start <NODE_ID> | ||
for example : | ||
terminal/instance 1 : go run main.go start 1 | ||
terminal/instance 2 : go run main.go start 2 | ||
terminal/instance 3 : go run main.go start 3 | ||
And so on.... | ||
``` | ||
|
||
### Run Tests | ||
|
||
``` | ||
make test | ||
``` | ||
|
||
### Modules Implemented | ||
|
||
``` | ||
- Consensus (POW) | ||
- p2p (gRPC) | ||
- DbStore | ||
- State Executor | ||
- RPC (add and get Transactions) | ||
- TxPool | ||
- Encoding | ||
- Hashing | ||
``` | ||
### License | ||
The entire code is licensed under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html). | ||
|
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
Oops, something went wrong.