Bitcoin Forum
April 23, 2024, 10:27:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Printing many private keys  (Read 994 times)
dillpicklechips (OP)
Hero Member
*****
Offline Offline

Activity: 994
Merit: 507


View Profile
May 12, 2013, 11:15:52 PM
 #1

What is the most reliable way to print a few hundred private keys along with the matching addresses. I would prefer to not use anything other than BitcoinQT (on linux)  and not have to do each one by hand?

edit, it doesn't have to printed of course just a text file or something with a hundred keys with matching addresses.
1713868053
Hero Member
*
Offline Offline

Posts: 1713868053

View Profile Personal Message (Offline)

Ignore
1713868053
Reply with quote  #2

1713868053
Report to moderator
1713868053
Hero Member
*
Offline Offline

Posts: 1713868053

View Profile Personal Message (Offline)

Ignore
1713868053
Reply with quote  #2

1713868053
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713868053
Hero Member
*
Offline Offline

Posts: 1713868053

View Profile Personal Message (Offline)

Ignore
1713868053
Reply with quote  #2

1713868053
Report to moderator
1713868053
Hero Member
*
Offline Offline

Posts: 1713868053

View Profile Personal Message (Offline)

Ignore
1713868053
Reply with quote  #2

1713868053
Report to moderator
1713868053
Hero Member
*
Offline Offline

Posts: 1713868053

View Profile Personal Message (Offline)

Ignore
1713868053
Reply with quote  #2

1713868053
Report to moderator
dillpicklechips (OP)
Hero Member
*****
Offline Offline

Activity: 994
Merit: 507


View Profile
May 12, 2013, 11:53:35 PM
 #2

Thanks. I'm looking for a method that uses Bitcoin qt.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 13, 2013, 12:06:36 AM
 #3

Thanks. I'm looking for a method that uses Bitcoin qt.
bitcoind getnewaddress
bitcoind dumpprivkey addressfrompreviouscall

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
nimda
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


0xFB0D8D1534241423


View Profile
May 13, 2013, 12:22:49 AM
 #4

Thanks. I'm looking for a method that uses Bitcoin qt.
bitcoind getnewaddress
bitcoind dumpprivkey addressfrompreviouscall

This. Right-click on the icon and choose "debug window" to try out these commands (drop 'bitcoind'), then write yourself a script to call bitcoind.
dillpicklechips (OP)
Hero Member
*****
Offline Offline

Activity: 994
Merit: 507


View Profile
May 13, 2013, 02:49:11 AM
 #5

Thanks. I'm looking for a method that uses Bitcoin qt.
bitcoind getnewaddress
bitcoind dumpprivkey addressfrompreviouscall

This. Right-click on the icon and choose "debug window" to try out these commands (drop 'bitcoind'), then write yourself a script to call bitcoind.

Is that script hard to make? I don't know scripting.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 13, 2013, 03:50:18 AM
 #6

This. Right-click on the icon and choose "debug window" to try out these commands (drop 'bitcoind'), then write yourself a script to call bitcoind.
you don't need bitcoin-qt's debug console. it's much easier to use the daemon itself. command line = easy piping.

Is that script hard to make? I don't know scripting.
you were talking about linux, so I assumed you would know a bit about shell scripts

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
dillpicklechips (OP)
Hero Member
*****
Offline Offline

Activity: 994
Merit: 507


View Profile
May 13, 2013, 04:08:08 AM
 #7

This. Right-click on the icon and choose "debug window" to try out these commands (drop 'bitcoind'), then write yourself a script to call bitcoind.
you don't need bitcoin-qt's debug console. it's much easier to use the daemon itself. command line = easy piping.

Is that script hard to make? I don't know scripting.
you were talking about linux, so I assumed you would know a bit about shell scripts
LOL, I just know enough to boot into a Live CD and load Bitcoin. I was looking to make some type of paper wallet to make sure I didn't lose some BTC I would like to back up. I was looking to make about 100 different addresses so that when I want to spend a tiny bit I don't have to import a whole BTC. I was a little worried about the js paper wallet that's online as I'd rather only trust Bitcoin and not another third party.

I'm thinking I'll just sit down and manually do dumpprivkey a hundred times and print that off.
Cyberdyne
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile
May 13, 2013, 04:36:01 AM
 #8

Please note that last time I checked, importprivkey is painfully slow and only really practical for 2 or 3 addresses. If you want to import 100+ you'll probably want to do it with something like Armory.

This point has further implications for alt currencies - There's no 'Amory' for alt currencies, making the bulk address part of liteaddress.org far less practical currently.
scintill
Sr. Member
****
Offline Offline

Activity: 448
Merit: 252


View Profile WWW
May 13, 2013, 04:41:07 AM
 #9

Please note that last time I checked, importprivkey is painfully slow and only really practical for 2 or 3 addresses. If you want to import 100+ you'll probably want to do it with something like Armory.

There is a rescan=false modifier that causes it to not rescan the blockchain, which is faster.  It looks like if you add 99 with that flag and then drop it for the last one, it will rescan for all at once, which should be much more reasonable.

1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
dillpicklechips (OP)
Hero Member
*****
Offline Offline

Activity: 994
Merit: 507


View Profile
May 13, 2013, 04:43:31 AM
 #10

Please note that last time I checked, importprivkey is painfully slow and only really practical for 2 or 3 addresses. If you want to import 100+ you'll probably want to do it with something like Armory.

This point has further implications for alt currencies - There's no 'Amory' for alt currencies, making the bulk address part of liteaddress.org far less practical currently.

When I want to spend a portion I'd probably just import it into blockchain.info.
Cyberdyne
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile
May 13, 2013, 04:48:34 AM
 #11

Please note that last time I checked, importprivkey is painfully slow and only really practical for 2 or 3 addresses. If you want to import 100+ you'll probably want to do it with something like Armory.

There is a rescan=false modifier that causes it to not rescan the blockchain, which is faster.

Thanks. Do you know what version that switch first appeared in?
scintill
Sr. Member
****
Offline Offline

Activity: 448
Merit: 252


View Profile WWW
May 13, 2013, 04:57:14 AM
 #12

Thanks. Do you know what version that switch first appeared in?

Here's the commit, 5 months ago: https://github.com/bitcoin/bitcoin/commit/44051af1a87a5fb8f4e88442c0eb64a1b4ecf2e6.  If I'm reading the tag list right, it looks like it didn't get released until 0.8.0.

1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
Cyberdyne
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile
May 13, 2013, 05:26:17 AM
 #13

Thanks. Do you know what version that switch first appeared in?

Here's the commit, 5 months ago: https://github.com/bitcoin/bitcoin/commit/44051af1a87a5fb8f4e88442c0eb64a1b4ecf2e6.  If I'm reading the tag list right, it looks like it didn't get released until 0.8.0.

Thanks, good to know, although I already use Armory for importing bitcoin addresses.

I was asking because I was hoping it would be also in Litecoin, but I guess not yet.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 13, 2013, 02:48:33 PM
 #14

LOL, I just know enough to boot into a Live CD and load Bitcoin. I was looking to make some type of paper wallet to make sure I didn't lose some BTC I would like to back up. I was looking to make about 100 different addresses so that when I want to spend a tiny bit I don't have to import a whole BTC. I was a little worried about the js paper wallet that's online as I'd rather only trust Bitcoin and not another third party.

I'm thinking I'll just sit down and manually do dumpprivkey a hundred times and print that off.
the js paper wallet generator can be used offline for maximum security.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
May 13, 2013, 09:53:26 PM
 #15

You could just make a brand new wallet and then use jackjack's pywallet to extract all the private and public keys. Backup your existing wallet.dat somewhere, close QT, delete the wallet.dat, run QT again, (it will make a new wallet.dat), encrypt it, close QT, then use pywallet to get all the keys. You should have a hundred new keys by doing this.

If you need more, you simply start QT with -keys 500, for example. (or -keypool, I forgot which.)

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!