Skip to content

cutewizzy11/BenchCoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BenchCoin 🪙

BenchCoin is a custom cryptocurrency that rewards users for discovering large prime numbers. This blockchain uses a novel mining system based on computationally expensive prime generation.

Features

  • ⛏️ Prime-based Proof-of-Work mining
  • 🧱 Custom blockchain with block structure and hashing
  • 🔐 Unique wallet address generation

Scripts

  • miner.py - Mines large random prime numbers and generates their hashes.
  • wallet.py - Generates a UUID-based wallet address.
  • blockchain.py - Stores blocks containing mined primes.

Getting Started

pip install -r requirements.txt
python miner.py      # Mine a prime
python wallet.py     # Generate a wallet
python               # Open Python shell
>>> from blockchain import BenchChain
>>> bc = BenchChain()
>>> bc.add_block({"prime": 1234567891011, "miner": "your-wallet-id"})
>>> for block in bc.chain:
>>>     print(block.__dict__)

Requirements

  • Python 3.10+
  • sympy

License

MIT License

About

A prime-number-based cryptocurrency blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages