Expand description

Pure Rust implementation of the secp256k1 curve and fast ECDSA signatures. The secp256k1 curve is used excusively in Bitcoin and Ethereum alike cryptocurrencies.

Modules

Curve related structs.

Utilities to manipulate the secp256k1 curve parameters.

Macros

Define an affine group element constant.

Define an affine group storage constant.

Define a jacobian group element constant.

Structs

Hashed message input to an ECDSA signature.

Public key on a secp256k1 curve.

Tag used for public key recovery from signatures.

Secret key (256-bit) on a secp256k1 curve.

Shared secret using ECDH.

An ECDSA signature.

Enums

Format for public key parsing.

Functions

Recover public key from a signed message.

Sign a message using the secret key.

Check signature is a valid message signed by public key.