From 06f5ac69ed1103c76243b3f448c54e9546f5d797 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 28 Aug 2019 22:20:00 +0900 Subject: [PATCH] feat: Increase KDF params N value to 2**18 to produce more secure keystore --- packages/neuron-wallet/src/models/keys/keystore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neuron-wallet/src/models/keys/keystore.ts b/packages/neuron-wallet/src/models/keys/keystore.ts index 5a07e46402..018ffe0288 100644 --- a/packages/neuron-wallet/src/models/keys/keystore.ts +++ b/packages/neuron-wallet/src/models/keys/keystore.ts @@ -58,7 +58,7 @@ export default class Keystore { const kdfparams: KdfParams = { dklen: 32, salt: salt.toString('hex'), - n: 8192, + n: 2 ** 18, r: 8, p: 1, }