Bitcoin Forum

Other => Beginners & Help => Topic started by: Subark on January 02, 2020, 08:55:47 PM



Title: ---
Post by: Subark on January 02, 2020, 08:55:47 PM
---


Title: Re: Timelock bitcoin method
Post by: figmentofmyass on January 02, 2020, 10:13:39 PM
https://bitcointalk.org/index.php?topic=2415595

Does this method to timelock Bitcoin still work?

yes. see post #3 in that thread for a good tutorial that uses Coinb.in:

You can use Coinbin to do that. I had one a few months ago and it's quite easy to create/spend your coins after the chosen period.

To create the Time Locked Address:
1. Go to Coinb.in (http://Coinb.in);
2. New -> Time Locked Address.
3. Enter your address public key (the one you require to sign the transaction and be able to spend the coins);
4. Enter the date-time or blockheight you want to release the coins.
5. Submit and save the Redeem Script (don't lose that or you won't be able to spend your coins in the future);
6. Send the coins you want to keep locked to the Address generated.

After the chosen period, you will be able to spend your coins.
1. Go to Coinb.in (http://Coinb.in);
2. New -> Transaction;
3. Paste your Redeem Script and click Load (it's going to show every input available to be spent);
4. Paste the address you want to send the coins to at the "Address" field and the amount in the "Amount" field. The remaining funds will be used as fee. E.g: If your address has 0.015BTC, you can put 0.014BTC in the
"Amount" field and the fee will be 0.001BTC (0.015 - 0.014);
5. Submit and copy the raw transaction;
6. Go to the "Sign" tab (at Coinb.in);
7. Paste the private key from the address you choose when creating the Time Locked Address.
8. Paste the raw transaction you just created.
9. Submit, copy the signed transaction and push it to the network (you can do it in the Broadcast tab).
10. Transaction sent!

address generation and signing is done client-side so Coinb.in never receives your private keys, but it's probably advisable to download it yourself and run it offline just to be safe.


Title: Re: Timelock bitcoin method
Post by: nc50lc on January 04, 2020, 03:22:42 AM
https://bitcointalk.org/index.php?topic=2415595
Does this method to timelock Bitcoin still work?
There's someone who tested it recently, had a few issue but in the end, it worked.
Some of the issues includes:
  • His Bech32 address (bc1) wasn't accepted by coinb.in.
  • Problem with the construction of the Raw Transaction.
  • Problem with signing.
  • Undisclosed timezone issue.

Here's the 1st thread: Is there a service that lets you lock your Bitcoin for 24-48 hours etc.? (https://bitcointalk.org/index.php?topic=5205451.0)
The second thread: Coin stuck in Coinb.in and there is no way of getting it out (https://bitcointalk.org/index.php?topic=5207231.0)

If you're planing to use it for high-value transaction, I don't recommend you to use this service.


Title: Re: Timelock bitcoin method
Post by: pooya87 on January 04, 2020, 05:47:43 AM
if you really feel the need for the timelock transaction types then the best solution is that you go to the github repository of your favorite wallet that you are already using and open a new issue requesting this feature to be added to the wallet so that you can use it there. otherwise using these web tools such as coinb.in will prove to be not only hard but prone to having bugs.


Title: Re: Timelock bitcoin method
Post by: Velkro on January 05, 2020, 01:34:29 AM
https://bitcointalk.org/index.php?topic=2415595

Does this method to timelock Bitcoin still work?
Keep in mind and everyone else dangers of time lock feature.
It could become obsolete before your time lock will end, rendering your BTC lost.
Fork could happen hard/soft and many more that we can't even predict.


Title: Re: Timelock bitcoin method
Post by: squatter on January 05, 2020, 07:08:35 AM
Keep in mind and everyone else dangers of time lock feature.
It could become obsolete before your time lock will end, rendering your BTC lost.
Fork could happen hard/soft and many more that we can't even predict.

That's theoretically possible but really unlikely. This is how Adam Back put it a few years ago (https://www.reddit.com/r/btc/comments/4lapi6/does_a_hardfork_destroy_time_locked_bitcoins/d3mt452/), and I think he's correct:

Quote
Obviously no fork with widespread approval will ever destroy any timelocked bitcoins.


Title: Re: Timelock bitcoin method
Post by: BrewMaster on January 05, 2020, 05:55:07 PM
It could become obsolete before your time lock will end, rendering your BTC lost.

you must be confusing timelock transactions with some sort of ticking time bomb :)
time locks are always a time after which you can spend the transaction output until eternity. there is no such time lock that would force you to spend the coins "before" a certain time or else lose it.


Title: Re: Timelock bitcoin method
Post by: secone on January 05, 2020, 07:02:55 PM
https://bitcointalk.org/index.php?topic=2415595

Does this method to timelock Bitcoin still work?
im never tried this feature but maybe this rezor documentation can help you
https://wiki.trezor.io/User_manual:Using_locktime

and dont forget todo this
Important Be sure to save your raw transaction data in a safe place, because anybody with access to it will be able to spend your coins.


Title: Re: Timelock bitcoin method
Post by: nc50lc on January 06, 2020, 03:16:57 AM
Important Be sure to save your raw transaction data in a safe place, because anybody with access to it will be able to spend your coins.
Whoa whoa, why is this written in trezor's official wiki?
The RAW transaction doesn't contain his private key, it can't be recovered from the signature or redeem script.
It's also impossible to change the output without changing the signature unless they sign it with SIGHASH flag like SIGHASH_NONE :-\
The only issue there is his privacy if he decided to share it.

Maybe the article meant: "spend it without your consent"?


Title: Re: Timelock bitcoin method
Post by: pooya87 on January 06, 2020, 06:42:08 AM
Important Be sure to save your raw transaction data in a safe place, because anybody with access to it will be able to spend your coins.
Whoa whoa, why is this written in trezor's official wiki?
The RAW transaction doesn't contain his private key, it can't be recovered from the signature or redeem script.
It's also impossible to change the output without changing the signature unless they sign it with SIGHASH flag like SIGHASH_NONE :-\
The only issue there is his privacy if he decided to share it.

Maybe the article meant: "spend it without your consent"?

it is just terrible choice of words.
it seems to me that the process explained in that link is simply signing a transaction and not broadcasting it. then it tells the user to store the raw "signed" transaction somewhere safe. and if someone could access THAT signed transaction they can broadcast it and it would be technically "spending" your coins but not changing anything about the transaction.

also note that this is not the time locked transaction that was discussed here before with OP codes such as OP_CLTV but it is simply setting the transaction locktime to a certain height. and all that does is that it prevents the said transaction to be mined until the block height is reached.


Title: Re: Timelock bitcoin method
Post by: nc50lc on January 12, 2020, 03:20:15 AM
From which article?
It must have something to do with future protocol changes.
Because somewhere in the future, bitcoin might stop standardizing transactions with timelock or OP_CLTV scripts.

If that's the case, it's still applicable.


Title: Re: Timelock bitcoin method
Post by: jonasBTC on January 03, 2021, 01:06:37 AM
https://bitcointalk.org/index.php?topic=2415595

Does this method to timelock Bitcoin still work?

yes. see post #3 in that thread for a good tutorial that uses Coinb.in:

You can use Coinbin to do that. I had one a few months ago and it's quite easy to create/spend your coins after the chosen period.

To create the Time Locked Address:
1. Go to Coinb.in (http://Coinb.in);
2. New -> Time Locked Address.
3. Enter your address public key (the one you require to sign the transaction and be able to spend the coins);
4. Enter the date-time or blockheight you want to release the coins.
5. Submit and save the Redeem Script (don't lose that or you won't be able to spend your coins in the future);
6. Send the coins you want to keep locked to the Address generated.

After the chosen period, you will be able to spend your coins.
1. Go to Coinb.in (http://Coinb.in);
2. New -> Transaction;
3. Paste your Redeem Script and click Load (it's going to show every input available to be spent);
4. Paste the address you want to send the coins to at the "Address" field and the amount in the "Amount" field. The remaining funds will be used as fee. E.g: If your address has 0.015BTC, you can put 0.014BTC in the
"Amount" field and the fee will be 0.001BTC (0.015 - 0.014);
5. Submit and copy the raw transaction;
6. Go to the "Sign" tab (at Coinb.in);
7. Paste the private key from the address you choose when creating the Time Locked Address.
8. Paste the raw transaction you just created.
9. Submit, copy the signed transaction and push it to the network (you can do it in the Broadcast tab).
10. Transaction sent!

address generation and signing is done client-side so Coinb.in never receives your private keys, but it's probably advisable to download it yourself and run it offline just to be safe.


Thank you for creating these instructions.   It wasn't a lot - but you allowed me to access a locked wallet I had kind of given up on.

Cheers