Bitcoin Forum
May 03, 2024, 11:54:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generate a bitcoin address in PHP WITHOUT GMP or BCMATH  (Read 1142 times)
n4ru (OP)
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250



View Profile
July 03, 2013, 05:11:41 AM
 #1

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?
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
July 03, 2013, 10:01:28 AM
 #2

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.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
July 03, 2013, 10:50:03 AM
 #3

Doing the math in BC is already painfully slow.  It would be so much worse in pure PHP.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
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!