Documentation ¶
Index ¶
- func BloomLookup(bin, topic []byte) bool
- func CreateBloom(receipts Receipts) []byte
- func DeriveSha(list DerivableList) []byte
- func IsContractAddr(addr []byte) bool
- func LogsBloom(logs state.Logs) *big.Int
- func Number(b1, b2 *Block) bool
- type Block
- func (block *Block) BlockInfo() BlockInfo
- func (block *Block) CalcGasLimit(parent *Block) *big.Int
- func (block *Block) Diff() *big.Int
- func (self *Block) GetTransaction(hash []byte) *Transaction
- func (block *Block) Hash() ethutil.Bytes
- func (block *Block) HashNoNonce() []byte
- func (self *Block) N() []byte
- func (self *Block) Receipts() []*Receipt
- func (self *Block) RlpData() interface{}
- func (block *Block) RlpDecode(data []byte)
- func (block *Block) RlpEncode() []byte
- func (block *Block) RlpValueDecode(decoder *ethutil.Value)
- func (block *Block) Root() interface{}
- func (self *Block) SetReceipts(receipts Receipts)
- func (self *Block) SetTransactions(txs Transactions)
- func (block *Block) SetUncles(uncles []*Block)
- func (self *Block) Size() ethutil.StorageSize
- func (block *Block) State() *state.StateDB
- func (block *Block) String() string
- func (block *Block) Sync()
- func (block *Block) Transactions() Transactions
- func (block *Block) Trie() *trie.Trie
- func (block *Block) Undo()
- func (block *Block) Value() *ethutil.Value
- type BlockBy
- type BlockInfo
- type BlockProcessor
- type Blocks
- type Broadcaster
- type DerivableList
- type Receipt
- type Receipts
- type Transaction
- func (tx *Transaction) Curve() (v byte, r []byte, s []byte)
- func (self *Transaction) Data() []byte
- func (self *Transaction) From() []byte
- func (self *Transaction) Gas() *big.Int
- func (self *Transaction) GasPrice() *big.Int
- func (tx *Transaction) Hash() []byte
- func (self *Transaction) Nonce() uint64
- func (tx *Transaction) PublicKey() []byte
- func (tx *Transaction) RlpData() interface{}
- func (tx *Transaction) RlpDecode(data []byte)
- func (tx *Transaction) RlpEncode() []byte
- func (tx *Transaction) RlpValue() *ethutil.Value
- func (tx *Transaction) RlpValueDecode(decoder *ethutil.Value)
- func (tx *Transaction) Sender() []byte
- func (self *Transaction) SetNonce(nonce uint64)
- func (tx *Transaction) Sign(privk []byte) error
- func (tx *Transaction) Signature(key []byte) []byte
- func (tx *Transaction) String() string
- func (self *Transaction) To() []byte
- func (self *Transaction) Value() *big.Int
- type Transactions
- type TxByNonce
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BloomLookup ¶
func CreateBloom ¶
func DeriveSha ¶
func DeriveSha(list DerivableList) []byte
func IsContractAddr ¶
Types ¶
type Block ¶
type Block struct { // Hash to the previous block PrevHash ethutil.Bytes // Uncles of this block Uncles Blocks UncleSha []byte // The coin base address Coinbase []byte // Difficulty for the current block Difficulty *big.Int // Creation time Time int64 // The block number Number *big.Int // Gas limit GasLimit *big.Int // Gas used GasUsed *big.Int // Extra data Extra string // Block Nonce for verification Nonce ethutil.Bytes TxSha, ReceiptSha []byte LogsBloom []byte Reward *big.Int // contains filtered or unexported fields }
func CreateBlock ¶
func NewBlockFromBytes ¶
func NewBlockFromRlpValue ¶
New block takes a raw encoded string
func NewUncleBlockFromValue ¶
func (*Block) GetTransaction ¶
func (self *Block) GetTransaction(hash []byte) *Transaction
func (*Block) HashNoNonce ¶
func (*Block) RlpValueDecode ¶
func (*Block) SetReceipts ¶
func (*Block) SetTransactions ¶
func (self *Block) SetTransactions(txs Transactions)
func (*Block) Size ¶
func (self *Block) Size() ethutil.StorageSize
func (*Block) Transactions ¶
func (block *Block) Transactions() Transactions
type BlockProcessor ¶
type Broadcaster ¶
type DerivableList ¶
type Receipt ¶
type Receipt struct { PostState []byte CumulativeGasUsed *big.Int Bloom []byte // contains filtered or unexported fields }
func NewRecieptFromValue ¶
func (*Receipt) RlpValueDecode ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewContractCreationTx ¶
func NewContractCreationTx(value, gas, gasPrice *big.Int, script []byte) *Transaction
func NewTransactionFromBytes ¶
func NewTransactionFromBytes(data []byte) *Transaction
func NewTransactionFromValue ¶
func NewTransactionFromValue(val *ethutil.Value) *Transaction
func NewTransactionMessage ¶
func NewTransactionMessage(to []byte, value, gas, gasPrice *big.Int, data []byte) *Transaction
func (*Transaction) Data ¶
func (self *Transaction) Data() []byte
func (*Transaction) From ¶
func (self *Transaction) From() []byte
func (*Transaction) Gas ¶
func (self *Transaction) Gas() *big.Int
func (*Transaction) GasPrice ¶
func (self *Transaction) GasPrice() *big.Int
func (*Transaction) Hash ¶
func (tx *Transaction) Hash() []byte
func (*Transaction) Nonce ¶
func (self *Transaction) Nonce() uint64
func (*Transaction) PublicKey ¶
func (tx *Transaction) PublicKey() []byte
func (*Transaction) RlpData ¶
func (tx *Transaction) RlpData() interface{}
func (*Transaction) RlpDecode ¶
func (tx *Transaction) RlpDecode(data []byte)
func (*Transaction) RlpEncode ¶
func (tx *Transaction) RlpEncode() []byte
func (*Transaction) RlpValue ¶
func (tx *Transaction) RlpValue() *ethutil.Value
func (*Transaction) RlpValueDecode ¶
func (tx *Transaction) RlpValueDecode(decoder *ethutil.Value)
func (*Transaction) Sender ¶
func (tx *Transaction) Sender() []byte
func (*Transaction) SetNonce ¶
func (self *Transaction) SetNonce(nonce uint64)
func (*Transaction) Sign ¶
func (tx *Transaction) Sign(privk []byte) error
func (*Transaction) Signature ¶
func (tx *Transaction) Signature(key []byte) []byte
func (*Transaction) String ¶
func (tx *Transaction) String() string
func (*Transaction) To ¶
func (self *Transaction) To() []byte
func (*Transaction) Value ¶
func (self *Transaction) Value() *big.Int
type Transactions ¶
type Transactions []*Transaction
Transaction slice type for basic sorting
func (Transactions) GetRlp ¶
func (s Transactions) GetRlp(i int) []byte
func (Transactions) Len ¶
func (s Transactions) Len() int
func (Transactions) RlpData ¶
func (self Transactions) RlpData() interface{}
func (Transactions) Swap ¶
func (s Transactions) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.