Versions in this module Expand all Collapse all v1 v1.0.4 Mar 23, 2020 v1.0.0 Feb 7, 2020 Changes in this version + const MinimumVirtualDifficulty v0 v0.9.0 Dec 16, 2019 Changes in this version + const BloomBitLength + const BloomByteLength + const EspilonStake + const MinimumTargetDifficulty + const ReceiptStatusFailed + const ReceiptStatusSuccessful + const SystemStakeDBKey + var Bloom9 = bloom9 + var CryptoNightVariant = 2 + var EmptyRootHash = DeriveSha(Transactions{}) + var ErrInvalidChainId = errors.New("invalid chain id for signer") + var ErrInvalidSig = errors.New("invalid transaction v, r, s values") + var PrecompliledDBContract = common.BytesToAddress([]byte{ ... }) + var PrecompliledSystemContract = common.BytesToAddress([]byte{ ... }) + var StakedTable = ebkdb.GetDBTableName(PrecompliledSystemContract, "Staked") + func BloomLookup(bin Bloom, topic bytesBacked) bool + func DeriveSha(list DerivableList) common.Hash + func LogsBloom(logs []*Log) *big.Int + func Number(b1, b2 *Block) bool + func Sender(signer Signer, tx *Transaction) (common.Address, error) + func VirtualCapacity(from common.Address, ebakusState *ebakusdb.Snapshot) float64 + type Block struct + ReceivedAt time.Time + ReceivedFrom interface{} + func NewBlock(header *Header, txs []*Transaction, receipts []*Receipt, ...) *Block + func NewBlockWithHeader(header *Header) *Block + func (b *Block) Bloom() Bloom + func (b *Block) Body() *Body + func (b *Block) DecodeRLP(s *rlp.Stream) error + func (b *Block) DelegateDiff() DelegateDiff + func (b *Block) EncodeRLP(w io.Writer) error + func (b *Block) GasLimit() uint64 + func (b *Block) GasUsed() uint64 + func (b *Block) Hash() common.Hash + func (b *Block) Header() *Header + func (b *Block) Number() *big.Int + func (b *Block) NumberU64() uint64 + func (b *Block) ParentHash() common.Hash + func (b *Block) ReceiptHash() common.Hash + func (b *Block) Root() common.Hash + func (b *Block) SanityCheck() error + func (b *Block) Size() common.StorageSize + func (b *Block) String() string + func (b *Block) Time() uint64 + func (b *Block) Transaction(hash common.Hash) *Transaction + func (b *Block) Transactions() Transactions + func (b *Block) TxHash() common.Hash + func (b *Block) WithBody(transactions []*Transaction) *Block + func (b *Block) WithSeal(header *Header) *Block + type BlockBy func(b1, b2 *Block) bool + func (self BlockBy) Sort(blocks Blocks) + type Blocks []*Block + type Bloom [BloomByteLength]byte + func BytesToBloom(b []byte) Bloom + func CreateBloom(receipts Receipts) Bloom + func (b *Bloom) Add(d *big.Int) + func (b *Bloom) SetBytes(d []byte) + func (b *Bloom) UnmarshalText(input []byte) error + func (b Bloom) Big() *big.Int + func (b Bloom) Bytes() []byte + func (b Bloom) MarshalText() ([]byte, error) + func (b Bloom) Test(test *big.Int) bool + func (b Bloom) TestBytes(test []byte) bool + type Body struct + Transactions []*Transaction + type DelegateArray []common.Address + func (a DelegateArray) Diff(b DelegateArray) DelegateDiff + type DelegateDiff []DelegateItem + type DelegateItem struct + DelegateAddress common.Address + DelegateNumber byte + Pos byte + func (d *DelegateItem) DecodeRLP(s *rlp.Stream) error + func (d *DelegateItem) EncodeRLP(w io.Writer) error + type DerivableList interface + GetRlp func(i int) []byte + Len func() int + type EIP155Signer struct + func NewEIP155Signer(chainId *big.Int) EIP155Signer + func (s EIP155Signer) Equal(s2 Signer) bool + func (s EIP155Signer) Hash(tx *Transaction) common.Hash + func (s EIP155Signer) Sender(tx *Transaction) (common.Address, error) + func (s EIP155Signer) SignatureValues(tx *Transaction, sig []byte) (R, S, V *big.Int, err error) + type FrontierSigner struct + func (fs FrontierSigner) Hash(tx *Transaction) common.Hash + func (fs FrontierSigner) Sender(tx *Transaction) (common.Address, error) + func (fs FrontierSigner) SignatureValues(tx *Transaction, sig []byte) (r, s, v *big.Int, err error) + func (s FrontierSigner) Equal(s2 Signer) bool + type Header struct + Bloom Bloom + DelegateDiff DelegateDiff + GasLimit uint64 + GasUsed uint64 + Number *big.Int + ParentHash common.Hash + ReceiptHash common.Hash + Root common.Hash + Signature []byte + Time uint64 + TxHash common.Hash + func CopyHeader(h *Header) *Header + func (h *Header) Hash() common.Hash + func (h *Header) SanityCheck() error + func (h *Header) Size() common.StorageSize + func (h *Header) String() string + func (h *Header) UnmarshalJSON(input []byte) error + func (h Header) MarshalJSON() ([]byte, error) + type HomesteadSigner struct + func (hs HomesteadSigner) Sender(tx *Transaction) (common.Address, error) + func (hs HomesteadSigner) SignatureValues(tx *Transaction, sig []byte) (r, s, v *big.Int, err error) + func (s HomesteadSigner) Equal(s2 Signer) bool + type Log struct + Address common.Address + BlockHash common.Hash + BlockNumber uint64 + Data []byte + Index uint + Removed bool + Topics []common.Hash + TxHash common.Hash + TxIndex uint + func (l *Log) DecodeRLP(s *rlp.Stream) error + func (l *Log) EncodeRLP(w io.Writer) error + func (l *Log) UnmarshalJSON(input []byte) error + func (l Log) MarshalJSON() ([]byte, error) + type LogForStorage Log + func (l *LogForStorage) DecodeRLP(s *rlp.Stream) error + func (l *LogForStorage) EncodeRLP(w io.Writer) error + type Message struct + func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, ...) Message + func (m Message) CheckNonce() bool + func (m Message) Data() []byte + func (m Message) From() common.Address + func (m Message) Gas() uint64 + func (m Message) GasPrice() *big.Int + func (m Message) Nonce() uint64 + func (m Message) To() *common.Address + func (m Message) Value() *big.Int + type Receipt struct + BlockHash common.Hash + BlockNumber *big.Int + Bloom Bloom + ContractAddress common.Address + CumulativeGasUsed uint64 + DelegateAddress common.Address + GasUsed uint64 + Logs []*Log + PostState []byte + Status uint64 + TransactionIndex uint + TxHash common.Hash + func NewReceipt(root []byte, failed bool, cumulativeGasUsed uint64) *Receipt + func (r *Receipt) DecodeRLP(s *rlp.Stream) error + func (r *Receipt) EncodeRLP(w io.Writer) error + func (r *Receipt) Size() common.StorageSize + func (r *Receipt) UnmarshalJSON(input []byte) error + func (r Receipt) MarshalJSON() ([]byte, error) + type ReceiptForStorage Receipt + func (r *ReceiptForStorage) DecodeRLP(s *rlp.Stream) error + func (r *ReceiptForStorage) EncodeRLP(w io.Writer) error + type Receipts []*Receipt + func (r Receipts) DeriveFields(config *params.ChainConfig, hash common.Hash, number uint64, txs Transactions) error + func (r Receipts) GetRlp(i int) []byte + func (r Receipts) Len() int + type Signer interface + Equal func(Signer) bool + Hash func(tx *Transaction) common.Hash + Sender func(tx *Transaction) (common.Address, error) + SignatureValues func(tx *Transaction, sig []byte) (r, s, v *big.Int, err error) + func MakeSigner(config *params.ChainConfig) Signer + type Staked struct + Amount uint64 + Id common.Address + type Transaction struct + func NewContractCreation(nonce uint64, amount *big.Int, gasLimit uint64, data []byte) *Transaction + func NewTransaction(nonce uint64, to common.Address, amount *big.Int, gasLimit uint64, data []byte) *Transaction + func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, error) + func (tx *Transaction) AsMessage(s Signer) (Message, error) + func (tx *Transaction) CalculateDifficulty() float64 + func (tx *Transaction) CalculateWorkNonce(targetDifficulty float64) + func (tx *Transaction) ChainId() *big.Int + func (tx *Transaction) CheckNonce() bool + func (tx *Transaction) Cost() *big.Int + func (tx *Transaction) Data() []byte + func (tx *Transaction) DecodeRLP(s *rlp.Stream) error + func (tx *Transaction) EncodeRLP(w io.Writer) error + func (tx *Transaction) Gas() uint64 + func (tx *Transaction) GasPrice() float64 + func (tx *Transaction) Hash() common.Hash + func (tx *Transaction) MarshalJSON() ([]byte, error) + func (tx *Transaction) Nonce() uint64 + func (tx *Transaction) Protected() bool + func (tx *Transaction) RawSignatureValues() (v, r, s *big.Int) + func (tx *Transaction) Size() common.StorageSize + func (tx *Transaction) To() *common.Address + func (tx *Transaction) UnmarshalJSON(input []byte) error + func (tx *Transaction) Value() *big.Int + func (tx *Transaction) VirtualDifficulty(from common.Address, ebakusState *ebakusdb.Snapshot) *big.Float + func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error) + func (tx *Transaction) WorkNonce() uint64 + type Transactions []*Transaction + func TxDifference(a, b Transactions) Transactions + func (s Transactions) GetRlp(i int) []byte + func (s Transactions) Len() int + func (s Transactions) Swap(i, j int) + type TransactionsByVirtualDifficultyAndNonce struct + func NewTransactionsByVirtualDifficultyAndNonce(signer Signer, txs map[common.Address]Transactions, ...) *TransactionsByVirtualDifficultyAndNonce + func (t *TransactionsByVirtualDifficultyAndNonce) Peek() *Transaction + func (t *TransactionsByVirtualDifficultyAndNonce) Pop() + func (t *TransactionsByVirtualDifficultyAndNonce) Shift() + type TxByNonce Transactions + func (s TxByNonce) Len() int + func (s TxByNonce) Less(i, j int) bool + func (s TxByNonce) Swap(i, j int) + type TxByPrice struct + type TxsByPrice []*TxByPrice + func (s *TxsByPrice) Pop() interface{} + func (s *TxsByPrice) Push(x interface{}) + func (s TxsByPrice) Len() int + func (s TxsByPrice) Less(i, j int) bool + func (s TxsByPrice) Swap(i, j int)