|
@@ 656-658 (lines=3) @@
|
| 653 |
|
$data = $this->storeNewWalletV1($options['identifier'], $primaryPublicKey->tuple(), $backupPublicKey->tuple(), $primaryMnemonic, $checksum, $options['key_index']); |
| 654 |
|
|
| 655 |
|
// received the blocktrail public keys |
| 656 |
|
$blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) { |
| 657 |
|
return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])]; |
| 658 |
|
}, $data['blocktrail_public_keys']); |
| 659 |
|
|
| 660 |
|
$wallet = new WalletV1( |
| 661 |
|
$this, |
|
@@ 774-776 (lines=3) @@
|
| 771 |
|
); |
| 772 |
|
|
| 773 |
|
// received the blocktrail public keys |
| 774 |
|
$blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) { |
| 775 |
|
return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])]; |
| 776 |
|
}, $data['blocktrail_public_keys']); |
| 777 |
|
|
| 778 |
|
$wallet = new WalletV2( |
| 779 |
|
$this, |