package
1.0.0
Repository: https://github.com/cypherium/cypher.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
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.
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
EncodeNonce converts the given integer to a block nonce.
No description provided by the author
No description provided by the author
MakeSigner returns a Signer based on the given chain config and block number.
MakeSignerCypher returns a Signer based on the given chain config ,Transaction V, block number.
MakeSignerRecover returns a Signer based on the given chain config ,Transaction V, block number.
NewBlock creates a new block.
NewBlockWithHeader creates a block with the given header data.
No description provided by the author
No description provided by the author
No description provided by the author
NewBlock creates a new block.
NewBlockWithHeader creates a block with the given header data.
No description provided by the author
NewReceipt creates a barebone transaction receipt, copying the init fields.
No description provided by the author
NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
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.
SignTx signs the transaction using the given signer and private key.
TxDifference returns a new set which is the difference between a and b.

# Constants

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
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.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
types.ErrBlacklistedHash is returned if a block to import is on the blacklist.
No description provided by the author
No description provided by the author
types.ErrFutureBlock is returned when a block's timestamp is in the future according to the current node.
types.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
types.ErrInvalidNumber is returned if a block's number doesn't equal it's parent's plus one.
No description provided by the author
No description provided by the author
No description provided by the author
types.ErrKnownBlock is returned when a block to import is already known locally.
types.ErrNonceTooHigh is returned if the nonce of a transaction is higher than the next one expected based on the local chain.
No description provided by the author
No description provided by the author
types.ErrPrunedAncestor is returned when validating a block requires an ancestor that is known, but the state of which is not available.
No description provided by the author
No description provided by the author

# Structs

Block represents an entire block in the Ethereum blockchain.
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
EIP155Transaction implements Signer using the EIP155 rules.
No description provided by the author
Header represents a block header in the Ethereum blockchain.
HomesteadTransaction implements TransactionInterface using the homestead rules.
Block represents an entire block in the Cypherium blockchain.
No description provided by the author
Header represents a block header in the Cypherium blockchain.
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.
Receipt represents the results of a transaction.
No description provided by the author
No description provided by the author
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.

# Interfaces

ChainReader defines a small collection of methods needed to access the local blockchain during header and/or uncle verification.
DerivableList is the interface which can derive the hash.
Hasher is the tool used to calculate the hash of derivable list.
No description provided by the author
Signer encapsulates transaction signature handling.

# Type aliases

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
LogForStorage is a wrapper around a Log that flattens and parses the entire content of a log including non-consensus fields.
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 is a wrapper around a Receipt array to implement DerivableList.
[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.
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.