Skip to content

Commit eda4c3f

Browse files
committed
Merge pull request #1 from bpdavenport/master
Add README for examples directory
2 parents 7d5a685 + 8b28e22 commit eda4c3f

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

example/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
BitGoJS Examples
2+
=======
3+
4+
# Wallet Recovery Tool
5+
6+
The wallet recovery tool allows you to completely recover a BitGo BIP32 multi-sig wallet
7+
using only the user's 2 keys, without making any communication with BitGo. In the event
8+
BitGo ceases to operate, or becomes temporarily unavailable, the tool makes it possible
9+
to exert full control over the bitcoin in your wallet.
10+
11+
To use the tool, you will need the KeyCard from your BitGo wallet, along with your
12+
wallet passcode. If you provided
13+
your own backup public key at wallet creation time, you will also need the private half
14+
of the backup key. It may be necessary to scan the QR codes from the KeyCard
15+
with a mobile phone and email the resulting text to yourself.
16+
17+
Run the tool using 'node recoverwallet.js'
18+

example/recoverwallet.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ var collectInputs = function() {
8080
inputs.nosend = true;
8181
}
8282

83-
return getVariable("userKey", "Enter value from Box A: 'User Key':")()
84-
.then(getVariable("backupKey", "Enter value from Box B: 'Backup Key':"))
85-
.then(getVariable("bitgoKey", "Enter value from Box C: 'BitGo Public Key':"))
86-
.then(getVariable("password", "Enter your wallet passcode:"))
87-
.then(getVariable("destination", "Enter the bitcoin address to receive the funds:"));
83+
return getVariable("userKey", "Enter value from Box A: 'User Key': ")()
84+
.then(getVariable("backupKey", "Enter value from Box B: 'Backup Key': "))
85+
.then(getVariable("bitgoKey", "Enter value from Box C: 'BitGo Public Key': "))
86+
.then(getVariable("password", "Enter your wallet passcode: "))
87+
.then(getVariable("destination", "Enter the bitcoin address to receive the funds: "));
8888
};
8989

9090
//

0 commit comments

Comments
 (0)