Crate libsecp256k1
source ·Expand description
Pure Rust implementation of the secp256k1 curve and fast ECDSA signatures. The secp256k1 curve is used extensively in Bitcoin and Ethereum-alike cryptocurrencies.
Modules§
- Curve related structs.
- Utilities to manipulate the secp256k1 curve parameters.
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.
Statics§
- A static ECMult context.
- A static ECMultGen context.
Functions§
- Recover public key from a signed message.
- Recover public key from a signed message, using the given context.
- Sign a message using the secret key.
- Sign a message using the secret key, with the given context.
- Check signature is a valid message signed by public key.
- Check signature is a valid message signed by public key, using the given context.