]> git.codecow.com Git - libnemo.git/commitdiff
Check that blake seed for imported mnemonic equals input entropy.
authorChris Duncan <chris@zoso.dev>
Wed, 30 Jul 2025 13:51:02 +0000 (06:51 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 30 Jul 2025 13:51:02 +0000 (06:51 -0700)
test/test.import-wallet.mjs

index 78ead7fa9d40bdb35df41c70119af283ceb880e9..b6570603e9f69da896e77140f871c23447a6e1dd 100644 (file)
@@ -181,6 +181,7 @@ await Promise.all([
                        assert.ok('seed' in wallet)\r
                        assert.exists(walletAccount)\r
                        assert.equal(wallet.mnemonic, TREZOR_TEST_VECTORS.MNEMONIC_2)\r
+                       assert.equal(wallet.seed, TREZOR_TEST_VECTORS.ENTROPY_2)\r
 \r
                        const imported = await Blake2bWallet.fromMnemonic(TREZOR_TEST_VECTORS.PASSWORD, TREZOR_TEST_VECTORS.MNEMONIC_2)\r
                        await imported.unlock(TREZOR_TEST_VECTORS.PASSWORD)\r