pub struct Signature {
    pub compact: Bytes64,
}
Expand description

An ECDSA signature. Encoded as:

|    32 bytes   ||           32 bytes           |
[256-bit r value][1-bit v value][255-bit s value]

The encoding of the signature was derived from Compact Signature Representation.

Signatures are represented as the r and s (each 32 bytes), and v (1-bit) values of the signature. r and s take on their usual meaning while v is used for recovering the public key from a signature more quickly.

Fields

compact: Bytes64

Implementations

Verifies that signature on message was produced by address

Recovers the Fuel address which was used to sign the given message. Note that this message can be either the original message or its digest (hashed message). Both can be used to recover the address of the signature.

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

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

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

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.