import { NANO_TEST_VECTORS, STORAGE } from './TEST_VECTORS.js'\r
import { Bip44Wallet, Blake2bWallet, LedgerWallet } from '../dist/main.js'\r
\r
+const skip = true\r
+\r
// WARNING: Do not send any funds to the test vectors below\r
// Test vectors from https://docs.nano.org/integration-guides/key-management/ and elsewhere\r
describe('derive child accounts from the same seed', async () => {\r
assert.ok(accounts[0].address)\r
})\r
})\r
+\r
+describe('child key derivation performance', { skip }, async () => {\r
+ it('performance test of BIP-44 ckd', async function () {\r
+ const wallet = await Bip44Wallet.create(NANO_TEST_VECTORS.PASSWORD)\r
+ await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
+\r
+ const accounts = await wallet.accounts(0, 0x7fff)\r
+\r
+ assert.equal(accounts.length, 0x8000)\r
+ })\r
+\r
+ it('performance test of BLAKE2b ckd', async function () {\r
+ const wallet = await Blake2bWallet.create(NANO_TEST_VECTORS.PASSWORD)\r
+ await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
+\r
+ const accounts = await wallet.accounts(0, 0x7fff)\r
+\r
+ assert.equal(accounts.length, 0x8000)\r
+ })\r
+})\r