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

Replace most of libsodium with Noble cryptography #1585

Open o-az opened 2 months ago

o-az commented 2 months ago

https://github.com/cosmos/cosmjs/blob/5c1ec56189d3024a6c6ad0ec0d60df30c09c7cc0/packages/crypto/src/index.ts#L5-L13

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

You already use libraries from the same author so I assume you're familiar with the work quality.

I'm suggesting this because libsodium is massive which makes it extremely hard to justify cosmjs unless the project is very large.

baoskee commented 2 months ago

candidate answer to https://github.com/cosmos/cosmjs/issues/1031