|
@@ 670-672 (lines=3) @@
|
| 667 |
|
$data = $this->storeNewWalletV1($options['identifier'], $primaryPublicKey->tuple(), $backupPublicKey->tuple(), $primaryMnemonic, $checksum, $options['key_index']); |
| 668 |
|
|
| 669 |
|
// received the blocktrail public keys |
| 670 |
|
$blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) { |
| 671 |
|
return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])]; |
| 672 |
|
}, $data['blocktrail_public_keys']); |
| 673 |
|
|
| 674 |
|
$wallet = new WalletV1( |
| 675 |
|
$this, |
|
@@ 788-790 (lines=3) @@
|
| 785 |
|
); |
| 786 |
|
|
| 787 |
|
// received the blocktrail public keys |
| 788 |
|
$blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) { |
| 789 |
|
return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])]; |
| 790 |
|
}, $data['blocktrail_public_keys']); |
| 791 |
|
|
| 792 |
|
$wallet = new WalletV2( |
| 793 |
|
$this, |