119 releases (63 stable)

2.2.1 Feb 4, 2025
2.2.0 Dec 17, 2024
2.2.0-rc.3 Oct 12, 2024
2.1.6 Feb 4, 2025
0.14.0-beta1 Mar 9, 2021

#8 in #cosmwasm

Download history 12294/week @ 2024-10-28 11473/week @ 2024-11-04 7978/week @ 2024-11-11 9700/week @ 2024-11-18 10231/week @ 2024-11-25 17423/week @ 2024-12-02 21117/week @ 2024-12-09 15706/week @ 2024-12-16 4805/week @ 2024-12-23 5513/week @ 2024-12-30 12432/week @ 2025-01-06 15734/week @ 2025-01-13 15495/week @ 2025-01-20 20985/week @ 2025-01-27 23573/week @ 2025-02-03 26684/week @ 2025-02-10

88,084 downloads per month
Used in 724 crates (9 directly)

Apache-2.0

1MB
2K SLoC

CosmWasm Crypto

cosmwasm-crypto on crates.io

This crate implements cryptography-related functions, so that they can be available for both, the cosmwasm-vm and cosmwasm-std crates.

Implementations

  • secp256k1_verify(): Digital signature verification using the ECDSA secp256k1 scheme, for Cosmos signature / public key formats.
  • secp256r1_verify(): Digital signature verification using the ECDSA secp256r1 scheme, for Cosmos signature / public key formats.
  • ed25519_verify(): Digital signature verification using the EdDSA ed25519 scheme, for Tendermint signature / public key formats.
  • ed25519_batch_verify(): Batch digital signature verification using the EdDSA ed25519 scheme, for Tendermint signature / public key formats.

Benchmarking

cd packages/crypto
cargo bench --features std

License

This package is part of the cosmwasm repository, licensed under the Apache License 2.0 (see NOTICE and LICENSE).

Dependencies

~11MB
~218K SLoC