Biblioteca PHP para interagir com o Tron Blockchain através de Tron-Grid
Esta biblioteca visa integrar-se ao Tron-Grid, removendo alguns dos aspectos perigosos de sua API. Um dos maiores problemas atualmente é o privado que está sendo publicado em uma rede para vários nós do TRON, deixando a configuração do Node para os desenvolvedores. Isso causa um grande potencial para o homem nos ataques intermediários ocorrer e roubar chaves privadas. Mesmo com desenvolvedores confiáveis que sabem como configurar seus erros de rede e camadas de autenticação acontecem e o fato é que sua chave privada pode estar sendo publicada em uma rede e sendo exposta.
Então, em poucas palavras. Esta biblioteca permite que você use os pontos de extremidade inofensivos, como /wallet/getaccountnet etc. enquanto quaisquer ações como gerar endereços/chaves privadas ou assinatura são feitas localmente sem sua chave privada ser publicada em uma rede.
Sua instalação PHP exige que as extensões BCMATH e GMP sejam ativadas.
composer require mattvb91/trontrx
Há um Dockerfile disponível que você pode usar para criar uma imagem de trabalho para começar rapidamente.
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
Usamos o Semver para versões. Para as versões disponíveis, consulte as tags neste repositório.
Veja também a lista de colaboradores que participaram deste projeto.
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.