An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        


docker for dummies

# 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
```