Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: n4ru on July 03, 2013, 05:11:41 AM



Title: Generate a bitcoin address in PHP WITHOUT GMP or BCMATH
Post by: n4ru on July 03, 2013, 05:11:41 AM
I'm trying to find a way to generate a private key and public address using only PHP without either GMP or BCMATH. Can it be done at all? The reason for this is I am limited to a hosting provider on the tor network with neither of these.

What are my options?


Title: Re: Generate a bitcoin address in PHP WITHOUT GMP or BCMATH
Post by: Remember remember the 5th of November on July 03, 2013, 10:01:28 AM
Private keys are essentially very big numbers, you would need these functions to handle them OR write yourself a custom PHP library to handle big numbers(apparently it's not that hard) and you will be OK.


Title: Re: Generate a bitcoin address in PHP WITHOUT GMP or BCMATH
Post by: kjj on July 03, 2013, 10:50:03 AM
Doing the math in BC is already painfully slow.  It would be so much worse in pure PHP.