Skip to content

Commit

Permalink
Add passphrase recovery test for multiversx
Browse files Browse the repository at this point in the history
  • Loading branch information
3rdIteration committed Mar 10, 2024
1 parent 9f16c59 commit 32a3df0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btcrecover/btcrseed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2539,8 +2539,8 @@ def _verify_seed(self, mnemonic, passphrase = None):

############### MultiverseX ###############

@register_selectable_wallet_class('MultiverseX BIP39/44')
class WalletMultiverseX(WalletPyCryptoHDWallet):
@register_selectable_wallet_class('MultiversX BIP39/44')
class WalletMultiversX(WalletPyCryptoHDWallet):

def _verify_seed(self, mnemonic, passphrase = None):
if passphrase:
Expand Down
9 changes: 9 additions & 0 deletions btcrecover/test/test_passwords.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,15 @@ def test_address_ethereumvalidator(self):
address_limit=2
)

@skipUnless(can_load_PyCryptoHDWallet, "requires Py_Crypto_HD_Wallet module")
def test_address_PyCryptoHDWallet_multiversx(self):
self.WalletPyCryptoHDWallet_tester(
wallet_type="multiversx",
address_limit=1,
addresses= ["erd1t20rq7jqlspn5an5kw0vk75536x3m64ll0pcsx7g5v95daea6fhqqza54a"],
mnemonic= "ocean hidden kidney famous rich season gloom husband spring convince attitude boy"
)

@skipUnless(can_load_PyCryptoHDWallet, "requires Py_Crypto_HD_Wallet module")
def test_address_PyCryptoHDWallet_solana(self):
self.WalletPyCryptoHDWallet_tester(
Expand Down

0 comments on commit 32a3df0

Please sign in to comment.