122 releases (66 stable)

2.2.2 Mar 5, 2025
2.2.0 Dec 17, 2024
2.2.0-rc.3 Oct 12, 2024
2.1.7 Mar 5, 2025
0.14.0-beta1 Mar 9, 2021

#8 in #cosmwasm

Download history 14812/week @ 2025-01-16 18113/week @ 2025-01-23 20921/week @ 2025-01-30 30739/week @ 2025-02-06 24945/week @ 2025-02-13 24798/week @ 2025-02-20 25478/week @ 2025-02-27 30148/week @ 2025-03-06 42305/week @ 2025-03-13 30436/week @ 2025-03-20 35747/week @ 2025-03-27 46536/week @ 2025-04-03 64063/week @ 2025-04-10 57211/week @ 2025-04-17 54286/week @ 2025-04-24 40258/week @ 2025-05-01

223,503 downloads per month
Used in 754 crates (10 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

~12MB
~226K SLoC