From: Chris Duncan Date: Wed, 30 Jul 2025 13:51:02 +0000 (-0700) Subject: Check that blake seed for imported mnemonic equals input entropy. X-Git-Tag: v0.10.5~48^2~9 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3be0031d4fe5e773041b2d1f1ce56ae28620b7bd;p=libnemo.git Check that blake seed for imported mnemonic equals input entropy. --- diff --git a/test/test.import-wallet.mjs b/test/test.import-wallet.mjs index 78ead7f..b657060 100644 --- a/test/test.import-wallet.mjs +++ b/test/test.import-wallet.mjs @@ -181,6 +181,7 @@ await Promise.all([ assert.ok('seed' in wallet) assert.exists(walletAccount) assert.equal(wallet.mnemonic, TREZOR_TEST_VECTORS.MNEMONIC_2) + assert.equal(wallet.seed, TREZOR_TEST_VECTORS.ENTROPY_2) const imported = await Blake2bWallet.fromMnemonic(TREZOR_TEST_VECTORS.PASSWORD, TREZOR_TEST_VECTORS.MNEMONIC_2) await imported.unlock(TREZOR_TEST_VECTORS.PASSWORD)