Documentation
¶
Index ¶
- Variables
- type Block
- func (x *Block) AddHeaderToHasher(hasher hash.Hash)
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetBlockNumber() uint64
- func (x *Block) GetPreviousBlockHash() []byte
- func (x *Block) GetSystemIdentifier() []byte
- func (x *Block) GetTransactions() []*txsystem.Transaction
- func (x *Block) GetUnicityCertificate() *certificates.UnicityCertificate
- func (x *Block) Hash(hashAlgorithm crypto.Hash) ([]byte, error)
- func (x *Block) HashHeader(hashAlgorithm crypto.Hash) []byte
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type PendingBlockProposal
Constants ¶
This section is empty.
Variables ¶
View Source
var File_block_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
SystemIdentifier []byte `protobuf:"bytes,1,opt,name=system_identifier,json=systemIdentifier,proto3" json:"system_identifier,omitempty"`
BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
PreviousBlockHash []byte `protobuf:"bytes,3,opt,name=previous_block_hash,json=previousBlockHash,proto3" json:"previous_block_hash,omitempty"`
Transactions []*txsystem.Transaction `protobuf:"bytes,4,rep,name=transactions,proto3" json:"transactions,omitempty"`
UnicityCertificate *certificates.UnicityCertificate `protobuf:"bytes,5,opt,name=unicity_certificate,json=unicityCertificate,proto3" json:"unicity_certificate,omitempty"`
// contains filtered or unexported fields
}
func (*Block) AddHeaderToHasher ¶
func (*Block) Descriptor
deprecated
func (*Block) GetBlockNumber ¶
func (*Block) GetPreviousBlockHash ¶
func (*Block) GetSystemIdentifier ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*txsystem.Transaction
func (*Block) GetUnicityCertificate ¶
func (x *Block) GetUnicityCertificate() *certificates.UnicityCertificate
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type PendingBlockProposal ¶
type PendingBlockProposal struct {
RoundNumber uint64
PrevHash []byte
StateHash []byte
Transactions []txsystem.GenericTransaction
}
Click to show internal directories.
Click to hide internal directories.