2

Do all transactions require a siganture to be broadcasted and signed or is it possible to have a unsigned transaction be mined?

Could you not just use op codes to allow a transaction to be validated without a signature?

Such as making the scriptsig OP_true?

2 Answers 2

2

Transactions do not require a signature to be valid. Signatures are just a way of ensuring that the transaction is not going to be spent by anyone, but just by the person who holds the correct private key and therefore, is able to perform a valid signature.

Here you have an example of a transaction spent without signature. tx1 is a transaction spending from a P2PKH address and creating a P2SH output that requires an OP_TRUE to be spent. tx2 is a transaction spending from tx1 by just providing that OP_TRUE (51)

1

Do all transactions require a siganture to be broadcasted

No. Bitcoin does not require that valid transaction must have signature verification.

4
  • So why would you get an error like script not push only if you try to broadcast a unsigned transaction?
    – John
    Commented Mar 21, 2018 at 5:46
  • The fact is: some transactions do not contain signatures and still valid. This does not mean that arbitrary transaction without signature is valid
    – amaclin
    Commented Mar 21, 2018 at 5:58
  • Could you give me an example of a transaction like that which has been mined?
    – John
    Commented Mar 21, 2018 at 6:13
  • blockchain.info/tx/…
    – amaclin
    Commented Mar 21, 2018 at 6:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.