tron trx php
1.0.0
PHP庫通過Tron-Grid與TRON區塊鏈互動
該圖書館旨在與Tron-Grid集成,同時消除其API的一些危險方面。目前最大的問題之一是將私鑰通過網絡發佈到各種TRON節點,同時將節點配置留給開發人員。這會使中間攻擊發生並竊取私鑰的巨大潛力。即使有信任的開發人員知道如何設置其網絡和身份驗證層錯誤的情況確實會發生,事實是您的私鑰可能是通過網絡發布並被暴露。
簡而言之。該庫允許您使用無害的端點,例如/wallet/getaccountnet等。 .諸如生成地址/私鑰或簽名之類的動作都在本地完成,而沒有您的私鑰會通過網絡發布。
您的PHP安裝需要啟用BCMATH和GMP擴展。
composer require mattvb91/trontrx
有一個可用的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.