Bitcoin Forum
May 03, 2024, 10:57:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: SOLVED: lock a wallet until a future block will be found  (Read 824 times)
saudacoin (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 24, 2014, 12:23:04 PM
Last edit: April 25, 2014, 10:19:36 PM by saudacoin
 #1

Hi,
I would like to know if there is a way to lock a wallet until a certain date or a block heigh will be reached. Huh

For example  I would like to donate to my niece a wallet with some BTCs in but I would like she won't be able to open it before she's 18 years old.

Calculate block number to a certain time should not be an issue taking 10 mins as average time interval. But what about forcing the locked status?
To be feasible,  the method should avoid any future intervention by me so that she will be able to open it anyway even if I would be ( knock on wood Tongue ) RIP.

Any idea about ?

Tnx

You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714777056
Hero Member
*
Offline Offline

Posts: 1714777056

View Profile Personal Message (Offline)

Ignore
1714777056
Reply with quote  #2

1714777056
Report to moderator
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
April 24, 2014, 01:38:36 PM
 #2

Hi,
I would like to know if there is a way to lock a wallet untill a certain date or a block heigh will be reached. Huh

For example  I would like to donate to my niece a wallet with some BTCs in but I would like she won't be able to open it before she's 18 years old.

Calculate block number to a certain time should not be an issue taking 10 mins as average time interval. But what about forcing the locked status?
To be feasible,  the method should avoid any future intervention by me so that she will be able to open it anyway even if I would be ( knock on wood Tongue ) RIP.

Any idea about ?

Tnx


Well probably the same way it is done traditionally. Someone else stores the private key for her, you get the public key.

Im not really here, its just your imagination.
Chrithu
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
April 24, 2014, 01:50:08 PM
 #3

Well probably the same way it is done traditionally. Someone else stores the private key for her, you get the public key.

Yeah I think going via the private key or wallet passphrase would be the way to go. If you don't want a third party involved, maybe use a program that holds the passphrase to unlock the wallet and only gives it away after the given date.

I don't think any wallet software offers such a funtion by default.

saudacoin (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 24, 2014, 02:12:50 PM
 #4

If you don't want a third party involved, maybe use a program that holds the passphrase to unlock the wallet and only gives it away after the given date.

could you give me some example?? I googled a bit  but I was not able to find one software like that.

 
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
April 24, 2014, 02:39:54 PM
 #5

If you don't want a third party involved, maybe use a program that holds the passphrase to unlock the wallet and only gives it away after the given date.

could you give me some example?? I googled a bit  but I was not able to find one software like that.

I dont think there is one yet, but you can use any software that shows you the private key directly. I assume you will not be able to remember that.

Im not really here, its just your imagination.
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
April 24, 2014, 04:19:26 PM
 #6

You can create a transaction that cannot be executed until after a specific time or block.

1. Create a transaction that sends bitcoins to an address owned by your niece and include a lock_time value.
2. Give the signed transaction to your niece to hold.
3. After the lock expires, your niece can submit the transaction and it will send the bitcoins to her. If she submits the transaction early, it will be rejected.

Look here: https://en.bitcoin.it/wiki/Protocol_specification#tx and https://en.bitcoin.it/wiki/NLockTime

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
saudacoin (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 24, 2014, 09:06:24 PM
 #7

You can create a transaction that cannot be executed until after a specific time or block.
Look here: https://en.bitcoin.it/wiki/Protocol_specification#tx and https://en.bitcoin.it/wiki/NLockTime
Grin Grin Grin
thank you !!   
that is  exactly what I was looking for . 
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4615



View Profile
April 24, 2014, 09:16:40 PM
 #8

You can create a transaction that cannot be executed until after a specific time or block.
Look here: https://en.bitcoin.it/wiki/Protocol_specification#tx and https://en.bitcoin.it/wiki/NLockTime
Grin Grin Grin
thank you !!   
that is  exactly what I was looking for . 

You'll have to be careful not to spend the outputs that are used in the LockTime transaction, otherwise that transaction will be invalid when your niece goes to claim it.

She will have to store the transaction somewhere that she can find it when the correct block comes along. If she can't find the transaction, she won't be able to broadcast it.

You'll also both want to keep up with any news about bitcoin in the meantime, since (depending on how long a time period you're talking about) there could theoretically be significant changes to the protocol that render the transaction invalid (in which case you'd need to issue a new transaction).
saudacoin (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 25, 2014, 10:18:00 PM
 #9

@DannyHamilton  ,  the "niece"  was just a sample
anyway tnx for the additional info ...  expecially for last one  which I did not consider and  actually the only one that could  be an issue seeing that I cannot control it without a future intervention.
 
DiamondCardz
Legendary
*
Offline Offline

Activity: 1134
Merit: 1112



View Profile WWW
April 26, 2014, 07:17:09 PM
 #10

You can also look into using https://lbaat.net as LBAAT allows you to store your Bitcoins until a certain point in the future.

BA Computer Science, University of Oxford
Dissertation was about threat modelling on distributed ledgers.
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!