Show HN: An educational blockchain implementation in Python
11–20 of 44 posts
Re: Show HN: An educational blockchain implementation in Python
#12Very good writeup that shows all the steps. Note it uses MD5 hash instead of SHA256 so not exactly bitcoin. I wonder how much more work would be to make the code fully implement bitcoin. Will it still be readable? Or Etherium? Would be great value for understanding even if Python would be inefficient to run in prod.
Fully implementing Bitcoin white paper would require moderate amount of work if you do not consider every little detail related to security of your client code. However, current Bitcoin protocol added many features such as scripting. I think one can maintain code readability in a python implementation but documentation is the key here. Developer needs to clearly state the objective of each function. For ethereum, you…
Re: Show HN: An educational blockchain implementation in Python
#13Earlier quoted context omitted.
Fully implementing Bitcoin white paper would require moderate amount of work if you do not consider every little detail related to security of your client code. However, current Bitcoin protocol added many features such as scripting. I think one can maintain code readability in a python implementation but documentation is the key here. Developer needs to clearly state the objective of each function. For ethereum, you…
I've been ignoring bitcoin for a while. Do the devs still maintain the official implementation is the only implementation possible since it contains quirks the spec doesn't specify?
Re: Show HN: An educational blockchain implementation in Python
#14I'm still a little unsure around exactly how miners and nodes communicate with each other. Especially things like broadcasting transactions and new blocks. Any good resources for that?
Re: Show HN: An educational blockchain implementation in Python
#15also, not sure why folks are nitpicking about minor things like security disclaimers, number of sha256 hashes, md5, etc. while ignoring nontrivial gaps (eg no merkle dags, one of the cornerstone concepts).
Re: Show HN: An educational blockchain implementation in Python
#16Re: Show HN: An educational blockchain implementation in Python
#17Why is this all contained in one big json document? Am I that out of touch with modern coding??
Re: Show HN: An educational blockchain implementation in Python
#18Why is this all contained in one big json document? Am I that out of touch with modern coding??
Jupyter notebooks are popular in the data science / Python communities to explain concepts, for examples see here [2].
[1] https://ipython.org/ipython-doc/3/notebook/nbformat.html
[2] https://github.com/jupyter/jupyter/wiki/A-gallery-of-interes...
Re: Show HN: An educational blockchain implementation in Python
#19Why is this all contained in one big json document? Am I that out of touch with modern coding??
Re: Show HN: An educational blockchain implementation in Python
#20> It is NOT secure neither a real blockchain and you should NOT use this for anything else than educational purposes. It would be nice if non-secure parts of implementation or design were clearly marked. What's the point of education article, if bad examples aren't clearly marked as bad? If MD5 usage is the only issue, author could easily replace it with SHA and get rid of the warning at the start. If there are other…