https://github.com/thesaltree/blockchain-golang
Blockchain implementation in Golang
https://github.com/thesaltree/blockchain-golang
blockchain coinbase-wallet golang proof-of-work sha-256-hash transaction
Last synced: about 1 month ago
JSON representation
Blockchain implementation in Golang
- Host: GitHub
- URL: https://github.com/thesaltree/blockchain-golang
- Owner: thesaltree
- Created: 2024-11-02T15:05:44.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-03T05:22:50.000Z (7 months ago)
- Last Synced: 2025-03-27T06:22:32.822Z (about 2 months ago)
- Topics: blockchain, coinbase-wallet, golang, proof-of-work, sha-256-hash, transaction
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# Blockchain Implementation in Golang
A blockchain implementation in Go, demonstrating essential concepts of blockchain technology. This project includes basic block structures, proof-of-work consensus, cryptographic transaction signing, and block verification.
## Features
- **Block Structure**: Each block holds data, a hash, a previous hash link, a nonce, and transactions.
- **Proof of Work (PoW)**: Implements a proof-of-work system using md5 hashing to maintain blockchain integrity.
- **Wallets and Transactions**: Supports RSA key pairs for wallets, transaction creation, signing, and verification.
- **Genesis Block**: Automatically creates the genesis (first) block with a Coinbase transaction.
- **CLI Demo**: Demonstrates the creation of blocks, transactions, and verification on the blockchain.## Installation
### Prerequisites
- **Go** version 1.16 or higher.### Setup
- Clone the repository:```
git clone https://github.com/thesaltree/blockchain-golang.git
cd blockchain-golang
go mod tidy
```- Run the project:
```
go run main.go
```