Skip to main content
Low-level cryptographic library providing hashing, signing, HD key derivation, and encryption. Wraps @noble/* libraries with type safety and a consistent API.

Hashing

Convenience Functions

Incremental Hashing Classes

For large data, use the class API with update() for incremental hashing:

Hmac

Secp256k1

Elliptic curve operations for Cosmos, Bitcoin, and Ethereum signing.

Types

The interface itself does not constrain the byte length of pubkey. When produced by makeKeypair, the key is always 65 bytes (uncompressed). Use compressPubkey() before passing it to Cosmos nodes, which expect 33-byte compressed keys.

Secp256k1Signature / ExtendedSecp256k1Signature

Ed25519

Edwards-curve digital signature algorithm for fast, deterministic signing.
Ed25519 hashes the message internally. Do not pre-hash the message before signing.

BIP-39 Mnemonics

Bip39

EnglishMnemonic

Validates and wraps a BIP-39 English mnemonic string. Throws on invalid input.

SLIP-10 HD Key Derivation

Slip10

Path Utilities

Types

Encryption

Xchacha20poly1305Ietf

Authenticated encryption using XChaCha20-Poly1305. The constant xchacha20NonceLength is 24.

Argon2id

Argon2id is deprecated and will be removed in a future release. Use argon2id from @noble/hashes directly instead. See cosmos/cosmjs#1796.
Password-based key derivation.

Random

Cryptographically secure random number generation.