]> git.codecow.com Git - libnemo.git/commitdiff
Whitespace.
authorChris Duncan <chris@codecow.com>
Thu, 6 Aug 2026 03:31:39 +0000 (20:31 -0700)
committerChris Duncan <chris@codecow.com>
Thu, 6 Aug 2026 03:31:39 +0000 (20:31 -0700)
src/lib/tools.ts
src/lib/vault/parsers.ts
src/lib/vault/vault-worker.ts
src/lib/wallet/unopened.ts

index ee3d09df3b83756bcf9bd864118d98c4fd56bb0e..97e19c2ded10b1688110aaa4d6fb2c655f327bea 100644 (file)
@@ -201,7 +201,7 @@ export function verify (publicKey: string | ArrayBuffer | Bytes, signature: stri
        } finally {
                k.fill(0)
                s.fill(0)
-       }       
+       }
 }
 
 function normalize (input: string | ArrayBuffer | Bytes): Bytes {
index 9e8cae9a114185bc4e8459e7e53895cb26f62add..db696f203d71b8b53e4e6b3410d352a1a8e69435 100644 (file)
@@ -44,11 +44,11 @@ export function parseData (action: string, data: Record<string, unknown>) {
                        if (!(data.seed instanceof ArrayBuffer)) {
                                throw new TypeError('Invalid wallet seed')
                        }
-                       if (['load', 'verify'].includes(action)) { 
+                       if (['load', 'verify'].includes(action)) {
                                seed = data.seed.slice()
                        }
                        new Uint8Array(data.seed).fill(0)
-                       delete data.seed        
+                       delete data.seed
                }
 
                // Mnemonic phrase to load
@@ -73,13 +73,13 @@ export function parseData (action: string, data: Record<string, unknown>) {
                if ('encrypted' in data) {
                        if (action === 'unlock') {
                                if (!(data.encrypted instanceof ArrayBuffer)) {
-                               throw new TypeError('Invalid wallet encrypted secrets')
+                                       throw new TypeError('Invalid wallet encrypted secrets')
                                }
                                encrypted = data.encrypted.slice()
                        }
                        new Uint8Array(data.encrypted as ArrayBuffer).fill(0)
                        delete data.encrypted
-               }       
+               }
 
                // Index for child account to derive or sign
                if ((action === 'derive' || action === 'sign') && typeof data.index !== 'number') {
@@ -99,7 +99,7 @@ export function parseData (action: string, data: Record<string, unknown>) {
                        }
                        new Uint8Array(data.message as ArrayBuffer).fill(0)
                        delete data.message
-               }       
+               }
 
                // Vault configuration
                if (action === 'config') {
index ec4b40ad44722a6b25fd95a2296d89de14749909..7ad63f168eebf0cd1851945da80e4508d732208e 100644 (file)
@@ -163,7 +163,7 @@ function create (type?: WalletType, id?: UUID, key?: CryptoKey, keySalt?: ArrayB
                        throw new Error('Failed to create wallet', { cause: err })
                })
                .finally(() => lock())
-       }
+}
 
 /**
  * Derives the private and public keys of a child account from the current
index 32a2834214a481dda07b8affba67c7ab66421903..ab8fb8b9d2c409231d408dd4d6de9eecee0e731e 100644 (file)
@@ -41,6 +41,6 @@ export async function _unopened (wallet: Wallet, rpc: unknown, batchSize: unknow
        }
        if (to >= 0xffffffff) {
                throw new RangeError('Max index reached')
-       }       
+       }
        return await _unopened(wallet, rpc, batchSize, to)
 }