ECDSA Verify
ecdsa_verify is a pure Rust crate for verifying ECDSA (Elliptic Curve Digital
Signature Algorithm) signatures. This crate provides functions to handle
elliptic curve operations and verify signatures against given message hashes
and public keys.
Features
- Supports the
secp256k1andsecp256r1elliptic curves. - Implements elliptic curve operations in Jacobian coordinates.
- Provides a function to verify ECDSA signatures.
Installation
Add the following to your Cargo.toml:
[]
= "1.1"
Usage
use ;
use BigInt;
use Zero;
Benchmarks
To benchmark the extension, ensure you are using the Rust Nightly toolchain, then use the following command:
To run the benchmarks, execute:
Benchmark Results
The benchmarks were run on an Intel Core i9-14900K. The results are as follows:
$ cargo bench
Running benches/ecdsa_verify.rs (target/release/deps/ecdsa_verify-f2c7ac91fb3e2e9c)
test bench_verify ... bench: 864,913 ns/iter (+/- 13,821)
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
- Based on v2.2.0 of the starkbank-ecdsa Python library by Star Bank.
Contributing
Bugfixes, optimizations and simplifications are welcome, but no more features. Please open an issue or submit a pull request.