cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
https://cosmos.github.io/cosmjs/
Apache License 2.0
635 stars 323 forks source link

Find more lightweight libraries to replace libsodium.js #1031

Open webmaster128 opened 2 years ago

webmaster128 commented 2 years ago

libsodium.js is amazing but big. This could be mitigated by using our own build. However, I assume the better path is to break it down into the algorithms we need and have them in separate modules. This allows optimizers to better remove unused code. Also only Argon2 needs Wasm speed.

Replacements for the following algos are needed

o-az commented 2 months ago

Ed25519 -> https://github.com/paulmillr/noble-ed25519 Argon2id -> https://github.com/paulmillr/noble-hashes#argon2