98 releases (45 stable)

2.1.0 Jul 11, 2024
2.0.3 May 10, 2024
2.0.0 Mar 12, 2024
2.0.0-beta.0 Dec 21, 2023
0.14.0-beta1 Mar 9, 2021

#1390 in Magic Beans

Download history 9870/week @ 2024-04-05 10816/week @ 2024-04-12 12313/week @ 2024-04-19 13153/week @ 2024-04-26 11174/week @ 2024-05-03 13943/week @ 2024-05-10 13192/week @ 2024-05-17 12837/week @ 2024-05-24 13741/week @ 2024-05-31 11652/week @ 2024-06-07 12638/week @ 2024-06-14 12517/week @ 2024-06-21 9485/week @ 2024-06-28 8082/week @ 2024-07-05 10543/week @ 2024-07-12 9425/week @ 2024-07-19

39,525 downloads per month
Used in 647 crates (5 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
~230K SLoC