111 releases (55 stable)

2.2.0-rc.3 Oct 12, 2024
2.1.4 Sep 23, 2024
2.1.1 Jul 30, 2024
2.0.0 Mar 12, 2024
0.14.0-beta1 Mar 9, 2021

#9 in #cosmwasm

Download history 10662/week @ 2024-07-29 11175/week @ 2024-08-05 13889/week @ 2024-08-12 10503/week @ 2024-08-19 12543/week @ 2024-08-26 11510/week @ 2024-09-02 11507/week @ 2024-09-09 11292/week @ 2024-09-16 15801/week @ 2024-09-23 11156/week @ 2024-09-30 9319/week @ 2024-10-07 12595/week @ 2024-10-14 11833/week @ 2024-10-21 12294/week @ 2024-10-28 11473/week @ 2024-11-04 7293/week @ 2024-11-11

43,453 downloads per month
Used in 706 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
~215K SLoC