mattvb91/trontrx

此包已被弃用且不再维护。没有建议的替代包。
此包的最新版本(0.3.0)没有可用的许可证信息。

通过Tron-Grid与Tron区块链交互的库

0.3.0 2018-11-03 19:42 UTC

This package is auto-updated.

Last update: 2024-02-05 01:10:32 UTC


README

Build Status Coverage Status Scrutinizer Code Quality

通过Tron-Grid与Tron区块链交互的PHP库

概述

此库旨在与Tron-Grid集成,同时去除其API的一些危险部分。目前最大的问题是,在节点配置由开发者负责的情况下,将私钥通过网络发送到各种TRON节点,这为中间人攻击提供了极大的潜在机会,可以窃取私钥。即使是有信心的开发者,知道如何设置他们的网络和身份验证层,错误仍然会发生,实际上你的私钥可能已经通过网络被发布并暴露。

此库与Tron-Grid集成,同时去除一些这些危险部分并在本地执行

简而言之,此库允许你使用无害的端点,如/wallet/getaccountnet等,而任何生成地址/私钥或签名的操作都在本地完成,你的私钥不会通过网络发布。

先决条件

你的PHP安装需要启用bcmath & gmp扩展。

安装

composer require mattvb91/trontrx

Docker

有一个可用的Dockerfile,你可以使用它来快速构建一个工作镜像。

cd build
docker build -t tron-trx-php .
cd ../
docker run -it -v $(pwd):/app -u 1000 tron-trx-php /bin/bash
composer install
./vendor/bin/phpunit

可用接口

  • 待描述可用接口

构建于

版本控制

我们使用SemVer进行版本控制。有关可用版本,请参阅此存储库的标签

贡献者

有关参与此项目的贡献者的列表,请参阅贡献者

许可证

MIT License

Copyright (c) 2018 Matthias von Bargen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

致谢