115 releases (59 stable)

new 2.2.0 Dec 17, 2024
2.2.0-rc.3 Oct 12, 2024
2.1.5 Dec 10, 2024
2.1.4 Sep 23, 2024
0.14.0-beta1 Mar 9, 2021

#6 in Magic Beans

Download history 12212/week @ 2024-08-28 12229/week @ 2024-09-04 12129/week @ 2024-09-11 11869/week @ 2024-09-18 14995/week @ 2024-09-25 10710/week @ 2024-10-02 10087/week @ 2024-10-09 12252/week @ 2024-10-16 11735/week @ 2024-10-23 12686/week @ 2024-10-30 10272/week @ 2024-11-06 8035/week @ 2024-11-13 9281/week @ 2024-11-20 13681/week @ 2024-11-27 16636/week @ 2024-12-04 18102/week @ 2024-12-11

59,444 downloads per month
Used in 718 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