Bitcoin Forum
May 25, 2024, 05:31:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Personnal project - Delayed access Wallet  (Read 17 times)
yup.damon (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
May 21, 2024, 02:45:53 PM
Merited by dkbit98 (1)
 #1

Hello there,

I’m happy to introduce you to a side project I’ve developed this week.

Just like a lot of you, I’m keeping my seed in form of BIP39 mnemonic on metal plate.
I do not keep these plate with me but far away in order to avoid a 5$ attack.
That’s spacial distance.

I suggest to complete this approach by adding  “Temporal distance” to your security scheme.
This simply means when you want to access your fund you cannot before a given amount of time.

I believe a wallet mixing temporal distance and spacial distance is a great form of security. The durations I'm talking about are between few hours to few days.

I’ve realised an javascript implementation of this idea.
If you have NPM you can download it and use it as a CLI tool or a lib for your own project. (npm install -g wait4wallet)
https://www.npmjs.com/package/wait4wallet

Because of the cryptographic nature of this project I publish the code in order to allows anyone to audit the it
https://github.com/Yug-Damon/wait4wallet

How to use it

Building the delayed access wallet :
walletA -> walletB + secret

Code:
$ wait4wallet --duration <duration> --mnemonic “<mnemonic>”
// the given amount of time of computation
Mnemonic: [the new mnemonic] use it for funding of multisig
secret : [the secret] store it for later access

Accessing the delayed access wallet
walletA + secret -> walletB

Code:
$ wait4wallet —secret <secret> --mnemonic “<mnemonic>”
// the given amount of time of computation
Mnemonic: [the new mnemonic] use it for signing transaction

Under the hood

The implementation of this tool is dead simple.

For a given amount of time, the tool is looping on BIP85 derivation from an initial wallet, once the time limit is reached, the tool print out the last derivation and the number of iterations associated.

It's then always possible to access this wallet knowing the initial wallet and the iteration count with the required amount of time.

The secret is this number converted to base 36.


Thank you to have read me, I’ll be happy to answer questions and consider any improvement
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!