How can we look up any transaction in a blockchain if they are encrypted?

0

When we add a transaction to a blockchain, aren't all the transactions hashed? Once we do that and keep on adding hashed blocks, how are we able to look up any transactions and their details?

user239457

Posted 2018-04-03T09:44:10.793

Reputation: 103

Answers

3

Hashing and encrypting are separate things, and not really relevant to your question actually. You can read up more on them separately.

When a transaction is broadcasted, the raw serialized tx is broadcasted. This includes the inputs, outputs, and signatures. The transaction hash is actually the hash of this serialized tx.

When blocks are mined, they simply include a block header, plus the serialized transaction data for each transaction in that block. Once again, the block hash and tx hashes are the hashes of the block header and the serialized txs.

Since the serialized data contains the inputs, outputs, and signatures, it is possible to view the history by simply going through the blockchain.

Raghav Sood

Posted 2018-04-03T09:44:10.793

Reputation: 10 897