Bitcoin Forum
December 08, 2016, 04:20:09 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Command line script to create a public address from a private key  (Read 2360 times)
PrintCoins
Hero Member
*****
Offline Offline

Activity: 524



View Profile WWW
November 19, 2011, 06:14:16 PM
 #1

Does anyone have a command line script that can be used to create a public address from a private key. I don't want to need bitcoind installed.

Can be php, python, bash, or whatever I can use in linux.

Bitmessage.org: BM-2cT3oFVj68gugBD5JFvP3qmoBHWXJQ6ZkT
BTC Addr:18AA1hq6DVHn5WuK1fQhr5CdkqeG5Mj2ZL <--did you like my post? Send some encouragement here.
Print bitcoin bills: http://print.printcoins.com/
1481214009
Hero Member
*
Offline Offline

Posts: 1481214009

View Profile Personal Message (Offline)

Ignore
1481214009
Reply with quote  #2

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

Posts: 1481214009

View Profile Personal Message (Offline)

Ignore
1481214009
Reply with quote  #2

1481214009
Report to moderator
1481214009
Hero Member
*
Offline Offline

Posts: 1481214009

View Profile Personal Message (Offline)

Ignore
1481214009
Reply with quote  #2

1481214009
Report to moderator
1481214009
Hero Member
*
Offline Offline

Posts: 1481214009

View Profile Personal Message (Offline)

Ignore
1481214009
Reply with quote  #2

1481214009
Report to moderator
pc
Sr. Member
****
Offline Offline

Activity: 253


View Profile
November 19, 2011, 06:42:23 PM
 #2

The tool I've heard of before was called Bitcoin Off-The-Grid, though I think there may be others now.

There's also vanitygen, which I've found useful occasionally just running "vanitygen 1" to get a random private key with associated address, but that doesn't help you if you have a private key already.

Edit: Oh, and I can't believe I forgot pywallet. That may be what you're really looking for. Just as a disclaimer, the only one of these I've used personally is vanitygen; but I just haven't needed the others yet.
rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
November 19, 2011, 09:08:21 PM
 #3

https://bitcointalk.org/index.php?topic=50721.0

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
November 21, 2011, 08:14:32 PM
 #4

Does anyone have a command line script that can be used to create a public address from a private key. I don't want to need bitcoind installed.

Can be php, python, bash, or whatever I can use in linux.
Do you want to create public addresses for people to pay to? An alternative would be to load a large number of pre-generated addresses into your database, and use one each time someone needs to pay.

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2002



View Profile
May 30, 2012, 12:45:50 AM
 #5

Necro thread sorry ...

A python utility here:
 - http://bitcointalk.org/index.php?topic=84238.0

Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526


View Profile
May 30, 2012, 04:18:10 PM
 #6

There's also wallet-tool from bitcoinj (java but can be compiled to a native binary).
davout
Legendary
*
Offline Offline

Activity: 1358


1davout


View Profile WWW
May 30, 2012, 07:17:39 PM
 #7

In pure shell : https://bitcointalk.org/index.php?topic=11606.0

etotheipi
Legendary
*
expert
Offline Offline

Activity: 1428


Core Armory Developer


View Profile WWW
May 30, 2012, 10:10:29 PM
 #8

If you compile the CppBlockUtils for Armory, you can do a lot with a very simple python script:

Code:
>>> from armoryengine import *
>>> priv = hex_to_binary('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
>>> binAddr20 = convertKeyDataToAddress(priv)
>>> print hash160_to_addrStr(binAddr20)
'19YCGbqXnsaTNTinE7EzjYS2shhv7BSQw1'

It is a royal pain to compile the CppBlockUtils in Windows, but it is quite easy in Linux.  Just follow the instructions on my Building Armory from Source page.  Perhaps I will add a download to a precompiled CppBlockUtils.so/.dll/.pyd/.whatever for users that want to access armoryengine without compiling anything.

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
Pages: [1]
  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!