<p><a href="https://en.wikipedia.org/wiki/Hash_function" rel="nofollow noreferrer">Hashing</a> and <a href="https://en.wikipedia.org/wiki/Encryption" rel="nofollow noreferrer">encrypting</a> are separate things, and not really relevant to your question actually. You can read up more on them separately.</p>

<p>When a transaction is broadcasted, the raw <a href="https://bitcoin.org/en/developer-guide#transactions" rel="nofollow noreferrer">serialized tx</a> is broadcasted. This includes the inputs, outputs, and signatures. The transaction hash is actually the hash of this serialized tx.</p>

<p>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.</p>

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

CC BY-SA 3.0
2018-04-03T10:24:35.907Z
2018-04-03T10:24:35.907Z
Raghav Sood
<p>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?</p>

<transactions><blockchain>
How can we look up any transaction in a blockchain if they are encrypted?
user239457
# How can we look up any transaction in a blockchain if they are encrypted?

(Asked by: username_0 on 2018-04-03)

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?

**Tags:** transactions, blockchain


---

## 1 answers

### Answer by username_1 on 2018-04-03. Score: 3 | Accepted answer

[Hashing](https://en.wikipedia.org/wiki/Hash_function) and [encrypting](https://en.wikipedia.org/wiki/Encryption) 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](https://bitcoin.org/en/developer-guide#transactions) 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.


---

