#cosmwasm

cosmwasm-crypto

Crypto bindings for cosmwasm contracts

87 releases (35 stable)

2.0.0-rc.1 Feb 9, 2024
2.0.0-beta.1 Jan 22, 2024
2.0.0-beta.0 Dec 21, 2023
1.5.3 Jan 31, 2024
0.14.0-beta1 Mar 9, 2021

#1321 in Magic Beans

Download history 13022/week @ 2023-11-02 20564/week @ 2023-11-09 26476/week @ 2023-11-16 15210/week @ 2023-11-23 10870/week @ 2023-11-30 13865/week @ 2023-12-07 12459/week @ 2023-12-14 8032/week @ 2023-12-21 7698/week @ 2023-12-28 11410/week @ 2024-01-04 13868/week @ 2024-01-11 12975/week @ 2024-01-18 11355/week @ 2024-01-25 12031/week @ 2024-02-01 16734/week @ 2024-02-08 13741/week @ 2024-02-15

56,319 downloads per month
Used in 559 crates (5 directly)

Apache-2.0

190KB
827 lines

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 sepc256k1 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

License

This package is part of the cosmwasm repository, licensed under the Apache License 2.0 (see NOTICE and LICENSE).

Dependencies

~6MB
~121K SLoC