PHP code example of kenji-otsuka / chainpoint
1. Go to this page and download the library: Download kenji-otsuka/chainpoint 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/ */
kenji-otsuka / chainpoint example snippets
use KenjiOtsuka\Chainpoint;
$c = new Chainpoint();
$c->submit('0xXXXXXX...');
$c->submitData("text");
$c->getProof($hashIdNode);
// 2 ways are available.
$c->verify($proof);
Chainpoint::verify($proof);