Skip to content

Instantly share code, notes, and snippets.

@askaaqib
Created November 25, 2020 07:41
Show Gist options
  • Save askaaqib/f9a501f5ce4bfe4e901671aa298bdc21 to your computer and use it in GitHub Desktop.
Save askaaqib/f9a501f5ce4bfe4e901671aa298bdc21 to your computer and use it in GitHub Desktop.
Create Master Key from Seed - BIP32 PHP
<?php
declare(strict_types=1);
$seed = "000102030405060708090a0b0c0d0e0f";
echo "<pre>";
require "../vendor/autoload.php";
$mskobj = \FurqanSiddiqui\BIP32\BIP32::MasterKey($seed, "512");
$msk1 = $mskobj->raw();
echo "<h3>Master Key </h3>";
print_r($msk1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment