amino/proto-signing: Increase ops in default KDF options

This commit is contained in:
willclarktech
2021-05-11 14:28:17 +02:00
parent 4308e94c40
commit c6e72a50e8
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ describe("Secp256k1HdWallet", () => {
algorithm: "argon2id",
params: {
outputLength: 32,
opsLimit: 20,
opsLimit: 24,
memLimitKib: 12 * 1024,
},
},
+2 -2
View File
@@ -36,13 +36,13 @@ const serializationTypeV1 = "secp256k1wallet-v1";
/**
* A KDF configuration that is not very strong but can be used on the main thread.
* It takes about 1 second in Node.js 12.15 and should have similar runtimes in other modern Wasm hosts.
* It takes about 1 second in Node.js 16.0.0 and should have similar runtimes in other modern Wasm hosts.
*/
const basicPasswordHashingOptions: KdfConfiguration = {
algorithm: "argon2id",
params: {
outputLength: 32,
opsLimit: 20,
opsLimit: 24,
memLimitKib: 12 * 1024,
},
};
@@ -289,7 +289,7 @@ describe("DirectSecp256k1HdWallet", () => {
algorithm: "argon2id",
params: {
outputLength: 32,
opsLimit: 20,
opsLimit: 24,
memLimitKib: 12 * 1024,
},
},
@@ -35,13 +35,13 @@ const serializationTypeV1 = "directsecp256k1hdwallet-v1";
/**
* A KDF configuration that is not very strong but can be used on the main thread.
* It takes about 1 second in Node.js 12.15 and should have similar runtimes in other modern Wasm hosts.
* It takes about 1 second in Node.js 16.0.0 and should have similar runtimes in other modern Wasm hosts.
*/
const basicPasswordHashingOptions: KdfConfiguration = {
algorithm: "argon2id",
params: {
outputLength: 32,
opsLimit: 20,
opsLimit: 24,
memLimitKib: 12 * 1024,
},
};