Skip to content

Instantly share code, notes, and snippets.

@F483
Created May 21, 2016 10:44
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 F483/202e06aa6c627a9b6dcda9156c28a6d7 to your computer and use it in GitHub Desktop.
Save F483/202e06aa6c627a9b6dcda9156c28a6d7 to your computer and use it in GitHub Desktop.
Recover first wif from hwif wallet.
#!python
# coding: utf-8
# requires btctxstore `pip install btctxstore`
import sys
from btctxstore import BtcTxStore
HELP_TEXT = """
Usage: {0} <wallet>
""".format(sys.argv[0])
if len(sys.argv) == 1:
print(HELP_TEXT)
else:
wallet = sys.argv[1]
btctxstore = BtcTxStore()
print(btctxstore.get_key(wallet))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment