Skip to main content

Crate libsecp256k1

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
Curve related structs.
util
Utilities to manipulate the secp256k1 curve parameters.

Structs§

Message
Hashed message input to an ECDSA signature.
PublicKey
Public key on a secp256k1 curve.
RecoveryId
Tag used for public key recovery from signatures.
SecretKey
Secret key (256-bit) on a secp256k1 curve.
SharedSecret
Shared secret using ECDH.
Signature
An ECDSA signature.

Enums§

Error
PublicKeyFormat
Format for public key parsing.

Statics§

ECMULT_CONTEXT
A static ECMult context.
ECMULT_GEN_CONTEXT
A static ECMultGen context.

Functions§

recover
Recover public key from a signed message.
recover_with_context
Recover public key from a signed message, using the given context.
sign
Sign a message using the secret key.
sign_with_context
Sign a message using the secret key, with the given context.
verify
Check signature is a valid message signed by public key.
verify_with_context
Check signature is a valid message signed by public key, using the given context.