<p>Transaction do not need to be signed. They are if the locking script requires so, which is the most usual thing, but scripts redeemable without a signature can also be valid.</p>

<p>That being said, a transaction redeeming from a script that does not requires a signature could be highly insecure, since a peer (or a miner) that receives so can easily change the output.</p>

CC BY-SA 4.0
2019-12-24T17:11:55.690Z
2019-12-24T17:11:55.690Z
sr_gi
<p>I always thought a transaction can be accepted when all its inputs are correctly provided with their unlock script (which usually contains a signature) ——yes transactions may also be rejected with output > input etc but that’s not the topic </p>

<p>Does the transaction itself also need to be signed? If yes, when I am having inputs with different unlock scripts, which one should I use to sign the transaction?</p>

<transactions><signature><transaction-input><nbitcoin>
Do transactions need to be signed
gudako
# Do transactions need to be signed

(Asked by: username_0 on 2019-12-24)

I always thought a transaction can be accepted when all its inputs are correctly provided with their unlock script (which usually contains a signature) ——yes transactions may also be rejected with output > input etc but that’s not the topic

Does the transaction itself also need to be signed? If yes, when I am having inputs with different unlock scripts, which one should I use to sign the transaction?

**Tags:** transactions, signature, transaction-input, nbitcoin


---

## 1 answers

### Answer by username_1 on 2019-12-24. Score: 1 | Accepted answer

Transaction do not need to be signed. They are if the locking script requires so, which is the most usual thing, but scripts redeemable without a signature can also be valid.

That being said, a transaction redeeming from a script that does not requires a signature could be highly insecure, since a peer (or a miner) that receives so can easily change the output.


---

