GO-BlockChain-Simulation is a blockchain simulation written in Go. This project is developed to understand and implement the fundamentals of blockchain technology.
The project consists of the following components:
- cli: Contains necessary code for the command-line interface.
- blockchain: Defines the structure and operations of the blockchain.
- wallet: Provides operations to manage cryptocurrency wallets.
- main.go: Main application file of the project.
Clone the project to your local machine:
-
$ git clone https://github.com/SadikSunbul/GO-BlockChain-Simulation.git $ cd GO-BlockChain-Simulation
To create a new blockchain:
-
$ go run main.go createblockchain -address <ADDRESS>
To check the balance for a specific address:
-
$ go run main.go getbalance -address <ADDRESS>
To send a transaction on the blockchain:
-
$ go run main.go send -from <FROM_ADDRESS> -to <TO_ADDRESS> -amount <AMOUNT>
To print all blocks in the blockchain:
-
$ go run main.go printchain
To create a new wallet:
-
$ go run main.go createwallet
Lists the public keys of the wallets you created on your device:
-
$ go run main.go listaddresses
If you would like to contribute, please open a pull request on GitHub. We welcome contributions of any kind to the project. This project follows a Code of Conduct. Please review and adhere to it in all interactions within the project.