<p>The blocks contain the complete transactions. When you validate a block, you validate every transaction in it the same way the miner who mined that block presumably did.</p>

<p>To spend a previous transaction's output, you must provide a valid signature.
Every signature is accompanied by a public key in the transaction. If you have a signature to verify, you also have a public key.</p>

<p>On the other hand, it's just for the outputs of a transaction that you have only an address. However, there is nothing to verify then since there's no signature. There is no need to validate an address. What would an invalid address be? </p>

<p>The only thing they need to validate are signatures and, as I said, signatures are always accompanied by a public key. When a transaction contains a signature, that signature is accompanied by a public key. Where a transaction does not contain a signature (such as for its output addresses) there is no signature to validate and hence no need for a public key.</p>

<p>The important thing is that the miner validates the transaction and then includes the transaction in the block, so everyone else has everything the miner had.</p>

CC BY-SA 3.0
2016-10-21T16:23:53.380Z
2017-05-21T18:01:04.457Z
2017-05-21T18:01:04.457Z
David Schwartz
<p>Since only  the  hash of public keys are stored on the chain (as address), which could be validated only by miner who have access to signed transactions (which includes public key), how do other miners validate new incoming block, when they have no access to raw transactions (with public keys) ?</p>

<p>Thank you!</p>

<transactions><blockchain><address><signature>
How are transactions from incoming blocks verified?
alex
# How are transactions from incoming blocks verified?

(Asked by: username_0 on 2016-10-21)

Since only the hash of public keys are stored on the chain (as address), which could be validated only by miner who have access to signed transactions (which includes public key), how do other miners validate new incoming block, when they have no access to raw transactions (with public keys) ?

Thank you!

**Tags:** transactions, blockchain, address, signature


---

## 1 answers

### Answer by username_1 on 2016-10-21. Score: 2

The blocks contain the complete transactions. When you validate a block, you validate every transaction in it the same way the miner who mined that block presumably did.

To spend a previous transaction's output, you must provide a valid signature.
Every signature is accompanied by a public key in the transaction. If you have a signature to verify, you also have a public key.

On the other hand, it's just for the outputs of a transaction that you have only an address. However, there is nothing to verify then since there's no signature. There is no need to validate an address. What would an invalid address be?

The only thing they need to validate are signatures and, as I said, signatures are always accompanied by a public key. When a transaction contains a signature, that signature is accompanied by a public key. Where a transaction does not contain a signature (such as for its output addresses) there is no signature to validate and hence no need for a public key.

The important thing is that the miner validates the transaction and then includes the transaction in the block, so everyone else has everything the miner had.


---

