GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 1Prototype1/BlockChain: A simple BlockChain implementation using Python. It also has PoW(Proof of Work) concept which is how mining works.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
Example.ipynb
Example.ipynb
 
 
README.md
README.md
 
 
block.py
block.py
 
 
blockchain.py
blockchain.py
 
 

Repository files navigation

BlockChain

A simple BlockChain implelemtation using Python. It also has PoW(Proof of Work) concept which is how mining works.

Block class:

timestamp - Block creation time
transactions - Data
previous_hash - SHA-256 hash of previous block
nonce - Initial number used for PoW
hash - SHA-256 hash of current block
generate_hash() - Generates SHA-256 hash of current block
print_contents() - Prints the content of current block

Blockchain class:

chain - Block chain (list)
all_transactions - All performed transactions
genesis_block - First block of blockchain
genesis_block() - Creates first block(init)
print_blocks() - Prints all blocks in the blockchain
add_block() - Adds new block to block chain
validate_chain() - Validates the blockchain
proof_of_work() - PoW function to solve the required hash

Example on how to use: Example.ipynb

About

A simple BlockChain implementation using Python. It also has PoW(Proof of Work) concept which is how mining works.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.