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> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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