DEV Community

Discussion on: Trying to understand blockchain by making one!

Collapse
 
sompylasar profile image
Ivan Babak

I don't quite get one part: from your example, only the hash of the data is stored in the blockchain; isn't the data supposed to be decrypted later? Where are the data messages ("transactions") stored then, if not in the block chain?

Collapse
 
anat0lius profile image
Anatoli

Actually the point of the blockchain is to secure the immutability of data, not to encrypt it.

Collapse
 
tintybot profile image
tintybot

well hash defines a unique signature of a block, in real practice, the block also contains an index value, a data(record of transactions), a timestamp , and also the golden nonce value.The cryptographic hash dont account for decryption. Its like the address part of a data-structure, and the data is stored in the data part of the data-structure.

Collapse
 
pbouillon profile image
Pierre Bouillon

I'm very interested about an answer to your question. How would you implement it in the current example?

Collapse
 
sompylasar profile image
Ivan Babak

I'm interested in an answer from the author before proposing mine.

Thread Thread
 
pbouillon profile image
Pierre Bouillon

Too bad we can't tag people