From: Chris Duncan Date: Tue, 23 Sep 2025 14:27:38 +0000 (-0700) Subject: Log when click activation ends when disconnecting Ledger. Blank out local copy of... X-Git-Tag: v0.10.5~12^2~6 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=56cdb988f5f84861aab4e386eab25d98e761d89e;p=libnemo.git Log when click activation ends when disconnecting Ledger. Blank out local copy of mnemonic or seed when verifying Ledger. --- diff --git a/src/lib/ledger.ts b/src/lib/ledger.ts index 2de4ffc..a5bcd97 100644 --- a/src/lib/ledger.ts +++ b/src/lib/ledger.ts @@ -219,6 +219,7 @@ export class Ledger { console.warn('Ledger.disconnect()', err) } finally { await new Promise(r => setTimeout(r, 5000)) + console.log('Transient user activation period timed out') } }) } @@ -316,6 +317,7 @@ export class Ledger { static async verify (mnemonic: string): Promise static async verify (secret: string): Promise { const testWallet = await Wallet.load('BIP-44', '', secret) + secret = '' await testWallet.unlock('') const testAccount = await testWallet.account(0) const testOpenBlock = await new Block(testAccount.address, '0', testAccount.publicKey, testAccount.address)