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§
source§impl Debug for SecpSignatureOffsets
impl Debug for SecpSignatureOffsets
source§impl Default for SecpSignatureOffsets
impl Default for SecpSignatureOffsets
source§fn default() -> SecpSignatureOffsets
fn default() -> SecpSignatureOffsets
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecpSignatureOffsets
impl<'de> Deserialize<'de> for SecpSignatureOffsets
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more