package
0.14.0
Repository: https://github.com/ava-labs/coreth.git
Documentation: pkg.go.dev

# Functions

GetPredicateResultBytes returns the predicate result bytes from the extra data and true iff the predicate results bytes have non-zero length.
NewPredicateTx returns a transaction with the predicateAddress/predicateBytes tuple packed and added to the access list of the transaction.
NewResults returns an empty predicate results.
No description provided by the author
PackPredicate packs [predicate] by delimiting the actual message with [PredicateEndByte] and zero padding to reach a length that is a multiple of 32.
ParseResults parses [b] into predicate results.
PreparePredicateStorageSlots populates the the predicate storage slots of a transaction's access list Note: if an address is specified multiple times in the access list, each storage slot for that address is appended to a slice of byte slices.
UnpackPredicate unpacks a predicate by stripping right padded zeroes, checking for the delimter, ensuring there is not excess padding, and returning the original message.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
EndByte is used as a delimiter for the bytes packed into a precompile predicate.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Results encodes the precompile predicate results included in a block on a per transaction basis.

# Type aliases

TxResults is a map of results for each precompile address to the resulting byte array.