Author

Topic: Blockchain Demonstration [Python, JS] (Read 172 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
September 24, 2019, 01:14:57 PM
#4
For starter, how do you start the application? Do i just need to install necessary library and run with this command?

Code:
python3 blockchain_client.py
python3 blockchain.py

For references, you could see https://anders.com/blockchain/ and https://blockchaindemo.io/, but i hope you could maintain balance between user-friendliness towards beginner while mention what exactly is happening.
member
Activity: 180
Merit: 14
September 24, 2019, 10:44:46 AM
#3
that can help beginners

for that i think you need to work more on the explanation part and start by explaining how to run this tool step by step and on each step you should try explaining what exactly is happening. for example
- what is a transaction (parts that it has, the role of previous transaction, scripts,...)
- what is the signature
- what are public/private key pairs
- what happens when you broadcast the signed tx
- how a block is mined
- how do nodes communicate with each other.

there is also something odd about the keys in your screenshot, from the code it seems like you are using RSA. why use that instead of Elliptic Curve DSA since it is more popular?
also are these keys encoded using DER? you might want to specify the encoding that your code accepts.

also this following part doesn't sound correct:
Quote
The blockchain is for authorizing payments of a cryptocurrency between two peers without the need for a centralized 3rd party approving of the transaction.
blockchain is only for "storing" the transaction history and "chain" or link them together using cryptography and in coins such as bitcoin by doing "work" hence the term proof of work. so blockchain only works as the public immutable ledger that only grows. the "authorization" happens by the user when they provide a digital signature.

Maaaan!!! Grin Really Thank you very very much for your feedback. I am not that good in English but I tried to write and learn.
All that you said is totally true and amazing, really thank you.
I will try to explain all of that you notice, also I didn't know about Elliptic Curve DSA, I will check it now.
Thanks.

Best Regards
legendary
Activity: 3472
Merit: 10611
September 24, 2019, 09:42:54 AM
#2
that can help beginners

for that i think you need to work more on the explanation part and start by explaining how to run this tool step by step and on each step you should try explaining what exactly is happening. for example
- what is a transaction (parts that it has, the role of previous transaction, scripts,...)
- what is the signature
- what are public/private key pairs
- what happens when you broadcast the signed tx
- how a block is mined
- how do nodes communicate with each other.

there is also something odd about the keys in your screenshot, from the code it seems like you are using RSA. why use that instead of Elliptic Curve DSA since it is more popular?
also are these keys encoded using DER? you might want to specify the encoding that your code accepts.

also this following part doesn't sound correct:
Quote
The blockchain is for authorizing payments of a cryptocurrency between two peers without the need for a centralized 3rd party approving of the transaction.
blockchain is only for "storing" the transaction history and "chain" or link them together using cryptography and in coins such as bitcoin by doing "work" hence the term proof of work. so blockchain only works as the public immutable ledger that only grows. the "authorization" happens by the user when they provide a digital signature.
member
Activity: 180
Merit: 14
September 24, 2019, 05:35:56 AM
#1
Hello,

In this post, I wanna show you Blockchain demonstration that can help beginners to well understand the practice side of Blockchain.
The code creates in python and  I used Pycharm to create Clients and Nodes. I thought would add some docs ASAP.

Here is the link : https://github.com/L-KH/Blockchain-Demonstration

If you get any problem or something wrong please let me know.
feedbacks are appreciably welcomed.
& if you enjoy it and like it please add "star" in the upright side

Thanks
Jump to: