<p>Please explain how to sign input for raw transaction with privet key corresponding to 1st or 2nd public key in this script</p>
<p>&quot;asm&quot;: &quot;OP_IF 1694275749 OP_CHECKLOCKTIMEVERIFY OP_DROP 03cd18ace3a339fcd0039fd87d7a7a8377537cd9a9f2afa2a3e76f40e53112a535 OP_CHECKSIG OP_ELSE 1694277749 OP_CHECKLOCKTIMEVERIFY OP_DROP 036bb176ed8fe2e38949a63ff964eed3c5e79fd88ac011cad1eecf22702ea65d23 OP_CHECKSIG OP_ENDIF&quot;</p>
<p>hex 63051694275749b1752103cd18ace3a339fcd0039fd87d7a7a8377537cd9a9f2afa2a3e76f40e53112a535ac67051694277749b17521036bb176ed8fe2e38949a63ff964eed3c5e79fd88ac011cad1eecf22702ea65d23ac68</p>
<p>address were I locked some sats bc1qes2v6ts5ckxuz5mkwdeukcn62hkac05kf97gugc4jnu3kj3wg5as3nes34</p>
<p>txID 14290ef656c05f8e0c06b6d99a6ae72c77a8809b3a69dd5fb00f07ce9cee1637
vout 133</p>

CC BY-SA 4.0
2023-09-14T23:15:14.683Z
Does this answer your question? [What goes in to the message of a transaction signature?](https://bitcoin.stackexchange.com/questions/37093/what-goes-in-to-the-message-of-a-transaction-signature)
RedGrittyBrick
CC BY-SA 4.0
2023-09-14T23:19:40.833Z
Or maybe https://stackoverflow.com/questions/34451214/how-to-sign-and-verify-signature-with-ecdsa-in-python
RedGrittyBrick
<segregated-witness><signature><transaction-input><signrawtransaction><spending>
signing input for spend funds locked by this script
alnostru
# signing input for spend funds locked by this script

(Asked by: username_0 on 2023-09-14)

Please explain how to sign input for raw transaction with privet key corresponding to 1st or 2nd public key in this script

"asm": "OP\_IF 1694275749 OP\_CHECKLOCKTIMEVERIFY OP\_DROP 03cd18ace3a339fcd0039fd87d7a7a8377537cd9a9f2afa2a3e76f40e53112a535 OP\_CHECKSIG OP\_ELSE 1694277749 OP\_CHECKLOCKTIMEVERIFY OP\_DROP 036bb176ed8fe2e38949a63ff964eed3c5e79fd88ac011cad1eecf22702ea65d23 OP\_CHECKSIG OP\_ENDIF"

hex 63051694275749b1752103cd18ace3a339fcd0039fd87d7a7a8377537cd9a9f2afa2a3e76f40e53112a535ac67051694277749b17521036bb176ed8fe2e38949a63ff964eed3c5e79fd88ac011cad1eecf22702ea65d23ac68

address were I locked some sats bc1qes2v6ts5ckxuz5mkwdeukcn62hkac05kf97gugc4jnu3kj3wg5as3nes34

txID 14290ef656c05f8e0c06b6d99a6ae72c77a8809b3a69dd5fb00f07ce9cee1637
vout 133

**Tags:** segregated-witness, signature, transaction-input, signrawtransaction, spending

> **Comments:**
> **username_1**: Does this answer your question? [What goes in to the message of a transaction signature?](https://bitcoin.stackexchange.com/questions/37093/what-goes-in-to-the-message-of-a-transaction-signature)  
> **username_1**: Or maybe https://stackoverflow.com/questions/34451214/how-to-sign-and-verify-signature-with-ecdsa-in-python  

---

## 0 answers

