kenji-otsuka/chainpoint
Composer 安装命令:
composer require kenji-otsuka/chainpoint
包简介
This is package to use Chainpoint API.
README 文档
README
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.
How to Use
First, write use statement.
use KenjiOtsuka\Chainpoint;
Create Instance
$c = new Chainpoint();
Submit Hash
Post sha256 hash.
$c->submit('0xXXXXXX...');
Or post text, which is internally converted to hash.
$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.
$c->getProof($hashIdNode);
Verify
Verify with proof, which is get from above request, getProof, result.
// 2 ways are available. $c->verify($proof); Chainpoint::verify($proof);
Other
- Ruby gem and its GitHub repository.
统计信息
- 总下载量: 253
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-07-26