Bitcoin Forum

Bitcoin => Project Development => Topic started by: changjixiong on June 28, 2013, 01:01:37 PM



Title: how to genarate private key
Post by: changjixiong on June 28, 2013, 01:01:37 PM
hi everybody, I hava read the bitcoin protocol, and known how to calculate bitcoin address from private key, but the way how to genarate private key is not very clearly in the protocol, anybody knows? I want to write a program to genarate key pairs use python :D


Title: Re: how to genarate private key
Post by: realdos on June 28, 2013, 01:44:04 PM
http://en.wikipedia.org/wiki/Elliptic_Curve_DSA
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses


Title: Re: how to genarate private key
Post by: changjixiong on June 28, 2013, 01:45:55 PM
http://en.wikipedia.org/wiki/Elliptic_Curve_DSA
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses
thank you very much :)


Title: Re: how to genarate private key
Post by: polrpaul on June 28, 2013, 01:49:16 PM
ask and you shall receive!


Title: Re: how to genarate private key
Post by: threeip on June 29, 2013, 06:13:42 PM
http://en.wikipedia.org/wiki/Elliptic_Curve_DSA
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses
thank you very much :)


Also don't forget to browse over here -> https://github.com/search?q=python+bitcoin


Title: Re: how to genarate private key
Post by: richardkiss on June 29, 2013, 07:39:02 PM
I've recently released some Python code which makes it easy to generate private keys (among other things). It's pretty easy to follow. Take a look:

https://github.com/richardkiss/pycoin