Bitcoin Forum
May 10, 2024, 12:13:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain Demonstration [Python, JS]  (Read 156 times)
kusanagi01 (OP)
Member
**
Offline Offline

Activity: 180
Merit: 14


View Profile
September 24, 2019, 10: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
1715300012
Hero Member
*
Offline Offline

Posts: 1715300012

View Profile Personal Message (Offline)

Ignore
1715300012
Reply with quote  #2

1715300012
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715300012
Hero Member
*
Offline Offline

Posts: 1715300012

View Profile Personal Message (Offline)

Ignore
1715300012
Reply with quote  #2

1715300012
Report to moderator
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10558



View Profile
September 24, 2019, 02:42:54 PM
 #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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
kusanagi01 (OP)
Member
**
Offline Offline

Activity: 180
Merit: 14


View Profile
September 24, 2019, 03:44:46 PM
 #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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!