Documentation ¶
Index ¶
- func ComputeBlockHash(b *Block) common.Hash
- func GetBlockStorageKey(blockHeaderHash common.Hash) []byte
- type Block
- func (b *Block) AddAttestTx(attestTx *transactions.Attest)
- func (b *Block) Attest(chainID uint64, d *dilithium.Dilithium, attestorNonce uint64) (*transactions.Attest, error)
- func (b *Block) BlockSigningHash() common.Hash
- func (b *Block) DeSerialize(data []byte) error
- func (b *Block) Epoch() uint64
- func (b *Block) GasLimit() uint64
- func (b *Block) GetBlockProposer() common.Address
- func (b *Block) GetPendingValidatorsUpdate() [][]byte
- func (b *Block) Hash() common.Hash
- func (b *Block) Header() *Header
- func (b *Block) Minter() *common.Address
- func (b *Block) Number() uint64
- func (b *Block) PBData() *protos.Block
- func (b *Block) ParentHash() common.Hash
- func (b *Block) PartialBlockSigningHash() common.Hash
- func (b *Block) ProtocolTransactions() []*protos.ProtocolTransaction
- func (b *Block) Serialize() ([]byte, error)
- func (b *Block) SignByProposer(d *dilithium.Dilithium)
- func (b *Block) SlotNumber() uint64
- func (b *Block) Timestamp() uint64
- func (b *Block) Transactions() []*protos.Transaction
- func (b *Block) UpdateBloom(protocolTxBloom, txBloom [256]byte)
- func (b *Block) UpdateFinalizedEpoch(db *db.DB, stateContext *state.StateContext) error
- func (b *Block) UpdateRoots(trieRoot common.Hash)
- type Header
- func (h *Header) BaseFee() *big.Int
- func (h *Header) GasLimit() uint64
- func (h *Header) GasUsed() *big.Int
- func (h *Header) Hash() common.Hash
- func (h *Header) Number() *big.Int
- func (h *Header) PBData() *protos.BlockHeader
- func (h *Header) ParentHash() common.Hash
- func (h *Header) ReceiptsRoot() common.Hash
- func (h *Header) Root() common.Hash
- func (h *Header) Timestamp() *big.Int
- func (h *Header) TransactionsRoot() common.Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeBlockHash ¶
func GetBlockStorageKey ¶
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func BlockFromPBData ¶
func (*Block) AddAttestTx ¶
func (b *Block) AddAttestTx(attestTx *transactions.Attest)
func (*Block) BlockSigningHash ¶
func (*Block) DeSerialize ¶
func (*Block) GetBlockProposer ¶
func (*Block) GetPendingValidatorsUpdate ¶
func (*Block) ParentHash ¶
func (*Block) PartialBlockSigningHash ¶
func (*Block) ProtocolTransactions ¶
func (b *Block) ProtocolTransactions() []*protos.ProtocolTransaction
func (*Block) SignByProposer ¶
func (*Block) SlotNumber ¶
func (*Block) Transactions ¶
func (b *Block) Transactions() []*protos.Transaction
func (*Block) UpdateBloom ¶
func (*Block) UpdateFinalizedEpoch ¶
func (*Block) UpdateRoots ¶
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
func HeaderFromPBData ¶
func HeaderFromPBData(header *protos.BlockHeader) *Header
func (*Header) PBData ¶
func (h *Header) PBData() *protos.BlockHeader
func (*Header) ParentHash ¶
func (*Header) ReceiptsRoot ¶
func (*Header) TransactionsRoot ¶
Click to show internal directories.
Click to hide internal directories.