Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ShiftKeyBroken on August 26, 2018, 11:08:24 AM



Title: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: ShiftKeyBroken on August 26, 2018, 11:08:24 AM
EDIT: please see my new post below, need more help.

hey,

so i used coinbin to lock some coins.

https://coinb.in/?verify=039c3708b1752102d4a7a041122d03f0e7e6e9d1d2e6ac45ed7171e94ad4bbc69771e032b81fa21aac#verify

the locked coins are here: https://www.blockchain.com/btc/address/3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW

i need to sign the tx with the private key of "1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD" (which i have) and broadcast it, but i keep getting errors every single time i try...

for example
 "16: mandatory-script-verify-flag-failed (Script failed an OP_EQUALVERIFY operation)"

i would like to have the bitcoins sent to the address 15Gsdt9kvaKHNbnzzv3QXm1W91r4haoTsV

so i need you guys to help me make a transaction that spends the inputs of 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW and sends it to 15Gsdt9kvaKHNbnzzv3QXm1W91r4haoTsV, so i can sign it with the privkey of 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD and hopefully there will not be an error.

to anyone who helps me do this, i will tip a thank you of 500 bits (0.0005 btc)

edit: coins are now unlocked... i was only testing the feature so i locked them for like 5 blocks.



Title: Re: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: TryNinja on August 26, 2018, 12:48:10 PM
Try the following:

Code:
0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc30100000000ffffffffc3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e28660100000000ffffffff01f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac00000000
You can verify it here (https://coinb.in/?verify=0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc30100000000ffffffffc3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e28660100000000ffffffff01f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac00000000#verify).

or

Code:
0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc3010000000000000000c3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e286601000000000000000001f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac9c370800
You can verify it here (https://coinb.in/?verify=0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc3010000000000000000c3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e286601000000000000000001f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac9c370800#verify).



Which makes sense, since you are trying to spend the inputs of 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW with the private key of 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD

While 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD does not hold ANY UTXO's. (And, correct me if i'm wrong, it can't be from a multisignature since it starts with a 1.., right?)

To spend 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW you'll need the privkey(s) of 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW, not 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD?
That's wrong. From the Coinbin's page, he needs the signature of the address 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD. In a Time Locked Address, you specify the public key that will be able to unlock the funds after a certain date.


Title: Re: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: ShiftKeyBroken on August 26, 2018, 01:32:32 PM
Try the following:

Code:
0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc30100000000ffffffffc3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e28660100000000ffffffff01f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac00000000
You can verify it here (https://coinb.in/?verify=0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc30100000000ffffffffc3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e28660100000000ffffffff01f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac00000000#verify).

or

Code:
0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc3010000000000000000c3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e286601000000000000000001f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac9c370800
You can verify it here (https://coinb.in/?verify=0100000002436a52b31e94aa231d3e3ac7cf0135d157ddbd780d45d2070e52a2d0e51f0cc3010000000000000000c3751a242e0cd9b99e018a60b6d29ad0503579e12ba2a784a9c333cb0c2e286601000000000000000001f0490200000000001976a9142ee102e325fd776a6058b3cb7b1aa49f6de6975488ac9c370800#verify).



Which makes sense, since you are trying to spend the inputs of 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW with the private key of 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD

While 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD does not hold ANY UTXO's. (And, correct me if i'm wrong, it can't be from a multisignature since it starts with a 1.., right?)

To spend 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW you'll need the privkey(s) of 3JsKiSRNmKv7ZgMjZWTDqLiuZ12TFdjAZW, not 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD?
That's wrong. From the Coinbin's page, he needs the signature of the address 1CvmfSJZUs9KTmu9wrREZVS3EAwTPXxCwD. In a Time Locked Address, you specify the public key that will be able to unlock the funds after a certain date.

thank you for the response.

so, i tried signing both of those transactions in bitcoin core first.

the first one gave me: TX decode failed (code -22)

the second one gave me a longer message containing  "complete": false, and "error": "Unable to sign input, invalid stack size (possibly missing key)"

i then tried to sign using coinbin

the signing worked fine, but both times when i tried to broadcast the signed message, i got the following error message - 16: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)

please help me :c

edit: a friend of mine told me that since it's not a standard script type, bitcoin core can't decode it, and i may have to build the scriptsig myself... can anyone elucidate?


Title: Re: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: OutCast3k on August 26, 2018, 08:56:41 PM
Its possible there was a bug in the transaction builder, I've since released an update and it seems to be working well.

Please try again with the latest version, if you are using the website to deal with it, please make sure you clear your cache.

Let me know how you get on.


Title: Re: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: TryNinja on August 26, 2018, 09:09:04 PM
Its possible there was a bug in the transaction builder, I've since released an update and it seems to be working well.

Please try again with the latest version, if you are using the website to deal with it, please make sure you clear your cache.

Let me know how you get on.
Looks like he already got it somehow (before your update).

https://www.blockchain.com/btc/tx/120b77eb1082c941c4a6662bb0e4f2169bbb84d4221d00cf1832dced0eee0649


Title: Re: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: ShiftKeyBroken on September 09, 2018, 06:07:57 AM
Its possible there was a bug in the transaction builder, I've since released an update and it seems to be working well.

Please try again with the latest version, if you are using the website to deal with it, please make sure you clear your cache.

Let me know how you get on.

thank you very much. all fixed.


Title: Re: i need help spending a timelocked (op_hold) transaction (bounty payment)
Post by: ShiftKeyBroken on October 20, 2018, 04:57:11 AM
hello guys,

so i did the big one (2.87 btc locked)
https://coinb.in/?verify=03d35608b1752102d4a7a041122d03f0e7e6e9d1d2e6ac45ed7171e94ad4bbc69771e032b81fa21aac#verify

when i try to send using the exact same method, then it doesn't work. it says locktime requirement not satisfied... even though the block has been mined. can someone help me?

need it sent to 3G8U8iQ5vrSEKHeFCtZ4SAB9iG9y2b6ak9