Bitcoin Forum
June 21, 2024, 04:32:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What's the easiest way to create private/public key pair PROGRAMMATICALLY  (Read 1724 times)
konstantin718 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 13, 2013, 06:18:34 AM
 #1

Hi folks,

I've been reading up on Bitcoin, and I'd like to know if anyone has any recommendations for trusted and widely-used PHP libraries that can create valid private/public ECDSA key pairs?
Or any linux command line tools (bitcoind??)? Or what's the proper steps to take to create such a pair of keys in pseudo-code? I've read https://en.bitcoin.it/wiki/Private_key and other pages, but nothing explains how to actually create these key pairs?

Thank you,
Konstantin
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
December 13, 2013, 06:22:48 AM
 #2

Use php to connect to bitcoind, and use the rpc command to create the key pair.
wumpus
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1022

No Maps for These Territories


View Profile
December 13, 2013, 06:25:23 AM
 #3

This can be done from PHP itself:
https://github.com/zamgo/PHPCoinAddress

Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1007


1davout


View Profile WWW
December 13, 2013, 06:26:55 AM
 #4

Use php to connect to bitcoind, and use the rpc command to create the key pair.

Cute

konstantin718 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 13, 2013, 06:33:38 AM
 #5

Use php to connect to bitcoind, and use the rpc command to create the key pair.

Cute

Nah it is sexy and easy Wink

I sense sarcasm. I'm just trying to learn the proper way.  Thanks!
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1007


1davout


View Profile WWW
December 13, 2013, 06:36:15 AM
 #6

I sense sarcasm. I'm just trying to learn the proper way.  Thanks!

There is no absolute "proper way", it all depends on what you want to do with it and how you want to use it.
The "cute" means there are much, much lighter ways to achieve this, again, depending on your intended usage.

konstantin718 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 13, 2013, 06:46:15 AM
 #7

I'm trying to get a solid understanding of the protocol and will be reading the original bitcoin paper by Satoshi tomorrow, as well as diving into the wiki at https://en.bitcoin.it/wiki/.

What I'm interested in doing first is just cloning something like bitaddress.org just as a challenge to myself and to also get familiar with all the different aspects of bitcoin.
I'm most specifically interested in how mixing services work and how BlockChain's taint analysis works.

Thanks again wumpus, davout, and gweedo for the suggestions.  Really appreciate it!

gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
December 13, 2013, 06:52:20 AM
 #8

I'm most specifically interested in how mixing services work and how BlockChain's taint analysis works.

Mixing is kinda getting turned upside down, so basically a mixing service is to bring a disconnect between address, but that isn't really that private anymore. Plus they can steal your funds. A new mixing type has been created, which is coinjoin, and it aids more on that you are confusing people, and making it so mixers can't steal your funds. https://bitcointalk.org/index.php?topic=279249.0 <<<read that.

Blockchain taint analysis works by doing a search for where two or more addresses are connected meaning they were used in the same transaction.
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!