PHP code example of huigan / ethsign

1. Go to this page and download the library: Download huigan/ethsign library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

huigan / ethsign example snippets


use huigan\EthSign;

$EthSign = new EthSign();
$sign="0xb319edba9d9d8c12a83d3a6e2a072fa5813dd8a5e9460ac3a475ab40a9988ddd059eed15f8c748a2b18c303b2a290a40c464b0a72274dfe1a96820bb02617b4f1b";
$msg="123456";
$address="0xc9fa719138a0d8fec944ed2bdc6d191e3ef08721";

$succ=$EthSign->verify($msg,$sign,$address);