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

This commit is contained in:
willclarktech 2021-05-11 14:22:07 +02:00
parent 4308e94c40
commit c6e72a50e8
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
4 changed files with 6 additions and 6 deletions

View File

@ -275,7 +275,7 @@ describe("Secp256k1HdWallet", () => {
algorithm: "argon2id",
params: {
outputLength: 32,
opsLimit: 20,
opsLimit: 24,
memLimitKib: 12 * 1024,
},
},

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,
},
};

View File

@ -289,7 +289,7 @@ describe("DirectSecp256k1HdWallet", () => {
algorithm: "argon2id",
params: {
outputLength: 32,
opsLimit: 20,
opsLimit: 24,
memLimitKib: 12 * 1024,
},
},

View File

@ -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,
},
};