|
@@ -6,6 +6,7 @@ use App\Models\Contract;
|
|
|
use App\Models\MemberClan;
|
|
use App\Models\MemberClan;
|
|
|
use App\Servers\ContractServer;
|
|
use App\Servers\ContractServer;
|
|
|
use App\Servers\Icon\BanRPC;
|
|
use App\Servers\Icon\BanRPC;
|
|
|
|
|
+use App\Servers\Icon\Utils;
|
|
|
use BitWasp\Bitcoin\Bitcoin;
|
|
use BitWasp\Bitcoin\Bitcoin;
|
|
|
use BitWasp\Bitcoin\Address\PayToPubKeyHashAddress;
|
|
use BitWasp\Bitcoin\Address\PayToPubKeyHashAddress;
|
|
|
use BitWasp\Bitcoin\Crypto\Random\Random;
|
|
use BitWasp\Bitcoin\Crypto\Random\Random;
|
|
@@ -50,8 +51,9 @@ class TestCommand extends Command
|
|
|
*/
|
|
*/
|
|
|
public function handle()
|
|
public function handle()
|
|
|
{
|
|
{
|
|
|
- $bnb_block = BanRPC::creatServer()->sendBlockNumber();
|
|
|
|
|
- dd($bnb_block);
|
|
|
|
|
|
|
+ dd(Utils::hex2dec('0x12a05f200'));
|
|
|
|
|
+// $bnb_block = BanRPC::creatServer()->sendBlockNumber();
|
|
|
|
|
+// dd($bnb_block);
|
|
|
$random = new Random();
|
|
$random = new Random();
|
|
|
// 生成随机数(initial entropy)
|
|
// 生成随机数(initial entropy)
|
|
|
$entropy = $random->bytes(Bip39Mnemonic::MIN_ENTROPY_BYTE_LEN);
|
|
$entropy = $random->bytes(Bip39Mnemonic::MIN_ENTROPY_BYTE_LEN);
|