Bitcoin Forum

Bitcoin => Bitcoin Wallet for Android => Topic started by: forzendiablo on August 13, 2015, 01:09:40 AM



Title: what format the andoird BTC app sends wallets in?
Post by: forzendiablo on August 13, 2015, 01:09:40 AM
i have https://play.google.com/store/apps/details?id=de.schildbach.wallet
ive mailed ot myself the file called bitcoin-wallet-backup-DATE

no idea what type of file this is. i changed it to wallet.dat - nothing.
how do i use this file?


Title: Re: what format the andoird BTC app sends wallets in?
Post by: forzendiablo on August 13, 2015, 03:37:45 AM
foudn some replieso nline http://bitcoin.stackexchange.com/questions/29586/how-do-i-extract-my-private-keys-from-a-protobuf-wallet

is this really that complex ?!


Title: Re: what format the andoird BTC app sends wallets in?
Post by: tspacepilot on August 13, 2015, 04:30:18 AM
foudn some replieso nline http://bitcoin.stackexchange.com/questions/29586/how-do-i-extract-my-private-keys-from-a-protobuf-wallet

is this really that complex ?!

Basically, it is.  If you wanna see the full document describing it, it's here: https://github.com/schildbach/bitcoin-wallet/blob/master/wallet/README.recover

I actually used this (along with some other utilities) to extract private keys from an old schildbach wallet in order to use them to dig some CLAM coins they were funded with. 

@forzendiablo, PM me if you need help, I've done this several times now.


Title: Re: what format the andoird BTC app sends wallets in?
Post by: hexafraction on August 14, 2015, 05:24:01 PM
foudn some replieso nline http://bitcoin.stackexchange.com/questions/29586/how-do-i-extract-my-private-keys-from-a-protobuf-wallet

is this really that complex ?!

It's not that complex. Pasting the wallet.dat format is more of a pain. You're making the problem more complex by trying to import it to a program taking a different format. Just parse it using protobuf, or bitcoinj's protobuf wallet parser.


Title: Re: what format the andoird BTC app sends wallets in?
Post by: tspacepilot on August 14, 2015, 06:13:06 PM
foudn some replieso nline http://bitcoin.stackexchange.com/questions/29586/how-do-i-extract-my-private-keys-from-a-protobuf-wallet

is this really that complex ?!

It's not that complex. Pasting the wallet.dat format is more of a pain. You're making the problem more complex by trying to import it to a program taking a different format. Just parse it using protobuf, or bitcoinj's protobuf wallet parser.

If you don't write java, you might not know how to "just parse it with protobuf".  Here's the actual steps I used to extract private keys from a Schildbach wallet export:

1) decrypt the file using openssl aes-256 (as described in the linked stackoverflow)
2) dump the private keys using bitcoinj's wallet tool.  This is not actually described in the document, but you can do it like this:
$ ./wallet-tool dump --dump-privkeys WALLETFILE
3) convert the privatekeys to WIF, I used the "ku" program for this from the pycoin repo: https://github.com/richardkiss/pycoin
4) import your WIF into bitcoind


Title: Re: what format the andoird BTC app sends wallets in?
Post by: Andaloons on August 17, 2016, 12:31:02 PM
foudn some replieso nline http://bitcoin.stackexchange.com/questions/29586/how-do-i-extract-my-private-keys-from-a-protobuf-wallet

is this really that complex ?!

It's not that complex. Pasting the wallet.dat format is more of a pain. You're making the problem more complex by trying to import it to a program taking a different format. Just parse it using protobuf, or bitcoinj's protobuf wallet parser.

If you don't write java, you might not know how to "just parse it with protobuf".  Here's the actual steps I used to extract private keys from a Schildbach wallet export:

1) decrypt the file using openssl aes-256 (as described in the linked stackoverflow)
2) dump the private keys using bitcoinj's wallet tool.  This is not actually described in the document, but you can do it like this:
$ ./wallet-tool dump --dump-privkeys WALLETFILE
3) convert the privatekeys to WIF, I used the "ku" program for this from the pycoin repo: https://github.com/richardkiss/pycoin
4) import your WIF into bitcoind

Can you help me convert my ECKeys into WIF so I can move some Maidsafe coins?  I've tried a bunch of stuff (I'm not super technical) without any luck.  See my post here: https://bitcointalk.org/index.php?topic=889287.new#new

Thanks!


Title: Re: what format the andoird BTC app sends wallets in?
Post by: tspacepilot on August 17, 2016, 04:55:41 PM
foudn some replieso nline http://bitcoin.stackexchange.com/questions/29586/how-do-i-extract-my-private-keys-from-a-protobuf-wallet

is this really that complex ?!

It's not that complex. Pasting the wallet.dat format is more of a pain. You're making the problem more complex by trying to import it to a program taking a different format. Just parse it using protobuf, or bitcoinj's protobuf wallet parser.

If you don't write java, you might not know how to "just parse it with protobuf".  Here's the actual steps I used to extract private keys from a Schildbach wallet export:

1) decrypt the file using openssl aes-256 (as described in the linked stackoverflow)
2) dump the private keys using bitcoinj's wallet tool.  This is not actually described in the document, but you can do it like this:
$ ./wallet-tool dump --dump-privkeys WALLETFILE
3) convert the privatekeys to WIF, I used the "ku" program for this from the pycoin repo: https://github.com/richardkiss/pycoin
4) import your WIF into bitcoind

Can you help me convert my ECKeys into WIF so I can move some Maidsafe coins?  I've tried a bunch of stuff (I'm not super technical) without any luck.  See my post here: https://bitcointalk.org/index.php?topic=889287.new#new

Thanks!

I replied in that thread.  In the future, if you're just trying to get my attention, maybe PM instead of bumping a thread.