2017 © Pedro Peláez
 

library chainpoint

This is package to use Chainpoint API.

image

kenji-otsuka/chainpoint

This is package to use Chainpoint API.

  • Thursday, July 26, 2018
  • by Kenji Otsuka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Chainpoint library in PHP

This is not actively developed (2020-12-31)., (*1)

This is PHP package for request to Tierion Chainpoint. For Chainpoint, look at Chainpoint Node HTTP API., (*2)

Composer Package, (*3)

How to Use

First, write use statement., (*4)

use KenjiOtsuka\Chainpoint;

Create Instance

$c = new Chainpoint();

Submit Hash

Post sha256 hash., (*5)

$c->submit('0xXXXXXX...');

Or post text, which is internally converted to hash., (*6)

$c->submitData("text");

Get Proof

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., (*7)

$c->getProof($hashIdNode);

Verify

Verify with proof, which is get from above request, getProof, result., (*8)

// 2 ways are available.
$c->verify($proof);
Chainpoint::verify($proof);

Other

The Versions

26/07 2018

dev-master

9999999-dev

This is package to use Chainpoint API.

  Sources   Download

GPL-3.0-or-later

by Avatar Kenji Otsuka

26/07 2018

0.0.1

0.0.1.0

This is package to use Chainpoint API.

  Sources   Download

GPL-3.0-or-later

by Avatar Kenji Otsuka