Biblioteca PHP para interactuar con la cadena de bloques Tron a través de Tron-Grid
Esta biblioteca tiene como objetivo integrarse con la red tron mientras elimina algunos de los aspectos peligrosos de su API. Uno de los mayores problemas actualmente es que las claves privadas se publican en una red a varios nodos Tron mientras deja la configuración del nodo a los desarrolladores. Esto provoca un gran potencial para que el hombre en los ataques intermedios tenga lugar y robe las llaves privadas. Incluso con desarrolladores confiables que saben cómo configurar sus errores de networking y autenticación que ocurren y el hecho es que su clave privada puede ser publicada en una red y estar expuesto.
Entonces en pocas palabras. Esta biblioteca le permite usar los puntos finales inofensivos como /wallet/getaccountnet , etc., mientras que cualquier acción como generar direcciones/claves privadas o firma se realizan localmente sin que su clave privada se publique en una red.
Su instalación de PHP requiere que se habiliten las extensiones BCMATH y GMP.
composer require mattvb91/trontrx
Hay un Dockerfile disponible que puede usar para construir una imagen de trabajo para comenzar rápidamente.
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 Semver para versiones. Para las versiones disponibles, consulte las etiquetas en este repositorio.
Vea también la lista de contribuyentes que participaron en este proyecto.
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.