package
0.1.2
Repository: https://github.com/qwslane/go-quai.git
Documentation: pkg.go.dev

# Functions

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.
CalculateBlockQiTxGas calculates the amount of gas a Qi tx uses in a block (for block gas limit calculation).
CalculateIntrinsicQiTxGas calculates the intrinsic gas for a Qi tx without ETXs.
CalculateQiTxGas calculates the total amount of gas a Qi tx uses (for fee calculation).
No description provided by the author
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
No description provided by the author
No description provided by the author
No description provided by the author
CreateBloom creates a bloom filter out of the give Receipts (+Logs).
DeriveSha creates the tree hashes of transactions and receipts in a block header.
No description provided by the author
No description provided by the author
No description provided by the author
Construct an empty header.
No description provided by the author
No description provided by the author
EncodeNonce converts the given integer to a block nonce.
This function must only be used by tests.
IsCoinBaseTx determines whether or not a transaction is a coinbase.
It checks if an tx is a conversion type.
No description provided by the author
No description provided by the author
LatestSigner returns the 'most permissive' Signer available for the given chain configuration.
LatestSigner returns the 'most permissive' Signer available for the given chain configuration.
LogsBloom returns the bloom bytes for the given logs.
MakeSigner returns a Signer based on the given chain config and block number.
MustSignNewTx creates a transaction and signs it.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOutPoint returns a new Qi transaction outpoint point with the provided hash and index.
No description provided by the author
NewReceipt creates a barebone transaction receipt, copying the init fields.
NewSigner instantiates a new signer object.
No description provided by the author
NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
NewTx creates a new transaction.
NewTxIn returns a new bitcoin transaction input with the provided previous outpoint point and signature script with a default sequence of MaxTxInSequenceNum.
NewTxOut returns a new Qi transaction output with the provided transaction value and address.
NewTxWithMinerFee creates a wrapped transaction, calculating the effective miner gasTipCap if a base fee is provided.
NewUtxoEntry returns a new UtxoEntry built from the arguments.
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
RlpHash encodes x and hashes the encoded bytes.
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.
TxDifference returns a new set which is the difference between a and b.
TxDifference returns a new set which is the difference between a and b without including ETXs.
No description provided by the author

# Constants

Work object types.
Work object 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
ETX types.
ETX types.
ETX types.
ETX types.
Transaction types.
Work object 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
Work object types.
Transaction types.
Transaction types.
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusLocked is the status code of a transaction if the transaction value is locked.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
No description provided by the author
No description provided by the author
Work object types.
Work object types.
ETX types.

# Variables

Denominations is a map of denomination to number of Qi.
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
ErrGasLimitReached is returned by the gas pool if the amount of gas required by a transaction is higher than what's left in the block.
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
This is just a default; determine correct value later.
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

# Structs

AccessTuple is the element type of an access list.
No description provided by the author
Betas struct holds the beta0 and beta1 of the logistic regression for each prime block.
No description provided by the author
The EtxSet is a list of ETX hashes, ETXs and the block heights in which they became available.
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 Quai blockchain.
No description provided by the author
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.
No description provided by the author
OutPoint defines a Qi data type that is used to track previous outputs.
No description provided by the author
No description provided by the author
PendingEtxs are ETXs which have been emitted from the zone which produced the given block.
PendingEtxsRollup is Header and EtxRollups of that header that should be forward propagated.
PendingHeader stores the header and termini value associated with the header.
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
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
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
Receipt represents the results of a transaction.
No description provided by the author
No description provided by the author
SignerV1 is the mainnet launch version of the signer module.
SpentTxOut contains a spent transaction output and potentially additional contextual information such as whether or not it was contained in a coinbase transaction, the version of the transaction it was contained in, and which block height the containing transaction was included in.
SpentUtxoEntry houses details about a spent UtxoEntry.
Termini stores the dom terminus (i.e the previous dom block) and subTermini(i.e the dom blocks that have occured in the subordinate chains).
No description provided by the author
Transaction can be a Quai, Qi, or External 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.
TxIn defines a Qi transaction input.
No description provided by the author
TxOut defines a Qi transaction output.
No description provided by the author
TxWithMinerFee wraps a transaction with its gas price or effective miner gasTipCap.
UtxoEntry houses details about an individual transaction output in a utxo view such as whether or not it was contained in a coinbase tx, the height of the block that contains the tx, whether or not it is spent, its public key script, and how much it pays.
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

# Interfaces

DerivableList is the input to DeriveSha.
Signer encapsulates transaction signature handling.
TrieHasher is the tool used to calculate the hash of derivable list.
TxData is the underlying data of a transaction.

# Type aliases

AccessList is an access list.
BlockManifest is a list of block hashes, which implements DerivableList.
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.
Bloom represents a 2048 bit bloom filter.
GasPool tracks the amount of gas available during execution of the transactions in a block.
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.
Logs is a list of log objects.
MixedAccessList is an access list of MixedCaseAddresses.
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.
ReceiptsForStorage is a list of ReceiptForStorage.
No description provided by the author
Transactions implements DerivableList for transactions.
TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces.
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.
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