package
3.0.0-alpha5+incompatible
Repository: https://github.com/erigontech/erigon.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddressToDelegation adds the delegation prefix to the specified address.
Bloom9 returns the bloom filter for the given data.
BloomLookup is a convenience-method to check presence int he bloom filter.
BytesToBloom converts a byte slice to a bloom filter.
No description provided by the author
CopyHeader creates a deep copy of a block header to prevent side effects from modifying a header variable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecodeTransaction decodes a transaction either in RLP or canonical format.
No description provided by the author
DecodeWrappedTransaction as similar to DecodeTransaction, but type-3 (blob) transactions are expected to be wrapped with blobs/commitments/proofs.
deriveChainID derives the chain id from the given v parameter.
No description provided by the author
EncodeNonce converts the given integer to a block nonce.
No description provided by the author
No description provided by the author
LatestSigner returns the 'most permissive' Signer available for the given chain configuration.
LatestSignerForChainID returns the 'most permissive' Signer available.
LogsBloom returns the bloom bytes for the given logs.
No description provided by the author
MakeSigner returns a Signer based on the given chain config and block number.
No description provided by the author
MustSignNewTx creates a transaction and signs it.
NewBlock creates a new block.
NewBlockForAsembling - creating new block - which allow mutation of fileds.
NewBlockFromNetwork like NewBlock but used to create Block object when assembled from devp2p network messages when there is no reason to copy parts, or re-calculate headers fields.
NewBlockFromStorage like NewBlock but used to create Block object when read it from DB in this case no reason to copy parts, or re-calculate headers fields - they are all stored in DB.
NewBlockWithHeader creates a block with the given header data.
NewContractCreation creates an unsigned legacy transaction.
NewEIP1559Transaction creates an unsigned eip1559 transaction.
NewEmptyHeaderForAssembling - returns mutable header object - for assembling/sealing/etc..
No description provided by the author
NewReceipt creates a barebone transaction receipt, copying the init fields.
NewTransaction creates an unsigned legacy transaction.
NewTransactionsFixedOrder creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
ParseDelegation tries to parse the address from a delegation slice.
ParseDepositLogs extracts the EIP-6110 deposit values from logs emitted by BeaconDepositContract.
No description provided by the author
SignNewTx creates a transaction and signs it.
SignTx signs the transaction using the given signer and private key.
TxCountToTxAmount converts number of transactions in block to TxAmount.
TxDifference returns a new set which is the difference between a and b.
No description provided by the author
No description provided by the author
Parse transaction without envelope.
No description provided by the author
Remove everything but the payload body from the wrapper - this is not used, for reference only.

# Constants

Transaction types.
Transaction types.
BloomBitLength represents the number of bits used in a header log bloom.
BloomByteLength represents the number of bytes used in a header log bloom.
No description provided by the author
signature size.
addr + sourcePubkey + targetPubkey.
No description provided by the author
No description provided by the author
BLSPubKeyLen + WithdrawalCredentialsLen + 8 + BLSSigLen + 8.
No description provided by the author
Transaction types.
Transaction types.
KZGCommitment & KZGProof sizes.
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
Transaction types.
withdrawalCredentials size.
addr + pubkey + amt.
No description provided by the author

# Variables

DepositABI is an ABI instance of beacon chain deposit events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Fixed number of extra-data suffix bytes reserved for signer seal.
Fixed number of extra-data prefix bytes reserved for signer vanity.
No description provided by the author
This is introduced because of the Tendermint IAVL Merkle Proof verification exploitation.

# Structs

AccessListTx is the data of EIP-2930 access list transactions.
No description provided by the author
No description provided by the author
No description provided by the author
Block represents an entire block in the Ethereum blockchain.
No description provided by the author
Body is a simple (mutable, non-safe) data container for storing and moving a block's data contents (transactions and uncles) together.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Genesis specifies the header fields, state of a genesis block.
GenesisAccount is an account in the state of the genesis block.
GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.
Header represents a block header in the Ethereum blockchain.
No description provided by the author
LegacyTx is the transaction data of regular Ethereum transactions.
Log represents a contract log event.
Message is a fully derived transaction and implements core.Message.
Alternative representation of the Block.
RawBody is semi-parsed variant of Body, where transactions are still unparsed RLP strings It is useful in the situations when actual transaction context is not important, for example when downloading Block bodies from other peers or serving them to other peers.
Receipt represents the results of a transaction.
No description provided by the author
Signer encapsulates transaction signature handling.
StateSyncData represents state received from Ethereum Blockchain.
TransactionMisc is collection of miscellaneous fields for transaction that is supposed to be embedded into concrete implementations of different transaction types.
TransactionsFixedOrder represents a set of transactions that can return transactions in a profit-maximizing sorted order, while supporting removing entire batches of transactions for non-executable accounts.
Withdrawal represents a validator withdrawal from the consensus layer.

# Interfaces

No description provided by the author
Transaction is an Ethereum transaction.
No description provided by the author

# Type aliases

BaseTxnID represents internal auto-incremented transaction number in block, may be different across the nodes e.g.
RLP-marshalled legacy transactions and binary-marshalled (not wrapped into an RLP string) typed (EIP-2718) transactions.
No description provided by the author
No description provided by the author
No description provided by the author
A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.
No description provided by the author
Bloom represents a 2048 bit bloom filter.
No description provided by the author
No description provided by the author
No description provided by the author
GenesisAlloc specifies the initial state that is part of the genesis block.
No description provided by the author
No description provided by the author
No description provided by the author
LogForStorage is a wrapper around a Log that flattens and parses the entire content of a log including non-consensus fields.
No description provided by the author
ReceiptForStorage is a wrapper around a Receipt with RLP serialization that omits the Bloom field and deserialization that re-computes it.
Receipts implements DerivableList for receipts.
No description provided by the author
Transactions implements DerivableList for transactions.
TransactionsGroupedBySender - lists of transactions grouped by sender.
TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces.
Withdrawals implements DerivableList for withdrawals.