Bitcoin Forum
May 07, 2024, 09:13:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Command line script to create a public address from a private key  (Read 3031 times)
PrintCoins (OP)
Hero Member
*****
Offline Offline

Activity: 533
Merit: 501


View Profile
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.

1715073217
Hero Member
*
Offline Offline

Posts: 1715073217

View Profile Personal Message (Offline)

Ignore
1715073217
Reply with quote  #2

1715073217
Report to moderator
1715073217
Hero Member
*
Offline Offline

Posts: 1715073217

View Profile Personal Message (Offline)

Ignore
1715073217
Reply with quote  #2

1715073217
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


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: 448
Merit: 250


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
Merit: 101

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: 2506
Merit: 1010


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

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


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: 1372
Merit: 1007


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
Merit: 1093


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:  

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