]> git.codecow.com Git - libnemo.git/commitdiff
Merge branch 'next/ledger-sign-nonce'
authorChris Duncan <chris@zoso.dev>
Tue, 21 Oct 2025 05:42:00 +0000 (22:42 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 21 Oct 2025 05:42:00 +0000 (22:42 -0700)
1  2 
test/test.ledger.mjs

index 7047ce04754c8e54b72dff6c80cd3be1a5fb46a9,dd3848a3975800fb738918c680829a9d57992b4d..294220464e19782547dc77dbd4a73cd6f6ca4962
@@@ -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')
                })
  
                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')
                        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 () => {
  
                        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',