{"action":"opened","issue":{"url":"https://api.github.com/repos/blockcypher/bcwallet/issues/37","repository_url":"https://api.github.com/repos/blockcypher/bcwallet","labels_url":"https://api.github.com/repos/blockcypher/bcwallet/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/blockcypher/bcwallet/issues/37/comments","events_url":"https://api.github.com/repos/blockcypher/bcwallet/issues/37/events","html_url":"https://github.com/blockcypher/bcwallet/issues/37","id":142872039,"number":37,"title":"v1.2.6 crash when dumping addresses only","user":{"login":"dooglus","id":573356,"avatar_url":"https://avatars.githubusercontent.com/u/573356?v=3","gravatar_id":"","url":"https://api.github.com/users/dooglus","html_url":"https://github.com/dooglus","followers_url":"https://api.github.com/users/dooglus/followers","following_url":"https://api.github.com/users/dooglus/following{/other_user}","gists_url":"https://api.github.com/users/dooglus/gists{/gist_id}","starred_url":"https://api.github.com/users/dooglus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dooglus/subscriptions","organizations_url":"https://api.github.com/users/dooglus/orgs","repos_url":"https://api.github.com/users/dooglus/repos","events_url":"https://api.github.com/users/dooglus/events{/privacy}","received_events_url":"https://api.github.com/users/dooglus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T06:13:10Z","updated_at":"2016-03-23T06:13:10Z","closed_at":null,"body":"I just heard about bcwallet, was trying it out using an xpub of mine and got it to crash:\r\n\r\n    $ bcwallet --wallet=xpub$xpub\r\n\r\n    Welcome to bcwallet!\r\n\r\n    Here's what makes bcwallet unique:\r\n      -Multi-Currency: Supports Bitcoin (and Testnet), Litecoin, Dogecoin, and BlockCypher Testnet.\r\n      -Nearly Trustless: Keys and signatures are generated locally for trustless use.\r\n      -No Key Pool: The seed is not stored locally, the app is booted with the user supplying the master key so the filesystem is never used.\r\n      -Hard to Mess Up: As long as you don't lose or share your master private key, everything else is simple.\r\n      -Accurate Transaction Fees: Smart calculation lets user decide how long until their transaction will make it into a block.\r\n      -Airgap Usage: Can be booted with the public key in watch-only mode, which is great for fetching transaction info to sign offline with a more secure machine.\r\n      -Very Few LoC: Blockchain heavy lifting powered by BlockCypher, which leads to massive reduction in client-side code used for ease of auditing.\r\n\r\n    You've opened your HD wallet in PUBLIC key mode, so you CANNOT sign transactions.\r\n    To sign transactions, open your HD wallet in private key mode like this:\r\n\r\n        $ bcwallet --wallet=xprv...\r\n        \r\n    ----------------------------------------------------------------------\r\n\r\n    Balance: 67,664,636.07 bits\r\n    Transactions: 6\r\n\r\n    More info:\r\n    https://live.blockcypher.com/btc/xpub/xpub6C9XEefBuBNfJyu9McZaF4QFVuNGzR6ymtzJpkHRNrWMSR6vFoRw9gNRY7WUqXSv1uGxw1EdF2uUT12hxJHFDNy7wgDCeds5X9kZj11CAzu/?subchain-indices=0-1\r\n\r\n    ----------------------------------------------------------------------\r\n\r\n    What do you want to do?:\r\n      1: Show balance and transactions\r\n      2: Show new receiving addresses\r\n      3: Send funds (more options here)\r\n      0: Dump addresses (advanced users only)\r\n      \r\n      q: Quit bcwallet\r\n      \r\n    ฿ [1]: 0\r\n    Which addresses do you want?\r\n      1: Active - have funds to spend\r\n      2: Spent - no funds to spend (because they have been spent)\r\n      3: Unused - no funds to spend (because the address has never been used)\r\n      0: All (works offline) - regardless of whether they have funds to spend (super advanced users only)\r\n      \r\n      b: Go Back\r\n      \r\n    ฿ [1]: 1\r\n    Displaying Public Addresses Only\r\n    For Private Keys, please open bcwallet with your Master Private Key:\r\n\r\n        $ bcwallet --wallet=xprv123...\r\n        \r\n\r\n    Receiving Address Chain - m/0/k:\r\n    path (address/wif)\r\n\r\n    Bad Robot!\r\n    Quitting on Unexpected Error:\r\n    'wif'\r\n      'wif'\r\n\r\n    Here are the details to share with the developer for a bug report: \r\n\r\n      Traceback (most recent call last):\r\n        File \"/usr/local/lib/python2.7/dist-packages/bcwallet/bcwallet.py\", line 1366, in invoke_cli\r\n          cli()\r\n        File \"/usr/local/lib/python2.7/dist-packages/bcwallet/bcwallet.py\", line 1266, in cli\r\n          return wallet_home(wallet_obj)\r\n        File \"/usr/local/lib/python2.7/dist-packages/bcwallet/bcwallet.py\", line 1173, in wallet_home\r\n          dump_private_keys_or_addrs_chooser(wallet_obj=wallet_obj)\r\n        File \"/usr/local/lib/python2.7/dist-packages/bcwallet/bcwallet.py\", line 1028, in dump_private_keys_or_addrs_chooser\r\n          return dump_selected_keys_or_addrs(wallet_obj=wallet_obj, zero_balance=False, used=True)\r\n        File \"/usr/local/lib/python2.7/dist-packages/bcwallet/bcwallet.py\", line 983, in dump_selected_keys_or_addrs\r\n          wif=address_obj['wif'],\r\n      KeyError: 'wif'\r\n      \r\n\r\n    User private keys intentionally never saved.\r\n    Please do not lose your seed, bcwallet intentionally has no backup!\r\n\r\n    $ "}}