From: Chris Duncan Date: Tue, 21 Oct 2025 05:42:00 +0000 (-0700) Subject: Merge branch 'next/ledger-sign-nonce' X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f8e84b5f82d645c67220bc6feb1193f686b3622f;p=libnemo.git Merge branch 'next/ledger-sign-nonce' --- f8e84b5f82d645c67220bc6feb1193f686b3622f diff --cc test/test.ledger.mjs index 7047ce0,dd3848a..2942204 --- a/test/test.ledger.mjs +++ b/test/test.ledger.mjs @@@ -189,7 -189,8 +189,8 @@@ await Promise.all( 'Open Nano app, then click to continue', async () => wallet.unlock() ) - const isVerified = await wallet.verify(LEDGER_MNEMONIC) - // const isVerified = await wallet.verify(LEDGER_NANOS.MNEMONIC) - const isVerified = await wallet.verify(LEDGER_NANOSP.MNEMONIC) ++ const isVerified = await wallet.verify(LEDGER_NANOS.MNEMONIC) ++ // const isVerified = await wallet.verify(LEDGER_NANOSP.MNEMONIC) assert.exists(isVerified) assert.equal(typeof isVerified, 'boolean') @@@ -197,7 -198,8 +198,8 @@@ }) await test('verify seed', async () => { - const isVerified = await wallet.verify(LEDGER_SEED) - // const isVerified = await wallet.verify(LEDGER_NANOS.SEED) - const isVerified = await wallet.verify(LEDGER_NANOSP.SEED) ++ const isVerified = await wallet.verify(LEDGER_NANOS.SEED) ++ // const isVerified = await wallet.verify(LEDGER_NANOSP.SEED) assert.exists(isVerified) assert.equal(typeof isVerified, 'boolean') @@@ -210,9 -212,11 +212,11 @@@ assert.exists(account) assert.ok(account instanceof Account) assert.exists(account.publicKey) - assert.equal(account.publicKey, LEDGER_PUBLIC_0) - // assert.equal(account.publicKey, LEDGER_NANOS.PUBLIC_0) - assert.equal(account.publicKey, LEDGER_NANOSP.PUBLIC_0) ++ assert.equal(account.publicKey, LEDGER_NANOS.PUBLIC_0) ++ // assert.equal(account.publicKey, LEDGER_NANOSP.PUBLIC_0) assert.exists(account.address) - assert.equal(account.address, LEDGER_ADDRESS_0) - // assert.equal(account.address, LEDGER_NANOS.ADDRESS_0) - assert.equal(account.address, LEDGER_NANOSP.ADDRESS_0) ++ assert.equal(account.address, LEDGER_NANOS.ADDRESS_0) ++ // assert.equal(account.address, LEDGER_NANOSP.ADDRESS_0) }) await test('get second and third accounts', async () => { @@@ -326,7 -347,8 +347,8 @@@ assert.exists(restored) await assert.resolves(restored.unlock()) - assert.equal(await restored.verify(LEDGER_MNEMONIC), true) - // assert.equal(await restored.verify(LEDGER_NANOS.MNEMONIC), true) - assert.equal(await restored.verify(LEDGER_NANOSP.MNEMONIC), true) ++ assert.equal(await restored.verify(LEDGER_NANOS.MNEMONIC), true) ++ // assert.equal(await restored.verify(LEDGER_NANOSP.MNEMONIC), true) await click( 'Click to finish Ledger tests by destroying wallet',