Skip to content

Remove wallet encryption features and ed25519 crypto #1479

@webmaster128

Description

@webmaster128

CosmJS was designed to be used for secure key storage required by wallets, but I am not aware of a user who uses CosmJS for that. Removing the following features would reduce maintenance cost and bundle size:

  • Remove Argon2 implementation (required for deriving encryption keys from a password)
  • Remove symmetric encryption (Xchacha20poly1305Ietf)
  • Remove all Ed25519 crypto

This affects {Direct,}Secp256k1{Hd,}Wallet.{serialize,deserialize}. Users of those features would need to implement secure key storage on their own.

As a result, we don't need the libsodium-wrappers-sumo dependency anymore (big Wasm blob) and remove a lot of code to maintain.

Closes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions