]> git.codecow.com Git - libnemo.git/commitdiff
Change slice range for clarity.
authorChris Duncan <chris@codecow.com>
Thu, 14 May 2026 18:26:37 +0000 (11:26 -0700)
committerChris Duncan <chris@codecow.com>
Thu, 14 May 2026 18:26:37 +0000 (11:26 -0700)
src/lib/ledger.ts

index 24fa3687a3ba29a25b9be7a758ea875ddc7763c7..f75f2fa7eb97d772feca40e958d468af8156beef 100644 (file)
@@ -346,7 +346,7 @@ export class Ledger {
        static async verify (secret: string): Promise<boolean> {
                const testWallet = await Wallet.load('BIP-44', '', secret)
                secret = ''
-               const nonce = crypto.randomUUID().slice(-16)
+               const nonce = crypto.randomUUID().slice(0, 16)
                try {
                        await testWallet.unlock('')
                        const testSignature = await testWallet.sign(0, `Nano Signed Nonce:\n${utf8.toHex(nonce)}`)