<p>scriptpubkey is the locking script, it contains the condition to spend this output, so XXX is the hash referent to the address that is receiving, that´s why is different.</p>

CC BY-SA 3.0
2016-07-26T19:20:03.190Z
2016-07-26T19:20:03.190Z
carvmarc
<p>I am confused when i see this transaction</p>

<p><a href="https://testnet.blockexplorer.com/address/mvnWTMe8Wzx7RcXP5cZnFNBc83FLoiMwyP" rel="nofollow">Test transaction with one input and two outputs</a></p>

<p>Since scriptpubkey verifies the hash of the sender's public key and sender's signature, i am wondering why the two scriptpubkeys are different. Shouldn't they be the same? I am saying the XXX part in the following should be identical</p>

<p>OP_DUP OP_HASH160 XXX OP_EQUALVERIFY OP_CHECKSIG</p>

<p>If not, why not?</p>

<transactions><script><public-key>
why scriptpubkey is different
user2065276
# why scriptpubkey is different

(Asked by: username_0 on 2016-07-26)

I am confused when i see this transaction

[Test transaction with one input and two outputs](https://testnet.blockexplorer.com/address/mvnWTMe8Wzx7RcXP5cZnFNBc83FLoiMwyP)

Since scriptpubkey verifies the hash of the sender's public key and sender's signature, i am wondering why the two scriptpubkeys are different. Shouldn't they be the same? I am saying the XXX part in the following should be identical

OP\_DUP OP\_HASH160 XXX OP\_EQUALVERIFY OP\_CHECKSIG

If not, why not?

**Tags:** transactions, script, public-key


---

## 1 answers

### Answer by username_1 on 2016-07-26. Score: 2 | Accepted answer

scriptpubkey is the locking script, it contains the condition to spend this output, so XXX is the hash referent to the address that is receiving, that´s why is different.


---

