mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
amino/proto-signing: Increase ops in default KDF options
This commit is contained in:
parent
4308e94c40
commit
c6e72a50e8
@ -275,7 +275,7 @@ describe("Secp256k1HdWallet", () => {
|
||||
algorithm: "argon2id",
|
||||
params: {
|
||||
outputLength: 32,
|
||||
opsLimit: 20,
|
||||
opsLimit: 24,
|
||||
memLimitKib: 12 * 1024,
|
||||
},
|
||||
},
|
||||
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user