block

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: AGPL-3.0, ISC Imports: 10 Imported by: 0

Documentation

Index

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 (x *Block) AddHeaderToHasher(hasher hash.Hash)

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBlockNumber

func (x *Block) GetBlockNumber() uint64

func (*Block) GetPreviousBlockHash

func (x *Block) GetPreviousBlockHash() []byte

func (*Block) GetSystemIdentifier

func (x *Block) GetSystemIdentifier() []byte

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*txsystem.Transaction

func (*Block) GetUnicityCertificate

func (x *Block) GetUnicityCertificate() *certificates.UnicityCertificate

func (*Block) Hash

func (x *Block) Hash(hashAlgorithm crypto.Hash) ([]byte, error)

Hash returns the hash of the block.

func (*Block) HashHeader

func (x *Block) HashHeader(hashAlgorithm crypto.Hash) []byte

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type PendingBlockProposal

type PendingBlockProposal struct {
	RoundNumber  uint64
	PrevHash     []byte
	StateHash    []byte
	Transactions []txsystem.GenericTransaction
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL