Bitcoin mining with 15 lines of python code | Python Bitcoin Tutorial

Toggle fullscreen Fullscreen button

Sharing buttons:

we will be writing a bitcoin mining code

in python

in less than 15 line of code i will

cover some theory behind blockchain

first and then we'll write the code

the timestamp for coding is given below

so if you know the theory

behind blockchain if you know how it

works, you can straight away jump into


bitcoin is nothing but a ledger what is

a ledger?

i have given you an example of a ledger.

here it is set of transactions.

let's say you go to a grocery store you

buy vegetables for

15 dollars so the ledger entry will be

you are paying the vegetable owner 15 dollars

and then vegetable guy.. let's say go to a

doctor and he pays

money for let's say some medicine. let's