Bitcoin Forum
May 24, 2024, 02:08:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin ECDSA message signing / verifying for PHP?  (Read 2318 times)
slothbag (OP)
Sr. Member
****
Offline Offline

Activity: 369
Merit: 250



View Profile
May 06, 2013, 11:50:57 AM
 #1

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

bit_kevin
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
November 16, 2013, 10:06:38 AM
 #2

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
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!