Bitcoin Forum

Bitcoin => Project Development => Topic started by: BlockXchain on June 08, 2017, 01:25:57 PM



Title: Building a blockchain in Python
Post by: BlockXchain on June 08, 2017, 01:25:57 PM
I'm fairly new to bitcoin and blockchain, and figured the best way to learn was to build a simple blockchain with a high-level language (python). I'm having trouble with the networking aspects of blockchains. Can anyone point me in the right direction? Thanks!


Title: Re: Building a blockchain in Python
Post by: tyz on June 08, 2017, 03:09:25 PM
There is not much documentation or tutorials specific for blockchain and Python. I suggest to first get into the basics of the blockchain. You need at least a basic understanding to be able to develop the software in any programming language. I recommend these both source to start with:
https://github.com/digital-dreamer/blockchain-programming/wiki/Video-lectures-and-courses
https://www.coursera.org/learn/cryptocurrency


Title: Re: Building a blockchain in Python
Post by: d5000 on June 11, 2017, 10:37:15 AM
For some practical examples:

There is an implementation of "naivechain" (a very, very simple blockchain, originally written in JavaScript) in Python: https://github.com/alexyer/naivechain.py

Also, "Bitcoins the hard way (http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html)", may be useful for you. It consists of very small python scripts that do basic Bitcoin tasks like the sending of a transaction.