Bitcoin Forum
November 20, 2017, 04:31:46 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: How to Import Private Keys into Smartphone Digital Wallet (Bitcoin Wallet app)?  (Read 20271 times)
SonofBits
Newbie
*
Offline Offline

Activity: 27


On the Internet no one can tell you're a dog.


View Profile
May 16, 2013, 02:58:30 AM
 #1

Not sure this question belongs in this forum but seemed to be the closest area to what I need help on.

I have a smartphone android app I am using ("Bitcoin Wallet" by ANDREAS SCHILDBACH) and getting familiar with.

I have generated my own vanity Bitcoin wallet pub-priv key-pair on separate high-speed computing platform that I'd like to incorporate into my Smartphone's Digital Wallet. I am assuming that this app is using standard format wallet storage base 58. My problem is this app has no way that I can discern to directly import just a single new key-pair except that I can get the public key in by having it scan in a QR image that I can externally generate from cut-and-pate of key into a webutility. But the only apparent way to get the private key in is to import it with a new wallet file. I can't locate the directory in the android device to find the unencrypted "archive" version of the wallet that it says is in existence to hand edit in the private keys and import this way. I suspect I would have to root it to get to that data but don't want to void warranties or screw up the OS etc.  I can however find an encrypted version of it but of course can't easily edit in the private key and re-import the whole wallet again.

Any ideas on how to get a new key-pair into my smartphone wallet around the app without risking losing the existing keys the app auto-generated at first activation?

 Huh

BTC Donations here: 1TipMEpH5MiNchaZ2KEn6PAcJhvtuscp1
1511152306
Hero Member
*
Offline Offline

Posts: 1511152306

View Profile Personal Message (Offline)

Ignore
1511152306
Reply with quote  #2

1511152306
Report to moderator
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511152306
Hero Member
*
Offline Offline

Posts: 1511152306

View Profile Personal Message (Offline)

Ignore
1511152306
Reply with quote  #2

1511152306
Report to moderator
1511152306
Hero Member
*
Offline Offline

Posts: 1511152306

View Profile Personal Message (Offline)

Ignore
1511152306
Reply with quote  #2

1511152306
Report to moderator
1511152306
Hero Member
*
Offline Offline

Posts: 1511152306

View Profile Personal Message (Offline)

Ignore
1511152306
Reply with quote  #2

1511152306
Report to moderator
n4ru
Sr. Member
****
Offline Offline

Activity: 322



View Profile
July 14, 2013, 09:09:10 AM
 #2

BUMP.

I would like to know this.

ETH-Nova - Fully Automated OC/PL/P-state/Mining/Monitoring for Windows
ETH: 0x00972cd6a2c6786afbcc24ca592b8c86f33f747a / BTC: 1n4ruYy5QWbTDBbPEyBRWwj1Ni4U4Sz5P
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 14, 2013, 09:21:14 AM
 #3

It has a key import function. The file format is the same as the one from MultiBit (because both use the same engine), so all tutorials about how to import keys into MultiBit that explain the key import format should apply here too. Its a simple text file with one key per line, each line consists of the key and the date at which this key was created (so it knows how far back to rescan the blockchain)

it looks like this:
Code:
# KEEP YOUR PRIVATE KEYS SAFE! Anyone who can read this can spend your Bitcoins.
Kwmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2013-06-22T18:36:35Z
L1Sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2013-05-04T22:47:32Z
Kxwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2013-05-08T00:58:28Z

The time formatting with the "T" and the "Z" must be exactly as above or it won't work

Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
n4ru
Sr. Member
****
Offline Offline

Activity: 322



View Profile
July 14, 2013, 09:31:16 AM
 #4

It has a key import function. The file format is the same as the one from MultiBit (because both use the same engine), so all tutorials about how to import keys into MultiBit that explain the key import format should apply here too. It a simple text file with one key per line, each line consists of the key and the date at which this key was created (so it knows how far back to rescan the blockchain)

it looks like this:
Code:
# KEEP YOUR PRIVATE KEYS SAFE! Anyone who can read this can spend your Bitcoins.
Kwmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2013-06-22T18:36:35Z
L1Sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2013-05-04T22:47:32Z
Kxwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2013-05-08T00:58:28Z

The time formatting with the "T" and the "Z" must be exactly as above or it won't work
Where would I find this file? All I have is my backup file which is encrypted.

ETH-Nova - Fully Automated OC/PL/P-state/Mining/Monitoring for Windows
ETH: 0x00972cd6a2c6786afbcc24ca592b8c86f33f747a / BTC: 1n4ruYy5QWbTDBbPEyBRWwj1Ni4U4Sz5P
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 14, 2013, 09:46:32 AM
 #5

Where would I find this file? All I have is my backup file which is encrypted.

just create a new one with a text editor. Then save it to the SD-card, then use an android file explorer, navigate to the file, choose "open with" and select "Bitcoin Key Import" from the list.

[Edit: save it to the Download folder (no other folder!) and import it from within the wallet app (not with external explorer), otherwise it would ask for a password and won't work with unencrypted files]

After successful import delete the file from the SD card again so you don't have an unencrypted key lying around there where everybody can read it!

You can alternatively follow the other tutorials to import the key into a MultiBit wallet and then make an *encrypted* export from MultiBit and import that into the Android Wallet, so you don't need to move unencrpted files around on your Phone.

The wallet app stores its keys and its wallet in
/data/data/de.schildbach.wallet/files/
This folder is protected and owned by the wallet app, nobody can access it except the app itself, root and the system. The only official way to get keys in and out is the wallet key backup/restore function of the wallet app and the backup files are 100% compatible with the backup files from MultiBit.




Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
n4ru
Sr. Member
****
Offline Offline

Activity: 322



View Profile
July 14, 2013, 09:54:19 AM
 #6

Where would I find this file? All I have is my backup file which is encrypted.

just create a new one with a text editor. Then save it to the SD-card, then use an android file explorer, navigate to the file, choose "open with" and select "Bitcoin Key Import" from the list.

After successful import delete the file from the SD card again so you don't have an unencrypted key lying around there!

The wallet app stores its keys and its wallet in
/data/data/de.schildbach.wallet/files/
This folder is protected and owned by the wallet app, nobody can access it except the app itself, root and the system. The only official way to get keys in and out is the wallet key backup/restore function of the wallet app and the backup files are 100% compatible with the backup files from MultiBit.




Key Import wants a password.

ETH-Nova - Fully Automated OC/PL/P-state/Mining/Monitoring for Windows
ETH: 0x00972cd6a2c6786afbcc24ca592b8c86f33f747a / BTC: 1n4ruYy5QWbTDBbPEyBRWwj1Ni4U4Sz5P
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 14, 2013, 10:07:30 AM
 #7

Key Import wants a password.

Ok, then I did confuse it (I have moved around keys already between MultiBit and Android Wallet) or maybe they have changed something.

The alternative approach is this:

* (on your PC) start MultiBit
* ceate a new wallet
* import the file you just created (MultiBit will allow unencrypted import)
* export this wallet with password protecton (encrypted)

Note that it will export *all* keys from the active wallet, this is why I said create a new one if you don't want your entire MultiBit wallet available on Android.

* (on Android) import this password protected file into Android Wallet (move it to your SD-Card and open it or mail it to your gmail and open the attachment on Android [Edit: or save it to the Download folder and from within the wallet app use the import function])
* enter the same password you used during export from MultiBit and it should import into the Android wallet without problems.

You can also do it the other way arond and import the Android backup into a (new or existing) MultiBit wallet, so you can quickly react and move coins away if someone steals your Android device.

Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
July 14, 2013, 10:10:46 AM
 #8

I just tried and it works without password (just put nothing) if the file is unencrypted

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 14, 2013, 10:16:49 AM
 #9

I just tried and it works without password (just put nothing) if the file is unencrypted
Just tried it myself and my import button is greyed out if pasword is empty

Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
July 14, 2013, 10:26:35 AM
 #10

Ok, here is my configuration:
File 'bitcoin-private-keys' in SD/Download
Content of this file:
Quote
5HpHa.....fDuC
Yes, no date at all

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 14, 2013, 10:48:35 AM
 #11

Ok, here is my configuration:
File 'bitcoin-private-keys' in SD/Download
Content of this file:
Quote
5HpHa.....fDuC
Yes, no date at all
I can't get past the import dialog where it demands a password and otherwise would not enable the OK-button, no matter how the file is named, no matter which folder it is in, no matter whether it has dates behind the keys or not.

Maybe we should discuss this in the "Bitcoin Wallet for Android" sub-forum where the developers are, maybe its a bug. I see 2 and a half possible bugs here:

* the import function does not have a proper file chooser to select the backup file, this is extremely unconventional and confusing.
* the import asks for password on unencrypted files.
* one user reports that he can get past the import dialog without password while on other devices it is grayed out.

Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 14, 2013, 11:01:12 AM
 #12

Found it. There is some more hidden undocumented voodoo:

  • save the unencrypted text file into the sdcard/Download folder, this is the only folder it will recognize, the same folder where it also dumps its own export files.
  • don't open it with the external file explorer, this will only trigger the encrypted import, this will work only with encrypted files (bug?). Instead do it from within the wallet app, from the menu choose the key import function and then it will list a huge number of backup files to choose from and the one in the Download folder will also be there and here it will also allow unencrypted files.
  • after successful import delete this unencrypted file immediately so it won't lie around there in the Download folder where every other app can read it (alternatively use only encrypted backup files created with MultiBit)

Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
luv2drnkbr
Hero Member
*****
Offline Offline

Activity: 793



View Profile
July 16, 2013, 12:27:43 AM
 #13

You can also encrypt it via the method you used to decrypt the example one.  That's what I did, that way I didn't care if the file was read by a malicious app.  Make the text file, encrypt with openssl, stick in folder, easy.  The annoying part was having to reset the blockchain, and also going on blockchain.info to find the first use of the address so I could make sure I had a time before that date to put in the file.

jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
July 16, 2013, 08:14:11 AM
 #14

The imported file doesn't need a time

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
prof7bit
Hero Member
*****
Offline Offline

Activity: 672



View Profile WWW
July 16, 2013, 09:49:37 AM
 #15

The imported file doesn't need a time
But it makes things easier, with the date the app knows automatically how far back to resync. Btw: old versions of bitcoinj did not accept backup files with missing date at all (at least this was the case when using it with MultiBit, haven't tried keys without dates with Android Wallet yet).

Old Bitcoins recycling and disposal: 1N7ZcHoe77JncRYAg27RVqJZbrjqUQ77WE
Blockchain.info -> Multibit converter (and much more) https://github.com/prof7bit/wallet-key-tool
apetersson
Hero Member
*****
Offline Offline

Activity: 666



View Profile
July 16, 2013, 12:29:15 PM
 #16

you should try our beta build of the Mycelium Bitcoin Wallet. The source is available at https://github.com/mycelium-com/wallet

importing private keys from vanity andresses, keeping address + private key seperate are core features. please note the software is currently in open beta and changes quite often. as long as you keep your paper backup everything should be alright, though.
Gyrsur
Legendary
*
Offline Offline

Activity: 1820


#BEL+++


View Profile WWW
November 13, 2013, 01:31:18 PM
 #17

how about to import BIP38 encrypted private keys?
dduane
Jr. Member
*
Offline Offline

Activity: 47



View Profile WWW
September 12, 2014, 08:08:43 PM
 #18

I had the same problem, and was able to import the file from my phone that was saved by the android app into MultiBit.

I had to rename the file to end in .key in order for Multibit to allow the import, but once I did that, it accepted the encryption password
and allowed me to manage my wallet from Multibit on my windows 8 machine.
hyudien
Hero Member
*****
Online Online

Activity: 560


campaign manager with low fee


View Profile
March 06, 2017, 01:35:34 AM
 #19

I use electrum wallet on my pc. So, what is app compatible with that wallet on my Android app? Then what must I do to import my private key? (Export key was done)

            ▄▄▄███████████▄▄▄
        ▄▄█████████████████████▄
      ▄██████████████████████████▄
    ▄█████████████████▀▀▀██████████
   █████████████████       ███████
  ██████▀▀▀████████   ███   ██████   █
 █████       ██████   ███   ██████   ██
 ████   ███   █████   ███   █████   ███
█████   ███   █████   ███    ████   ████
█████   ███   █████   ████   ████   ████
████    ███   ████   █████   ███   █████
████   ████   ████   █████   ███   █████
▀███   ████   ████   ██████       █████
 ███   █████   ███   ████████▄▄▄███████
  █   ██████   ███   █████████████████
      ███████       █████████████████
     ██████████▄▄▄█████████████████▀
     ▀███████████████████████████▀
       ▀▀██████████████████████▀
           ▀▀▀████████████▀▀▀



Worldcore
▄▄
██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
▀▀  ██
    ██
    ▄▄
    ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ▀▀
██   
bL4nkcode
Hero Member
*****
Offline Offline

Activity: 644


Need sig.design ➜https://goo.gl/jhz4f8


View Profile WWW
March 09, 2017, 02:50:26 PM
 #20

I use electrum wallet on my pc. So, what is app compatible with that wallet on my Android app? Then what must I do to import my private key? (Export key was done)
Replying old thread like this that's not updated anymore is prohibited by the forum I guess, much better if you make a new thread regarding to your question. But to answer your question Mycelium android wallet will do, as long as you have private keys of that wallet and yes importing it on mycelium wallet takes less than a minute.

Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!