<p>No, because clients use <code>SIGHASH_ALL</code> in their transactions by default, which signs the outpoint you're spending in addition to the rest of the transaction.</p>

<p>People also sometimes add the flag <code>SIGHASH_ANYONECANPAY</code> to <code>SIGHASH_ALL</code> which still signs the outpoint you're spending.</p>

CC BY-SA 3.0
2015-04-27T12:22:59.333Z
By saying client sometimes use 'SIGHASH_ANYONECANPAY' , Do you mean the <sig> part of the scriptSig is created using 'SIGHASH_ANYONECANPAY' ? If so, how different signature type 'SIGHASH_ANYONECANPAY' and 'SIGHASH_ALL' can unlock same scriptPubKey ?
Haddar Macdasi
CC BY-SA 3.0
2015-04-27T22:08:43.623Z
@HaddarMacdasi The signature type is chosen by the signer at signing time. See https://bitcoin.org/en/developer-guide#signature-hash-types
Nick ODell
CC BY-SA 3.0
2015-04-27T22:13:10.993Z
@HaddarMacdasi Also, I noticed that my answer was wrong, so I fixed it.
Nick ODell
CC BY-SA 3.0
2015-04-26T18:33:00.783Z
2015-04-27T22:11:44.440Z
2015-04-27T22:11:44.440Z
Nick ODell
<p>To use a UTXO one must supply correct scriptSig or "unlocking script" to the given scriptPubKey "lock script", I know the scriptSig in PTPKH locking is sig and pubkey. My question is what makes the sig be unique to the specific UTXO ? 
It must be, otherwise I can take it and use it in different UTXO which has the same scriptPubKey .</p>

<script>
Is it possible to copy other scriptSig for using in different transaction?
Haddar Macdasi
# Is it possible to copy other scriptSig for using in different transaction?

(Asked by: username_0 on 2015-04-26)

To use a UTXO one must supply correct scriptSig or "unlocking script" to the given scriptPubKey "lock script", I know the scriptSig in PTPKH locking is sig and pubkey. My question is what makes the sig be unique to the specific UTXO ?
It must be, otherwise I can take it and use it in different UTXO which has the same scriptPubKey .

**Tags:** script


---

## 1 answers

### Answer by username_1 on 2015-04-26. Score: 1 | Accepted answer

No, because clients use `SIGHASH_ALL` in their transactions by default, which signs the outpoint you're spending in addition to the rest of the transaction.

People also sometimes add the flag `SIGHASH_ANYONECANPAY` to `SIGHASH_ALL` which still signs the outpoint you're spending.

> **Comments:**
> **username_0**: By saying client sometimes use 'SIGHASH_ANYONECANPAY' , Do you mean the <sig> part of the scriptSig is created using 'SIGHASH_ANYONECANPAY' ? If so, how different signature type 'SIGHASH_ANYONECANPAY' and 'SIGHASH_ALL' can unlock same scriptPubKey ?  
> **username_1**: @HaddarMacdasi The signature type is chosen by the signer at signing time. See https://bitcoin.org/en/developer-guide#signature-hash-types  
> **username_1**: @HaddarMacdasi Also, I noticed that my answer was wrong, so I fixed it.  

---

