Bitcoin Forum
November 11, 2024, 08:51:32 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Coin stuck in Coinb.in and there is no way of getting it out  (Read 127 times)
Get-Paid.com (OP)
Sr. Member
****
Offline Offline

Activity: 1877
Merit: 389



View Profile
December 05, 2019, 04:01:33 PM
Merited by LoyceV (1)
 #1

I've tested a feature called Time Lock in Coinb.in - and I cannot release the Bitcoin from there.
I have followed the instructions to lock the Bitcoin.

I received a redeem script from Coinb.in but whenever I go to Coinb.in and then click on New --> Transaction - and then cilck on Load to load the redeem script - the input is not loaded automatically, so I enter it manually and enter the output manually, and when I click on Submit I get this error:

One or more input or output is invalid

Is it safe to provide you the Redeem Script here so you could test it as well and see for yourself it's not working?

Any help would be appreciated.

💰 Our Top Bitcoin Faucet --> https://freebitcoin.io 💰
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
December 05, 2019, 04:06:37 PM
 #2

It's probanly more helpful to give us the output you were trying to spend rather than the redeem script (but I'm not entirely sure how timelovked transactions work, I assume the data is in the last output though). The output is the thing already stored in the blockchain.
Get-Paid.com (OP)
Sr. Member
****
Offline Offline

Activity: 1877
Merit: 389



View Profile
December 05, 2019, 04:10:33 PM
Merited by LoyceV (1)
 #3

It's probanly more helpful to give us the output you were trying to spend rather than the redeem script (but I'm not entirely sure how timelovked transactions work, I assume the data is in the last output though).

I click on New --> Transaction. Then I enter the Redeem Script under "Address, WIF key or Redeem Script" and then I enter:

Output:

Address = bc1qmjq5zmnhtvt2j7tk4yxt3g75s6sdmnskw2fjr6
Amount = 0.00049

Input:

Transaction ID = ac37df3cc5d0001a646a33c0d86e50222f8de4dea7d17f8b1a40aeb1e2425544
N = 0
Script = I enter the very same Redeem Script that I used under "Address, WIF key or Redeem Script" in the page.
Amount = 0.0005

I click Submit. Then I get:

One or more input or output is invalid

💰 Our Top Bitcoin Faucet --> https://freebitcoin.io 💰
pooya87
Legendary
*
Offline Offline

Activity: 3626
Merit: 11029


Crypto Swap Exchange


View Profile
December 05, 2019, 05:05:53 PM
Merited by LoyceV (1), hugeblack (1)
 #4

Is it safe to provide you the Redeem Script here so you could test it as well and see for yourself it's not working?

yes, you will be revealing your redeem script as soon as you broadcast your signed transaction so there is no sensitive information in it to be worried about. just make sure what you are sharing is indeed your redeem script!

it should look like the example i posted in your other topic. let me break it down:
Code:
046869df5db175210387cbc334a467fb592bd6e467ea21d34b7226be38841469ef83424d8be2b76e5aac

04 <- it should start with a number like this (smaller than 5)
6869df5d <- since it was 0x04 the following 4 bytes are your locktime. yours can be a different value.
b175 <- this must be the same for you too (OP_CLV and OP_DROP)
2103 <- this is either 2103 or 2102 (length + public key first byte). highly unlikely: it can be 4104
<87cb...6e5a> <- this is definitely different since this is YOUR public key. length = 32 (the highly unlikely case is 64)
ac <- this must be the same.

if your redeem script doesn't follow this pattern then you are pasting the wrong thing here...

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Get-Paid.com (OP)
Sr. Member
****
Offline Offline

Activity: 1877
Merit: 389



View Profile
December 05, 2019, 05:23:04 PM
Last edit: December 05, 2019, 06:41:12 PM by Get-Paid.com
 #5

Thanks Pooya, the Redeem Script is:

Code:
04a4d8e85db1752102aa0e1eb0fbebf524c91d5b8498d945122a5e8929884d5da462a031b5861e8e65ac

💰 Our Top Bitcoin Faucet --> https://freebitcoin.io 💰
pooya87
Legendary
*
Offline Offline

Activity: 3626
Merit: 11029


Crypto Swap Exchange


View Profile
December 05, 2019, 07:08:13 PM
Merited by ABCbits (2), nc50lc (2), LoyceV (1), hugeblack (1)
 #6

it seems like the problem is in coinb.in website not supporting bech32 addresses. use a legacy address format (base58, ie. an address starting with 1 or 3) and all should be fine!


...and in case you were interested here is the workaround Tongue
- build the transaction with any other address as its "output"
- find the script corresponding to that address. eg. if you used the same address as your input (3C1cDDt5SHyxMdiphm21Vpz1kgtb5fUwLJ) the script would be
Code:
17-a9-14-71355df1f50c1246e5bd26c2d9559d553277c9d8-87
which is (size) OP_HASH160 <hash160> OP_EQUAL

- replace that with (size) OP_0 <hash160>
for bc1qmjq5zmnhtvt2j7tk4yxt3g75s6sdmnskw2fjr6 hash will be dc81416e775b16a97976a90cb8a3d486a0ddce16 (https://slowli.github.io/bech32-buffer/) and since the size is 1+1+(160/8) = 22 bytes the final script is:
Code:
16-00-14-dc81416e775b16a97976a90cb8a3d486a0ddce16

ps. try not to do this with large amounts of bitcoin, it is easy to make mistakes.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Get-Paid.com (OP)
Sr. Member
****
Offline Offline

Activity: 1877
Merit: 389



View Profile
December 05, 2019, 07:43:46 PM
 #7

it seems like the problem is in coinb.in website not supporting bech32 addresses. use a legacy address format (base58, ie. an address starting with 1 or 3) and all should be fine!

Pooya - you're a life saver.
Thanks.

💰 Our Top Bitcoin Faucet --> https://freebitcoin.io 💰
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!