Bitcoin Forum
September 27, 2018, 11:12:34 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Generate a bitcoin address in PHP WITHOUT GMP or BCMATH  (Read 1119 times)
n4ru
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?

ETH-Nova - Fully Automated OC/PL/P-state/Mining/Monitoring for Windows
ETH: 0x00972cd6a2c6786afbcc24ca592b8c86f33f747a / BTC: 1n4ruYy5QWbTDBbPEyBRWwj1Ni4U4Sz5P
1538089954
Hero Member
*
Offline Offline

Posts: 1538089954

View Profile Personal Message (Offline)

Ignore
1538089954
Reply with quote  #2

1538089954
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1750
Merit: 1001

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: 1001



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!