Skip to content

mxmaxime/python-blockchain

Repository files navigation

Blockchain python

Work in progress. This is a toy blockchain to learn. I'm not a blockchain professional, I'm pationate and I've decided to create and share this blockchain to give the possibility to you to learn about blockchain technology. At a first glance it may be scarry, but don't be! I'll explain everything I know with concrete examples.

Let's learn!

Requirements

  • python 3.7+

Because: "Prior to Python 3.7, dict was not guaranteed to be ordered, so inputs and outputs were typically scrambled unless collections.OrderedDict was specifically requested. Starting with Python 3.7, the regular dict became order preserving, so it is no longer necessary to specify collections.OrderedDict for JSON generation and parsing.". Source: https://docs.python.org/fr/3/library/json.html

Protocol to comunicate

Command

"-c " ask the blockchain to a node
"-ac" is an answer to the command -c
"-n " ask to a node his all connections
"-an" is an answer to the command -n or -p
"-t " specify that the node will receiv a transaction
"-b " specify that the node will receiv a block
"-p " it's a commande to know all the nodes in the same network

About

Toy blockchain. Education purposes only.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages