Is any blockchain P2P communication protocol acceptable?

Asked 2 years ago, Updated 2 years ago, 108 views

I studied blockchain as a hobby, and I got a rough outline, but I don't really understand how to communicate with each other.
"In various reference books, ""Use P2P communication~"" is written, but even if you say P2P in one bite, it doesn't make sense."

Of course, by definition, I don't think the communication method itself is a blockchain, so I think it's ultimately "anything is fine," but
I would appreciate it if you could tell me the advantages of actually operating blockchain technology such as using REST-API to communicate with P2P over HTTP communication, and other advantages of creating a unique protocol like Bitcoin.
Bitcoin followed the source code, and I realized that they were making their own protocols because they were doing things like "the first few bytes are at this value" and doing things like "three handshakes?"

I have little knowledge of IT, and I am a high school graduate and I am a temporary worker, so honestly, I don't have a foundation, so it might be a strange question.
However, I started studying because I thought it would be interesting, so if you don't mind, please let me know.

ethereum

2022-09-30 14:01

1 Answers

Let's start with the basics.

The Internet just connects many computers with a router, so you don't have to think that complicated.

"Use P2P communication~" Let's understand the meaning of this word. I think p means peer.The meaning of p2p here is to communicate directly without going through the intermediate server.It's very easy to do on the Internet (you can communicate with someone if you know their IP address)

"As you said, I think ""anything is fine"" in the end."

The advantages and disadvantages can be considered in several main aspects:

I think 1 and 2 are the opposite relationships (the more compressed the more computational and less communication data is consumed).

If you don't think about the safety of 3, you can create your own protocol with the basic protocol of tcp or udp (if possible)

REST-API+HTTPS would be easier if you wanted to get the safety of 3.

Blockchain is originally defined, and there is no detailed definition yet, which means that whatever protocol you try to use, if it fits the core of the blockchain, it's a blockchain.

Hang in there


2022-09-30 14:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.