pub struct SecpSignatureOffsets {
    pub signature_offset: u16,
    pub signature_instruction_index: u8,
    pub eth_address_offset: u16,
    pub eth_address_instruction_index: u8,
    pub message_data_offset: u16,
    pub message_data_size: u16,
    pub message_instruction_index: u8,
}
Expand description

Offsets of signature data within a secp256k1 instruction.

See the module documentation for a complete description.

Fields

signature_offset: u16

Offset to 64-byte signature plus 1-byte recovery ID.

signature_instruction_index: u8

Within the transaction, the index of the instruction whose instruction data contains the signature.

eth_address_offset: u16

Offset to 20-byte Ethereum address.

eth_address_instruction_index: u8

Within the transaction, the index of the instruction whose instruction data contains the address.

message_data_offset: u16

Offset to start of message data.

message_data_size: u16

Size of message data in bytes.

message_instruction_index: u8

Within the transaction, the index of the instruction whose instruction data contains the message.

Trait Implementations

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

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.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.