Skip to main content

Crate eth_valkyoth_protocol

Crate eth_valkyoth_protocol 

Source
Expand description

Fork-aware Ethereum protocol validation state.

Structs§

AccessList
Borrowed EIP-2930 access list.
AccessListEntries
Iterator over borrowed access-list entries.
AccessListEntry
Borrowed EIP-2930 access-list entry.
AccessListStorageKeyItems
Iterator over borrowed storage keys.
AccessListStorageKeys
Borrowed storage-key list for one access-list address.
BlobVersionedHashItems
Iterator over borrowed blob versioned hashes.
BlobVersionedHashes
Borrowed EIP-4844 blob versioned hash list.
BlockHash
Domain-separated execution block hash.
Canonical
Canonical wire form and type-specific structure were checked.
CanonicalValidationProof
Proof that canonical transaction structure was checked.
ChainSpec
Explicit chain rules used to select fork validation context.
Decoded
Raw wire input was accepted by the codec.
ForkSpec
Ethereum fork rules selected for a validation operation.
ForkValidated
Fork-specific validity was checked.
ForkValidationProof
Proof that fork-specific transaction validity was checked.
InvalidSignatureYParity
Invalid EIP-2930/EIP-1559 signature y-parity bit.
LogsBloom
Ethereum logs bloom filter bytes.
ReceiptLog
Borrowed receipt log entry.
ReceiptLogEntries
Iterator over receipt logs.
ReceiptLogTopicItems
Iterator over log topics.
ReceiptLogTopics
Borrowed log topics list.
ReceiptLogs
Borrowed receipt logs list.
ReceiptLogsBloom
Ethereum receipt logs bloom filter bytes.
SenderRecovered
Sender recovery succeeded.
SenderRecoveryProof
Proof that sender recovery succeeded.
SetCodeAuthorityAccount
Caller-provided authority account state.
SetCodeAuthorization
Borrowed EIP-7702 authorization tuple.
SetCodeAuthorizationAuthority
Authority recovered for one authorization tuple.
SetCodeAuthorizationChainId
EIP-7702 authorization chain ID.
SetCodeAuthorizationItems
Iterator over borrowed EIP-7702 authorization tuples.
SetCodeAuthorizationList
Borrowed EIP-7702 authorization list.
SetCodeTransactionValidationContext
Validation context for EIP-7702 set-code transaction validity.
StateTransitionError
Failed state transition that returns the original transaction token.
Transaction
A transaction token whose validation state is tracked at compile time.
TypedReceiptEnvelope
Borrowed EIP-2718 typed receipt shell.
TypedTransactionEnvelope
Borrowed EIP-2718 typed transaction shell.
UnvalidatedAccessListTransaction
Borrowed EIP-2930 transaction decoded only into field domains.
UnvalidatedBlobTransaction
Borrowed EIP-4844 transaction decoded only into field domains.
UnvalidatedBlockHeader
Borrowed execution-layer header decoded only into field domains.
UnvalidatedDynamicFeeTransaction
Borrowed EIP-1559 transaction decoded only into field domains.
UnvalidatedLegacyTransaction
Borrowed legacy transaction decoded only into field domains.
UnvalidatedReceipt
Borrowed receipt decoded only into field domains.
UnvalidatedSetCodeTransaction
Borrowed EIP-7702 set-code transaction decoded only into field domains.
UnvalidatedWithdrawal
Unvalidated EIP-4895 withdrawal entry.
UnvalidatedWithdrawals
Borrowed withdrawals list decoded only into EIP-4895 field domains.
ValidSetCodeTransaction
EIP-7702 set-code transaction that passed context validity checks.
ValidationContext
Validation context that must be explicit for consensus-sensitive operations.
WithdrawalAmountGwei
EIP-4895 withdrawal amount in Gwei.
WithdrawalIndex
EIP-4895 global withdrawal index.
WithdrawalItems
Iterator over borrowed withdrawal entries.
WithdrawalValidatorIndex
Consensus-layer validator index referenced by a withdrawal.

Enums§

AccessListTransactionDecodeError
EIP-2930 access-list transaction decode failure.
AccessListTransactionDecodeErrorCategory
Stable high-level access-list transaction decode error categories.
AccessListTransactionField
EIP-2930 transaction field identifier.
AccessListTransactionTo
EIP-2930 transaction call/create target.
BlobTransactionDecodeError
EIP-4844 blob transaction decode failure.
BlobTransactionDecodeErrorCategory
Stable high-level blob transaction decode error categories.
BlobTransactionField
EIP-4844 transaction field identifier.
BlockHeaderDecodeError
Execution header decode failure.
BlockHeaderDecodeErrorCategory
Stable high-level header decode error categories.
BlockHeaderField
Header field identifier.
DynamicFeeTransactionDecodeError
EIP-1559 dynamic-fee transaction decode failure.
DynamicFeeTransactionDecodeErrorCategory
Stable high-level dynamic-fee transaction decode error categories.
DynamicFeeTransactionField
EIP-1559 transaction field identifier.
FeatureError
Feature availability failure.
ForkActivation
Unambiguous fork activation rule.
ForkError
Fork selection or activation failure.
Hardfork
Execution-layer hardfork identity used by explicit chain specs.
HeaderFieldSet
Fork-specific execution header field set.
LegacyTransactionDecodeError
Legacy transaction decode failure.
LegacyTransactionDecodeErrorCategory
Stable high-level legacy transaction decode error categories.
LegacyTransactionField
Legacy transaction field identifier.
LegacyTransactionTo
Legacy transaction call/create target.
ProtocolError
Protocol validation failure.
ProtocolErrorCategory
Stable high-level protocol error categories.
ReceiptDecodeError
Receipt decode failure.
ReceiptDecodeErrorCategory
Stable high-level receipt decode error categories.
ReceiptEnvelope
Borrowed receipt envelope shell.
ReceiptField
Receipt field identifier.
ReceiptKind
Receipt domain after envelope classification.
ReceiptStatusOrStateRoot
Receipt status code or pre-Byzantium state root.
SetCodeAuthorityCode
Caller-reviewed authority account code state.
SetCodeAuthorizationField
EIP-7702 authorization tuple sub-field identifier.
SetCodeTransactionDecodeError
EIP-7702 set-code transaction decode failure.
SetCodeTransactionDecodeErrorCategory
Stable high-level set-code transaction decode error categories.
SetCodeTransactionField
EIP-7702 transaction field identifier.
SetCodeTransactionValidityError
EIP-7702 set-code transaction validity failure.
SetCodeTransactionValidityErrorCategory
Stable high-level set-code transaction validity categories.
SignatureYParity
EIP-2930 signature y parity.
TransactionEncodeError
Transaction envelope encoding failure.
TransactionEncodeErrorCategory
Stable high-level transaction encode error categories.
TransactionEnvelope
Borrowed transaction envelope shell.
TransactionEnvelopeError
Transaction envelope classification failure.
TransactionEnvelopeErrorCategory
Stable high-level transaction envelope error categories.
UnvalidatedTransaction
Supported unvalidated transaction domains accepted by the encoder.
WithdrawalDecodeError
Withdrawal decode failure.
WithdrawalDecodeErrorCategory
Stable high-level withdrawal decode error categories.
WithdrawalField
Withdrawal field identifier.

Constants§

ACCESS_LIST_TRANSACTION_FIELD_COUNT
Number of fields in an EIP-2930 access-list transaction payload.
ACCESS_LIST_TRANSACTION_TYPE
EIP-2930 transaction type byte.
BLOB_TRANSACTION_FIELD_COUNT
Number of fields in an EIP-4844 blob transaction payload.
BLOB_TRANSACTION_TYPE
EIP-4844 blob transaction type byte.
CANCUN_HEADER_FIELD_COUNT
Cancun execution header field count, including blob gas fields and parent beacon block root.
DYNAMIC_FEE_TRANSACTION_FIELD_COUNT
Number of fields in an EIP-1559 dynamic-fee transaction payload.
DYNAMIC_FEE_TRANSACTION_TYPE
EIP-1559 dynamic-fee transaction type byte.
EIP_2718_MAX_TYPED_PREFIX
Largest single-byte EIP-2718 typed transaction prefix.
EIP_2718_MAX_TYPED_RECEIPT_PREFIX
Largest single-byte EIP-2718 typed receipt prefix.
EIP_2718_RECEIPT_SCALAR_PREFIX_START
First RLP scalar prefix that cannot be a typed receipt or legacy list.
EIP_2718_RESERVED_PREFIX
Prefix reserved by EIP-2718 as a future extension sentinel.
EIP_2718_RESERVED_RECEIPT_PREFIX
Prefix reserved by EIP-2718 as a future extension sentinel.
EIP_2718_SCALAR_PREFIX_START
First RLP scalar prefix that cannot be a typed transaction envelope or a legacy transaction list.
EIP_2718_TYPED_ZERO_PREFIX
EIP-2718 byte value reserved by this crate for the legacy transaction domain.
EIP_2718_TYPED_ZERO_RECEIPT_PREFIX
EIP-2718 byte value reserved by this crate for the legacy receipt domain.
EIP_7702_DELEGATION_INDICATOR_PREFIX
EIP-7702 delegation indicator prefix bytes.
LEGACY_HEADER_FIELD_COUNT
Pre-London execution header field count.
LEGACY_RECEIPT_PREFIX_START
First byte used by canonical RLP short-list legacy receipts.
LEGACY_TRANSACTION_FIELD_COUNT
Number of fields in a canonical legacy transaction RLP list.
LEGACY_TRANSACTION_PREFIX_START
First byte used by canonical RLP short-list legacy transactions.
LONDON_HEADER_FIELD_COUNT
London execution header field count, including base_fee_per_gas.
PRAGUE_HEADER_FIELD_COUNT
Prague execution header field count, including requests_hash.
RECEIPT_FIELD_COUNT
Number of fields in a legacy or typed receipt payload.
SET_CODE_AUTHORIZATION_FIELD_COUNT
Number of fields in an EIP-7702 authorization tuple.
SET_CODE_AUTHORIZATION_MAGIC
EIP-7702 authorization signing magic byte.
SET_CODE_TRANSACTION_FIELD_COUNT
Number of fields in an EIP-7702 set-code transaction payload.
SET_CODE_TRANSACTION_TYPE
EIP-7702 set-code transaction type byte.
SHANGHAI_HEADER_FIELD_COUNT
Shanghai execution header field count, including withdrawals_root.
WITHDRAWAL_FIELD_COUNT
Number of fields in an EIP-4895 withdrawal entry.

Traits§

SetCodeAuthorityStateView
Caller-provided authority account-state view.
SetCodeAuthorizationAuthorityView
Caller-provided source of recovered authorization authorities.

Functions§

decode_access_list_transaction
Decodes an EIP-2930 access-list transaction into unvalidated field domains.
decode_blob_transaction
Decodes an EIP-4844 blob transaction into unvalidated field domains.
decode_block_header
Decodes one canonical execution block header under explicit limits.
decode_dynamic_fee_transaction
Decodes an EIP-1559 dynamic-fee transaction into unvalidated field domains.
decode_legacy_transaction
Decodes a canonical legacy transaction into unvalidated field domains.
decode_receipt
Decodes a legacy or typed receipt into unvalidated field domains.
decode_receipt_envelope
Classifies a borrowed receipt envelope under explicit decode limits.
decode_set_code_transaction
Decodes an EIP-7702 set-code transaction into unvalidated field domains.
decode_transaction_envelope
Classifies a borrowed transaction envelope under explicit decode limits.
decode_withdrawals
Decodes an EIP-4895 withdrawals list under explicit limits.
encode_access_list_signing_preimage
Encodes the EIP-2930 signing preimage.
encode_access_list_transaction
Canonically encodes an EIP-2930 access-list transaction.
encode_blob_signing_preimage
Encodes the EIP-4844 signing preimage.
encode_blob_transaction
Canonically encodes an EIP-4844 blob transaction.
encode_dynamic_fee_signing_preimage
Encodes the EIP-1559 signing preimage.
encode_dynamic_fee_transaction
Canonically encodes an EIP-1559 dynamic-fee transaction.
encode_legacy_eip155_signing_preimage
Encodes the EIP-155 legacy signing preimage.
encode_legacy_transaction
Canonically encodes a legacy transaction.
encode_set_code_authorization_signing_preimage
Encodes the EIP-7702 authorization signing preimage.
encode_set_code_signing_preimage
Encodes the EIP-7702 set-code transaction signing preimage.
encode_set_code_transaction
Canonically encodes an EIP-7702 set-code transaction.
encode_transaction
Canonically encodes an admitted unvalidated transaction envelope.
encoded_access_list_signing_preimage_len
Returns the EIP-2930 signing preimage length.
encoded_access_list_transaction_len
Returns the canonical encoded EIP-2930 transaction length.
encoded_blob_signing_preimage_len
Returns the EIP-4844 signing preimage length.
encoded_blob_transaction_len
Returns the canonical encoded EIP-4844 transaction length.
encoded_dynamic_fee_signing_preimage_len
Returns the EIP-1559 signing preimage length.
encoded_dynamic_fee_transaction_len
Returns the canonical encoded EIP-1559 transaction length.
encoded_legacy_eip155_signing_preimage_len
Returns the EIP-155 legacy signing preimage length.
encoded_legacy_transaction_len
Returns the canonical encoded legacy transaction length.
encoded_set_code_authorization_signing_preimage_len
Returns the EIP-7702 authorization signing preimage length.
encoded_set_code_signing_preimage_len
Returns the EIP-7702 set-code transaction signing preimage length.
encoded_set_code_transaction_len
Returns the canonical encoded EIP-7702 transaction length.
encoded_transaction_len
Returns the canonical encoded transaction envelope length.
validate_set_code_transaction_context
Validates EIP-7702 context rules for a decoded set-code transaction.

Type Aliases§

DynamicFeeTransactionTo
EIP-1559 transaction call/create target.