package
2.3.3-beta1+incompatible
Repository: https://github.com/xinfinorg/xdposchain.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
BytesToBloom converts a byte slice to a bloom filter.
CacheLendingSigner cache signed lending transaction.
CacheOrderSigner cache signed order.
No description provided by the author
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
EncodeNonce converts the given integer to a block nonce.
LatestSigner returns the 'most permissive' Signer available for the given chain configuration.
LatestSignerForChainID returns the 'most permissive' Signer available.
LendingSender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
LendingSignTx signs the lending transaction using the given lending signer and private key.
LendingTxDifference returns a new set t which is the difference between a to b.
No description provided by the author
MakeSigner returns a Signer based on the given chain config and block number.
MarshalSignature encode signature.
MustSignNewTx creates a transaction and signs it.
NewBlock creates a new block.
NewBlockWithHeader creates a block with the given header data.
NewContractCreation creates an unsigned legacy transaction.
No description provided by the author
NewEIP2930Signer returns a signer that accepts EIP-2930 access list transactions, EIP-155 replay protected transactions, and legacy Homestead transactions.
NewLendingTransaction init lending from value.
NewLendingTransactionByNonce sort transaction by nonce.
No description provided by the author
NewOrderTransaction init order from value.
No description provided by the author
NewReceipt creates a barebone transaction receipt, copying the init fields.
NewTransaction creates an unsigned legacy transaction.
NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
NewTx creates a new transaction.
No description provided by the author
OrderSender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
OrderSignTx signs the order transaction using the given order signer and private key.
OrderTxDifference returns a new set t which is the difference between a to b.
Sender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
SignNewTx creates a transaction and signs it.
SignTx signs the transaction using the given signer and private key.
No description provided by the author
TxDifference returns a new set t which is the difference between a to b.
No description provided by the author
# Constants
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.
Transaction types.
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
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
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
# Variables
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
ErrInvalidLengdingSig invalidate signer.
No description provided by the author
ErrInvalidOrderSig invalidate signer.
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
AccessListTx is the data of EIP-2930 access list transactions.
AccessTuple is the element type of an access list.
Block represents an entire block in the Ethereum blockchain.
Block Info struct in XDPoS 2.0, used for vote message, etc.
Body is a simple (mutable, non-safe) data container for storing and moving a block's data contents (transactions and uncles) together.
EIP155Signer implements Signer using the EIP-155 rules.
No description provided by the author
The parsed extra fields in block header in XDPoS 2.0 (excluding the version byte) The version byte (consensus version) is the first byte in header's extra and it's only valid with value >= 2.
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
Header represents a block header in the Ethereum blockchain.
HomesteadTransaction implements TransactionInterface using the homestead rules.
LegacyTx is the transaction data of regular Ethereum transactions.
LendingTransaction lending transaction.
LendingTransactionByNonce sort transaction by nonce.
LendingTxSigner signer.
Log represents a contract log event.
Message is a fully derived transaction and implements core.Message
NOTE: In a future PR this will be removed.
OrderTransaction order transaction.
No description provided by the author
OrderTxSigner signer.
Quorum Certificate struct in XDPoS 2.0.
Receipt represents the results of a transaction.
BFT Sync Info message in XDPoS 2.0.
Timeout message in XDPoS 2.0.
Timeout Certificate struct in XDPoS 2.0.
No description provided by the author
Transaction is an Ethereum transaction.
TransactionsByPriceAndNonce 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.
TxByPriceAndTime implements both the sort and the heap interface, making it useful for all at once sorting as well as individually adding and removing elements.
Vote message in XDPoS 2.0.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
LendingSigner interface for lending signer transaction.
OrderSigner interface for order transaction.
Signer encapsulates transaction signature handling.
TxData is the underlying data of a transaction.
# Type aliases
AccessList is an EIP-2930 access list.
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.
LendingTransactions is a Transaction slice type for basic sorting.
LendingTxByNonce sorted lending by nonce defined.
LogForStorage is a wrapper around a Log that flattens and parses the entire content of a log including non-consensus fields.
OrderTransactions is a Transaction slice type for basic sorting.
OrderTxByNonce sorted order by nonce defined.
ReceiptForStorage is a wrapper around a Receipt that flattens and parses the entire content of a receipt, as opposed to only the consensus fields originally.
Receipts implements DerivableList for receipts.
Round number type in XDPoS 2.0.
No description provided by the author
[deprecated by eth/63] StorageBlock defines the RLP encoding of a Block stored in the state database.
Transactions is a Transaction slice type for basic sorting.
TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces.