#[repr(C)]
pub struct Signature(_);
Expand description

Signature encoded as RSV components

Implementations

Get a slice into the ‘r’ portion of the data.

Get a slice into the ‘s’ portion of the data.

Get the recovery byte.

Encode the signature into RSV array (V altered to be in “Electrum” notation).

Parse bytes as a signature encoded as RSV (V in “Electrum” notation). May return empty (invalid) signature if given data has invalid length.

Create a signature object from the RSV triple.

Check if this is a “low” signature (that s part of the signature is in range 0x1 and 0x7FFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 5D576E73 57A4501D DFE92F46 681B20A0 (inclusive)). This condition may be required by some verification algorithms

Check if each component of the signature is in valid range. r is in range 0x1 and 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141 (inclusive) s is in range 0x1 and fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141 (inclusive) v is 0 or 1 Group order for secp256k1 defined as ‘n’ in “Standards for Efficient Cryptography” (SEC2) 2.7.1; used here as the upper bound for a valid (r, s, v) tuple

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

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

Performs the conversion.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.