Title: Bitcoin ECDSA message signing / verifying for PHP? Post by: slothbag on May 06, 2013, 11:50:57 AM Hi,
I need to perform the bitcoin message verify routine in a PHP app.. I tried to use the mdanter phpecc library https://github.com/scintill/danter-php-ecc (https://github.com/scintill/danter-php-ecc) but its a bit beyond me. Anyone know of an easy to use library for PHP that I can utilize to perform the verify? I just want to pass a bitcoin public key, text and signature and get a true or false back. Failing any such library in PHP, I could probably use a Nodejs or Python or even Mono C# as an external process if need be. I dont want to use the bitcoind process as I dont want it to sync with the network and I dont need it running 24/7. Any help appreciated. Cheers Title: Re: Bitcoin ECDSA message signing / verifying for PHP? Post by: bit_kevin on November 16, 2013, 10:06:38 AM Quote PHP routines for verifying Bitcoin signatures. Requires PHP 5.3.2 and the extension GMP 4.2.0 or better. GMP may be available in a package called "php5-gmp" or similar for your system. The main code is in verifymessage.php, with tests in test/verifymessage.php. You will probably want to encapsulate the code more nicely, but since the ECC library needs to be configured specially and I am not up-to-date on the latest PHP packaging hotness anyway, I figured it would be best to leave that up to users to do how they like best. https://github.com/scintill/php-bitcoin-signature-routines |