types

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBlock        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBlock          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Block

type Block struct {
	Header     types.Header       `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
	Data       types.Data         `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
	Evidence   types.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"`
	LastCommit *types.Commit      `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
	// *** tendermintvrf Extended Fields ***
	Entropy Entropy `protobuf:"bytes,1000,opt,name=entropy,proto3" json:"entropy"`
}

func (*Block) Descriptor

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

func (*Block) GetData

func (m *Block) GetData() types.Data

func (*Block) GetEntropy

func (m *Block) GetEntropy() Entropy

func (*Block) GetEvidence

func (m *Block) GetEvidence() types.EvidenceList

func (*Block) GetHeader

func (m *Block) GetHeader() types.Header

func (*Block) GetLastCommit

func (m *Block) GetLastCommit() *types.Commit

func (*Block) Marshal

func (m *Block) Marshal() (dAtA []byte, err error)

func (*Block) MarshalTo

func (m *Block) MarshalTo(dAtA []byte) (int, error)

func (*Block) MarshalToSizedBuffer

func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

func (m *Block) Size() (n int)

func (*Block) String

func (m *Block) String() string

func (*Block) Unmarshal

func (m *Block) Unmarshal(dAtA []byte) error

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

type Entropy

type Entropy struct {
	Round int32  `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
}

Entropy represents height-specific complexity and used in proposer-election. Entropy contains vrf proof and generated round. The relationship of each field is as follows. Entropy.proof = VRFProof(last_proof_hash, current_height, Entropy.round)

func (*Entropy) Descriptor

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

func (*Entropy) GetProof

func (m *Entropy) GetProof() []byte

func (*Entropy) GetRound

func (m *Entropy) GetRound() int32

func (*Entropy) Marshal

func (m *Entropy) Marshal() (dAtA []byte, err error)

func (*Entropy) MarshalTo

func (m *Entropy) MarshalTo(dAtA []byte) (int, error)

func (*Entropy) MarshalToSizedBuffer

func (m *Entropy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Entropy) ProtoMessage

func (*Entropy) ProtoMessage()

func (*Entropy) Reset

func (m *Entropy) Reset()

func (*Entropy) Size

func (m *Entropy) Size() (n int)

func (*Entropy) String

func (m *Entropy) String() string

func (*Entropy) Unmarshal

func (m *Entropy) Unmarshal(dAtA []byte) error

func (*Entropy) XXX_DiscardUnknown

func (m *Entropy) XXX_DiscardUnknown()

func (*Entropy) XXX_Marshal

func (m *Entropy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entropy) XXX_Merge

func (m *Entropy) XXX_Merge(src proto.Message)

func (*Entropy) XXX_Size

func (m *Entropy) XXX_Size() int

func (*Entropy) XXX_Unmarshal

func (m *Entropy) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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