This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
require "../../vendor/autoload.php"; | |
echo "<pre>"; | |
//$ip = "47.252.19.181"; | |
$domain = "api.shasta.trongrid.io"; | |
//$port = 8090; | |
$tronClient = new \MediaParkPK\TRON\TRON_Client(null, null, null, null, true, $domain); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
require "../../vendor/autoload.php"; | |
echo "<pre>"; | |
//$ip = "47.252.19.181"; | |
$domain = "api.shasta.trongrid.io"; | |
//$port = 8090; | |
$tronClient = new \MediaParkPK\TRON\TRON_Client(null, null, null, null, true, $domain); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
require "../../vendor/autoload.php"; | |
echo "<pre>"; | |
//$ip = "47.252.19.181"; | |
$domain = "api.shasta.trongrid.io"; | |
//$port = 8090; | |
$tronClient = new \MediaParkPK\TRON\TRON_Client(null, null, null, null, true, $domain); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "../../vendor/autoload.php"; | |
// set some variables | |
$host = "127.0.0.1"; | |
$port = 25002; | |
// don't timeout! | |
set_time_limit(0); | |
// create socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
require "../vendor/autoload.php"; | |
echo "<pre>"; | |
$seed = "000102030405060708090a0b0c0d0e0f"; | |
/** @var $mskobj */ | |
$mskobj = \FurqanSiddiqui\BIP32\BIP32::MasterKey($seed, "256"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
require "../../vendor/autoload.php"; | |
//echo "<pre>"; | |
$host = "127.0.0.1"; | |
$port = 25003; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Eth Setup | |
$eth = new \FurqanSiddiqui\Ethereum\Ethereum(); | |
$eth->networkConfig()->setChainId(42); | |
//Sender Private Key | |
$prv = $eth->keyPairs()->privateKeyFromEntropy(hash("sha256", "AlphaPackCrew")); | |
//Infura Setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "../vendor/autoload.php"; | |
$tree = new \Pleo\Merkle\FixedSizeTree( | |
2, | |
function($data){ | |
return hash('sha256', hash('sha256', $data, true), true); | |
}, | |
function($hash) { | |
echo implode('', unpack('H*', $hash)) . "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$array = ["spoiler", "kirk", "category", "brand"]; | |
$hashes = []; | |
$hash = ""; | |
foreach ($array as $key => $value) { | |
$hashes[] = hash("sha256", $value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
require "../vendor/autoload.php"; | |
echo "<pre>"; | |
$base58 = new \FurqanSiddiqui\Base58\Base58(); | |
$base16 = new \Comely\DataTypes\Buffer\Base16(); | |
$base58check = new \FurqanSiddiqui\Base58\Base58Check(); | |
/*********** PRIVATE TO WIF CONVERSION ***********/ | |
echo "<h1>Private To WIF Conversion</h1>"; |
NewerOlder