Skip to content

rcolomina/blockchain_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This project creates a simple blockchain using python:

Importing dependencies

First starts importing datetime and hashlib libraries to create timestamps and target hashes for the blocks.

Defining a Block

Seconds the block class is defined on its main elements with a hash function that sumarizes the attributes of a block nonce data previous hash timestamp block number

Defining the Block Chain

Third the blockchain class is defined implementing two methods add a block mine a block

Mining and Printing

Finally this will create a blockchian mining the block and printing out.

About

Simple Blockchain using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages