|
@@ 754-756 (lines=3) @@
|
| 751 |
|
// create primary public key from the created private key |
| 752 |
|
$options['primary_public_key'] = $options['primary_private_key']->buildKey($walletPath->keyIndexPath()->publicPath()); |
| 753 |
|
|
| 754 |
|
if (!isset($options['backup_public_key'])) { |
| 755 |
|
$options['backup_public_key'] = BIP32Key::create(HierarchicalKeyFactory::fromEntropy(new Buffer($backupSeed)), "m")->buildKey("M"); |
| 756 |
|
} |
| 757 |
|
|
| 758 |
|
// create a checksum of our private key which we'll later use to verify we used the right password |
| 759 |
|
$checksum = $options['primary_private_key']->publicKey()->getAddress()->getAddress(); |
|
@@ 892-894 (lines=3) @@
|
| 889 |
|
// create primary public key from the created private key |
| 890 |
|
$options['primary_public_key'] = $options['primary_private_key']->buildKey($walletPath->keyIndexPath()->publicPath()); |
| 891 |
|
|
| 892 |
|
if (!isset($options['backup_public_key'])) { |
| 893 |
|
$options['backup_public_key'] = BIP32Key::create(HierarchicalKeyFactory::fromEntropy($backupSeed), "m")->buildKey("M"); |
| 894 |
|
} |
| 895 |
|
|
| 896 |
|
// create a checksum of our private key which we'll later use to verify we used the right password |
| 897 |
|
$checksum = $options['primary_private_key']->publicKey()->getAddress()->getAddress(); |