Bitcoin Forum

Other => Beginners & Help => Topic started by: konstantin718 on December 13, 2013, 06:18:34 AM



Title: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: konstantin718 on December 13, 2013, 06:18:34 AM
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


Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: gweedo on December 13, 2013, 06:22:48 AM
Use php to connect to bitcoind, and use the rpc command to create the key pair.


Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: wumpus on December 13, 2013, 06:25:23 AM
This can be done from PHP itself:
https://github.com/zamgo/PHPCoinAddress


Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: davout on December 13, 2013, 06:26:55 AM
Use php to connect to bitcoind, and use the rpc command to create the key pair.

Cute


Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: konstantin718 on December 13, 2013, 06:33:38 AM
Use php to connect to bitcoind, and use the rpc command to create the key pair.

Cute

Nah it is sexy and easy ;)

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


Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: davout on December 13, 2013, 06:36:15 AM
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.


Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: konstantin718 on December 13, 2013, 06:46:15 AM
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!



Title: Re: What's the easiest way to create private/public key pair PROGRAMMATICALLY
Post by: gweedo on December 13, 2013, 06:52:20 AM
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.