Skip to content

Instantly share code, notes, and snippets.

@matiu
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiu/3663f71080002321de9b to your computer and use it in GitHub Desktop.
Save matiu/3663f71080002321de9b to your computer and use it in GitHub Desktop.
bit wallet

Normal Operation

bit create myWallet 2-3
bit address
bit send <>

bit join <secret>
bit address
bit send <>

Export, with different access levels

full access

bit export -o wallet.dat

ro access

bit export -o wallet.dat --readonly

rw access (can create addresses, propose transactions, reject TX, but does not have signing keys)

bit export -o wallet.dat --nosigning

Import profile on other device, with giveng access level

bit import wallet.dat

Export / Import with a new given password

bit export -o output.dat -e
bit import output.dat 

Airgapped Operation

On the Air-gapped device

git genkey
git export -o wallet.dat --readonly  (or --nosigning)

Proxy machine

git join secret -i wallet.dat
git balance
git txproposals -o txproposals.dat

(export with filter)

git txproposals  e01e -o txprosals.dat

Back to air-gapped device

To recheck tx proposals:

git txproposals -i txproposals.dat

Sign them

git sign  -i txproposals.dat -o txproposals-signed.dat
# Or With filter
git sign  e01e -i txproposals.dat -o txproposals-signed.dat

Back to proxy machine

git sign -i txproposals-signed.dat

Password protection

encrypts everything by default

git create myWallet 2-3 -p password  
# Or (interactive mode)
git create myWallet 2-3 -p
Enter password:

allows readonly operations without password (encrypts xpriv, and leave readonlySigningKey unencrypted)

git create myWallet 2-3 -p --nopasswd:ro

allows readwrite operations without password (only encrypts xpriv)

git create myWallet 2-3 -p --nopasswd:rw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment