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
Source§impl PartialEq for SecpSignatureOffsets
impl PartialEq for SecpSignatureOffsets
Source§impl Serialize for SecpSignatureOffsets
impl Serialize for SecpSignatureOffsets
impl Eq for SecpSignatureOffsets
impl StructuralPartialEq for SecpSignatureOffsets
Auto Trait Implementations§
impl Freeze for SecpSignatureOffsets
impl RefUnwindSafe for SecpSignatureOffsets
impl Send for SecpSignatureOffsets
impl Sync for SecpSignatureOffsets
impl Unpin for SecpSignatureOffsets
impl UnwindSafe for SecpSignatureOffsets
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more