]> zoso.dev Git - libnemo.git/commitdiff
Worker threads do not seem to improve BLAKE2b ckd much, but BIP-44 ckd is 5x faster...
authorChris Duncan <chris@zoso.dev>
Thu, 21 Nov 2024 06:04:28 +0000 (22:04 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 21 Nov 2024 06:04:28 +0000 (22:04 -0800)
src/lib/wallet.ts

index 2581de74549cc64a3aebf6fa9b6713499adf0b98..b2be0011ea1d4b7a79e7014dfb6bc37cc35a3f38 100644 (file)
@@ -415,7 +415,7 @@ export class Bip44Wallet extends Wallet {
        * @param {number} index - Index of the account\r
        * @returns {Promise<Account>}\r
        */\r
-       async ckd (index: number | number[]): Promise<Account[]> {\r
+       async ckd_old (index: number | number[]): Promise<Account[]> {\r
                if (!Array.isArray(index)) index = [index]\r
                const keys = []\r
                let now = performance.now()\r
@@ -443,7 +443,7 @@ export class Bip44Wallet extends Wallet {
        * @param {number} index - Index of the account\r
        * @returns {Promise<Account>}\r
        */\r
-       async ckd_new (index: number | number[]): Promise<Account[]> {\r
+       async ckd (index: number | number[]): Promise<Account[]> {\r
                if (!Array.isArray(index)) index = [index]\r
                const data: any = []\r
                let now = performance.now()\r
@@ -603,7 +603,7 @@ export class Blake2bWallet extends Wallet {
        * @param {number} index - Index of the account\r
        * @returns {Promise<Account>}\r
        */\r
-       async ckd (index: number | number[]): Promise<Account[]> {\r
+       async ckd_old (index: number | number[]): Promise<Account[]> {\r
                if (!Array.isArray(index)) index = [index]\r
                const keys = []\r
                let now = performance.now()\r
@@ -632,7 +632,7 @@ export class Blake2bWallet extends Wallet {
        * @param {number} index - Index of the account\r
        * @returns {Promise<Account>}\r
        */\r
-       async ckd_new (index: number | number[]): Promise<Account[]> {\r
+       async ckd (index: number | number[]): Promise<Account[]> {\r
                if (!Array.isArray(index)) index = [index]\r
                const data: any = []\r
                let now = performance.now()\r