This is not actively developed (2020-12-31).
This is PHP package for request to Tierion Chainpoint. For Chainpoint, look at Chainpoint Node HTTP API.
First, write use
statement.
use KenjiOtsuka\Chainpoint;
$c = new Chainpoint();
Post sha256 hash.
$c->submit('0xXXXXXX...');
Or post text, which is internally converted to hash.
$c->submitData("text");
Get hash id node from submit
result and post it.
This method execution may have to be called for the same Chainpoint
instanece
as submit
called for.
$c->getProof($hashIdNode);
Verify with proof, which is get from above request, getProof
, result.
// 2 ways are available.
$c->verify($proof);
Chainpoint::verify($proof);
- Ruby gem and its GitHub repository.