Skip to content

gHashTag/zig-crypto-mining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-crypto-mining

Bitcoin mining MVP + DePIN protocol in Zig. Extracted from Trinity monolith for independent development and reuse.

Features

  • Bitcoin Mining — Proof-of-Work consensus algorithm
  • SHA-256 — GF256 implementation via GoldenFloat
  • DePIN — Decentralized physical infrastructure network
  • Mining Pool — Stratum protocol for collaborative mining

Quick Start

# Build
zig build

# Run miner
./zig-out/bin/btc-mining

# Run DePIN node
./zig-out/bin/pas-node

Architecture

┌─────────────────────────────────────────┐
│         Crypto Mining Core            │
├─────────────────────────────────────────┤
│  btc_mining_mvp.zig (24KB)            │
│  - Mining coordinator                 │
│  - Worker pool                      │
│  - Stratum protocol                 │
├─────────────────────────────────────────┤
│  pas_mining_core.zig (13KB)            │
│  - DePIN network                    │
│  - Physical mining                  │
│  - Node discovery                  │
├─────────────────────────────────────────┤
│  crypto/                             │
│  - GF256 (SHA-256 implementation)   │
│  - secp256k1 elliptic curves           │
│  - Block validation                  │
└─────────────────────────────────────────┘

Dependencies

License

MIT License — see LICENSE file.

Related

About

Bitcoin mining MVP + DePIN protocol in Zig. Extracted from Trinity monolith for independent development.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages