Bitcoin Forum
August 30, 2024, 04:35:50 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to generate public address from private key?  (Read 629 times)
Entall (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 14, 2013, 09:28:20 PM
 #1

Title says it all!

Cheers!
scintill
Sr. Member
****
Offline Offline

Activity: 448
Merit: 254


View Profile WWW
April 14, 2013, 09:46:31 PM
 #2

https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses#How_to_create_Bitcoin_Address

I also have some PHP code here, if that helps: https://gist.github.com/scintill/3549107  If you use the compressed version (shown in my code), it saves a few bytes in the blockchain when the balance in the address is spent, although not all clients can import the private key (for example, I just learned Electrum doesn't.)  If you know Javascript, the code at bitaddress.org might help too.  Casascius' utility (below) does it in C#.

When you get something working, I suggest using something like bitaddress.org or Casascius' Bitcoin Address Utility to ensure your keypairs are valid.

1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
Entall (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 14, 2013, 09:49:18 PM
 #3

https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses#How_to_create_Bitcoin_Address

I also have some PHP code here, if that helps: https://gist.github.com/scintill/3549107  If you use the compressed version (shown in my code), it saves a few bytes in the blockchain when the balance in the address is spent, although not all clients can import the private key (for example, I just learned Electrum doesn't.)  If you know Javascript, the code at bitaddress.org might help too.  Casascius' utility (below) does it in C#.

When you get something working, I suggest using something like bitaddress.org or Casascius' Bitcoin Address Utility to ensure your keypairs are valid.

Thanks!

I'll make sure to check all that stuff out!
minzie
Member
**
Offline Offline

Activity: 110
Merit: 10



View Profile WWW
April 14, 2013, 10:06:12 PM
 #4

Double thanks. That was timely and helpful for me also.

Professional Freelance Web Apps Engineer ° Portfolio °  ModoBot Automated Trading Platform ° BitThingy ° My Github  ° Skype: cclites_1
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!