Struct signatory::ecdsa::curve::secp256k1::Secp256k1[][src]

pub struct Secp256k1;

The secp256k1 elliptic curve: y² = x³ + 7 over a ~256-bit prime field

Trait Implementations

impl Copy for Secp256k1
[src]

impl Clone for Secp256k1
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Secp256k1
[src]

Formats the value using the given formatter. Read more

impl Default for Secp256k1
[src]

Returns the "default value" for a type. Read more

impl Eq for Secp256k1
[src]

impl PartialEq for Secp256k1
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Secp256k1
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl WeierstrassCurve for Secp256k1
[src]

CURVE_KIND: WeierstrassCurveKind = WeierstrassCurveKind::Secp256k1

Elliptic curve kind

Random 256-bit (32-byte) private scalar

Size of a compressed elliptic curve point serialized using Octet-String-to-Elliptic-Curve-Point encoding

Size of a raw uncompressed elliptic curve point sans the 0x04 tag byte added in the UncompressedPointSize value.

Size of a raw uncompressed elliptic curve point (i.e sans the 0x04 tag added by Octet-String-to-Elliptic-Curve-Point encoding)

Maximum size of an ASN.1 DER encoded signature

Concatenated r || s values (32-bytes each)

impl Signer<Secp256k1> for ECDSASigner
[src]

Return the public key that corresponds to the private key for this signer

impl RawDigestDERSigner<Secp256k1> for ECDSASigner
[src]

Compute an ASN.1 DER-encoded signature of the given 32-byte SHA-256 digest

impl RawDigestFixedSigner<Secp256k1> for ECDSASigner
[src]

Compute a compact, fixed-sized signature of the given 32-byte SHA-256 digest

impl SHA256DERSigner<Secp256k1> for ECDSASigner
[src]

Compute an ASN.1 DER-encoded ECDSA signature for the SHA-256 digest of the given message. Read more

impl SHA256FixedSigner<Secp256k1> for ECDSASigner
[src]

Compute a compact, fixed-width ECDSA signature for the SHA-256 digest of the given message. Read more

impl RawDigestDERVerifier<Secp256k1> for ECDSAVerifier
[src]

Verify an ASN.1 DER-encoded ECDSA signature against the given public key

impl RawDigestFixedVerifier<Secp256k1> for ECDSAVerifier
[src]

Verify a fixed-sized (a.k.a. "compact") ECDSA signature against the given public key

Auto Trait Implementations

impl Send for Secp256k1

impl Sync for Secp256k1