Bitcoin Forum
May 04, 2024, 08:06:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to use lock_time function on a paper wallet?  (Read 540 times)
chsados (OP)
Hero Member
*****
Offline Offline

Activity: 662
Merit: 545



View Profile
November 11, 2013, 02:06:21 AM
 #1

I would like to create paper wallet for all my young siblings.  I will be putting BTC5 on each wallet.  However, I do not want them to be able to spend it until they are 21.

Is there any documentation on how to create these transactions and better yet how to apply them to a paper wallet?

The wiki is VERY lacking: https://en.bitcoin.it/wiki/NLockTime
1714809975
Hero Member
*
Offline Offline

Posts: 1714809975

View Profile Personal Message (Offline)

Ignore
1714809975
Reply with quote  #2

1714809975
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
escrow.ms
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
November 11, 2013, 02:13:16 AM
 #2

You can check some info about it here:
http://bitcoin.stackexchange.com/questions/5783/transactions-with-a-wait-time-using-nlocktime
chsados (OP)
Hero Member
*****
Offline Offline

Activity: 662
Merit: 545



View Profile
November 11, 2013, 02:19:06 AM
Last edit: November 11, 2013, 02:34:18 AM by chsados
 #3


Some more research I have just found:

From Satoshi: https://bitcointalk.org/index.php?topic=1786.msg22119#msg22119
https://bitcointalk.org/index.php?topic=131443.0
https://people.xiph.org/~greg/signdemo.txt

However, from the brief amount of time I have researched this - this comment from the second link is worrisome:

One thing that wasn't mentioned yet was that there's not currently a mechanism for replacement.  Locked transactions can be "introduced" into the blockchain fairly easily, and nodes will accept them and hold them in their memory pool (and thus drop conflicting transactions), but they won't forward otherwise-valid replacements, and only miners with custom rules will mine them for you.  If you want to replace a time-locked transaction, you're going to have to mine it yourself, or go find a miner to agree to help you.  Once a replacement is mined (or even just a regular transaction spending one of the inputs), all nodes holding the time-locked tx will see the conflict and drop the one in their memory pool.

So, if you can create the tx, you can get the "time-delay" aspect out of the network right now, but you have to work pretty hard if you use the "replacement" aspect of it.

P.S. - Congrats on being the most well-spoken, research-driven, single-post Newbie I've seen on these forums Smiley

And this makes it seem like it is not even supported what-so-ever

from Gavin himself....

Time-in-the-future transactions are non-standard (as of 0.8?  I can never remember when things happened...)

Why: because there is a fill-up-memory denial of service attack, and it really isn't reasonable to expect the entire network to store your timelocked transactions "forever".

Even in the past, the statement "unspendable by the sender because of replacement not being implemented" was not true.  Wait long enough and only a subset of the network will have the timelocked transaction (because new nodes, old nodes restarting, etc). Broadcast a double-spending version without a timelock and it will get mined fairly soon.


Seems like this feature is totally dead...wtf bitcoin!

Anyone knowledgeable in the subject feel free to offer your wisdom!
chsados (OP)
Hero Member
*****
Offline Offline

Activity: 662
Merit: 545



View Profile
November 11, 2013, 04:17:15 AM
Last edit: January 04, 2014, 10:11:53 PM by chsados
 #4

Ok, I shot a message or two to Gavin: seems like I had misunderstood the above quote.  

Here is his response on how one would accomplish OP


Sure, theoretically possible:

1) Create a paper wallet that you keep somewhere safe.
2) Create a nLockTime transaction that sends all of the funds to a second paper wallet that you give to them.
3) Give them the transaction (printed/QR code? on a USB stick?) and the second paper wallet, and tell them to broadcast the transaction after their 21'st birthday.  (or give somebody else the transaction and ask them to broadcast it).

If you don't trust yourself to keep that first paper wallet safe, you could burn it. Then those funds are locked until that one transaction that funds the second paper wallet.

I believe blockchain.info has a way of broadcasting a "raw transaction" -- no guarantee that blockchain.info will still be around when they turn 21, of course, but there should be SOME way of broadcasting that transaction.

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!