# @cosmjs/crypto

> Cryptography resources for blockchain projects

Latest version **0.39.0** (published 2026-05-04) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @cosmjs/crypto
pnpm add @cosmjs/crypto
yarn add @cosmjs/crypto
bun add @cosmjs/crypto
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.39.0 |
| Published | 2026-05-04 |
| First published | 2020-06-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 92.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 700 |
| Maintainers | webmaster128, kiki-skip |

## Links

- npm: https://www.npmjs.com/package/@cosmjs/crypto
- Repository: https://github.com/cosmos/cosmjs/tree/main/packages/crypto
- npm.io page: https://npm.io/package/@cosmjs/crypto

## Dependencies (7)

- [@cosmjs/math](https://npm.io/package/@cosmjs/math.md) ^0.39.0
- [@scure/bip39](https://npm.io/package/@scure/bip39.md) ^2.0.1
- [@cosmjs/utils](https://npm.io/package/@cosmjs/utils.md) ^0.39.0
- [@noble/curves](https://npm.io/package/@noble/curves.md) ^2.0.1
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.0.1
- [@noble/ciphers](https://npm.io/package/@noble/ciphers.md) ^2.1.1
- [@cosmjs/encoding](https://npm.io/package/@cosmjs/encoding.md) ^0.39.0

## Recent versions

- 0.39.0 (latest) — 2026-05-04
- 0.37.1 (backports-unsorted) — 2025-12-31
- 0.38.0-rc.1 (next) — 2025-12-24
- 0.38.1 — 2025-12-31
- 0.38.0 — 2025-12-30
- 0.38.0-rc.0 — 2025-12-24
- 0.37.0 — 2025-10-29
- 0.35.2 — 2025-10-29
- 0.37.0-rc.1 — 2025-10-24
- 0.36.2-0 — 2025-10-24
- 0.36.2 — 2025-10-24
- 0.35.1 — 2025-10-22
- 0.34.1 — 2025-10-22
- 0.37.0-rc.0 — 2025-10-17
- 0.36.1 — 2025-10-02
- … 113 more at https://npm.io/package/@cosmjs/crypto/versions

## README

# @cosmjs/crypto

![typescript](https://img.shields.io/npm/types/@cosmjs/crypto.svg)
[![npm version](https://img.shields.io/npm/v/@cosmjs/crypto.svg)](https://www.npmjs.com/package/@cosmjs/crypto)
[![license](https://img.shields.io/npm/l/@cosmjs/crypto.svg)](https://github.com/cosmos/cosmjs/blob/v0.35.0/LICENSE)
![minimum node version](https://img.shields.io/node/v/@cosmjs/crypto.svg)
![minified size](https://img.shields.io/bundlephobia/min/@cosmjs/crypto.svg)
![monthly downloads](https://img.shields.io/npm/dm/@cosmjs/crypto.svg)

This package contains low-level cryptographic functionality used in other
@cosmjs libraries. Little of it is implemented here, but mainly it is a curation
of external libraries along with correctness tests. We add type safety, some
more checks, and a simple API to these libraries. This can also be freely
imported outside of CosmJS based applications.

## License

This package is part of the cosmjs repository, licensed under the Apache License
2.0 (see [NOTICE](https://github.com/cosmos/cosmjs/blob/main/NOTICE) and
[LICENSE](https://github.com/cosmos/cosmjs/blob/main/LICENSE)).

---
_Source: https://npm.io/package/@cosmjs/crypto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
