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

#8 in #cosmwasm

Download history 12126/week @ 2024-07-18 11268/week @ 2024-07-25 10321/week @ 2024-08-01 13672/week @ 2024-08-08 12186/week @ 2024-08-15 10025/week @ 2024-08-22 12364/week @ 2024-08-29 12440/week @ 2024-09-05 12052/week @ 2024-09-12 12217/week @ 2024-09-19 14229/week @ 2024-09-26 10602/week @ 2024-10-03 11015/week @ 2024-10-10 11590/week @ 2024-10-17 11738/week @ 2024-10-24 12100/week @ 2024-10-31

48,208 downloads per month
Used in 703 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