#ethereum #bitcoin #crypto #schnorr-signature #secp256k1 #ecc

yanked p256k

secp256k1 elliptic curve library written in pure Rust with support for ECDSA signing/verification/public-key recovery, Taproot Schnorr signatures (BIP340), Elliptic Curve Diffie-Hellman (ECDH), and general-purpose secp256k1 elliptic curve group operations which can be used to implement arbitrary protocols

0.0.1-alpha Jul 30, 2024
0.0.0 Jul 18, 2023

#33 in #schnorr-signature

Download history 101/week @ 2024-07-25 24/week @ 2024-08-01 12/week @ 2024-09-12 5/week @ 2024-09-19 1/week @ 2024-09-26

64 downloads per month

Apache-2.0 OR MIT

320KB
6.5K SLoC

RustCrypto: secp256k1 elliptic curve

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

secp256k1 elliptic curve library written in pure Rust with support for ECDSA signing/verification/public-key recovery, Taproot Schnorr signatures as defined in BIP340, Elliptic Curve Diffie-Hellman (ECDH), and general-purpose secp256k1 elliptic curve group operations which can be used to implement arbitrary group-based protocols.

Uses traits and base types from the elliptic-curve crate.

Optionally includes a secp256k1 arithmetic feature providing scalar and point types (projective/affine) with support for constant-time scalar multiplication. Additionally, implements traits from the group crate which can be used to generically construct group-based protocols.

Documentation

Minimum Supported Rust Version

Rust 1.73 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

License

All crates licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–3MB
~64K SLoC