types

package
v1.1.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 18 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 (
	ErrInvalidLengthCanonical        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCanonical          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCanonical = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDash        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDash          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDash = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEvidence        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvidence          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvidence = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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")
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var BlockIDFlag_name = map[int32]string{
	0: "BLOCK_ID_FLAG_UNKNOWN",
	1: "BLOCK_ID_FLAG_ABSENT",
	2: "BLOCK_ID_FLAG_COMMIT",
	3: "BLOCK_ID_FLAG_NIL",
}
View Source
var BlockIDFlag_value = map[string]int32{
	"BLOCK_ID_FLAG_UNKNOWN": 0,
	"BLOCK_ID_FLAG_ABSENT":  1,
	"BLOCK_ID_FLAG_COMMIT":  2,
	"BLOCK_ID_FLAG_NIL":     3,
}
View Source
var SignedMsgType_name = map[int32]string{
	0:  "SIGNED_MSG_TYPE_UNKNOWN",
	1:  "SIGNED_MSG_TYPE_PREVOTE",
	2:  "SIGNED_MSG_TYPE_PRECOMMIT",
	32: "SIGNED_MSG_TYPE_PROPOSAL",
}
View Source
var SignedMsgType_value = map[string]int32{
	"SIGNED_MSG_TYPE_UNKNOWN":   0,
	"SIGNED_MSG_TYPE_PREVOTE":   1,
	"SIGNED_MSG_TYPE_PRECOMMIT": 2,
	"SIGNED_MSG_TYPE_PROPOSAL":  32,
}
View Source
var VoteExtensionType_name = map[int32]string{
	0: "DEFAULT",
	1: "THRESHOLD_RECOVER",
	2: "THRESHOLD_RECOVER_RAW",
}
View Source
var VoteExtensionType_value = map[string]int32{
	"DEFAULT":               0,
	"THRESHOLD_RECOVER":     1,
	"THRESHOLD_RECOVER_RAW": 2,
}

Functions

This section is empty.

Types

type ABCIParams

type ABCIParams struct {
	// Indicates if CheckTx should be called on all the transactions
	// remaining in the mempool after a block is executed.
	RecheckTx bool `protobuf:"varint,1,opt,name=recheck_tx,json=recheckTx,proto3" json:"recheck_tx,omitempty"`
}

ABCIParams configure functionality specific to the Application Blockchain Interface.

func (*ABCIParams) Descriptor

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

func (*ABCIParams) Equal

func (this *ABCIParams) Equal(that interface{}) bool

func (*ABCIParams) GetRecheckTx

func (m *ABCIParams) GetRecheckTx() bool

func (*ABCIParams) Marshal

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

func (*ABCIParams) MarshalTo

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

func (*ABCIParams) MarshalToSizedBuffer

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

func (*ABCIParams) ProtoMessage

func (*ABCIParams) ProtoMessage()

func (*ABCIParams) Reset

func (m *ABCIParams) Reset()

func (*ABCIParams) Size

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

func (*ABCIParams) String

func (m *ABCIParams) String() string

func (*ABCIParams) Unmarshal

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

func (*ABCIParams) XXX_DiscardUnknown

func (m *ABCIParams) XXX_DiscardUnknown()

func (*ABCIParams) XXX_Marshal

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

func (*ABCIParams) XXX_Merge

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

func (*ABCIParams) XXX_Size

func (m *ABCIParams) XXX_Size() int

func (*ABCIParams) XXX_Unmarshal

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

type Block

type Block struct {
	Header        Header         `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
	Data          Data           `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
	Evidence      EvidenceList   `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"`
	LastCommit    *Commit        `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
	CoreChainLock *CoreChainLock `protobuf:"bytes,5,opt,name=core_chain_lock,json=coreChainLock,proto3" json:"core_chain_lock,omitempty"`
}

func (*Block) Descriptor

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

func (*Block) GetCoreChainLock

func (m *Block) GetCoreChainLock() *CoreChainLock

func (*Block) GetData

func (m *Block) GetData() Data

func (*Block) GetEvidence

func (m *Block) GetEvidence() EvidenceList

func (*Block) GetHeader

func (m *Block) GetHeader() Header

func (*Block) GetLastCommit

func (m *Block) GetLastCommit() *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 BlockID

type BlockID struct {
	Hash          []byte        `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	PartSetHeader PartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header"`
	// state_id is a hash of fields required to validate state in light client.
	// See types/stateid.go for details.
	StateID []byte `protobuf:"bytes,3,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"`
}

BlockID

func (*BlockID) Descriptor

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

func (*BlockID) GetHash

func (m *BlockID) GetHash() []byte

func (*BlockID) GetPartSetHeader

func (m *BlockID) GetPartSetHeader() PartSetHeader

func (*BlockID) GetStateID

func (m *BlockID) GetStateID() []byte

func (*BlockID) IsZero

func (m *BlockID) IsZero() bool

IsZero returns true when the object is a zero-value or nil

func (*BlockID) Marshal

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

func (*BlockID) MarshalTo

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

func (*BlockID) MarshalToSizedBuffer

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

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) Size

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

func (*BlockID) String

func (m *BlockID) String() string

func (*BlockID) ToCanonicalBlockID

func (m *BlockID) ToCanonicalBlockID() *CanonicalBlockID

func (*BlockID) Unmarshal

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

func (*BlockID) XXX_DiscardUnknown

func (m *BlockID) XXX_DiscardUnknown()

func (*BlockID) XXX_Marshal

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

func (*BlockID) XXX_Merge

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

func (*BlockID) XXX_Size

func (m *BlockID) XXX_Size() int

func (*BlockID) XXX_Unmarshal

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

type BlockIDFlag

type BlockIDFlag int32

BlockIdFlag indicates which BlockID the signature is for

const (
	BlockIDFlagUnknown BlockIDFlag = 0
	BlockIDFlagAbsent  BlockIDFlag = 1
	BlockIDFlagCommit  BlockIDFlag = 2
	BlockIDFlagNil     BlockIDFlag = 3
)

func (BlockIDFlag) EnumDescriptor

func (BlockIDFlag) EnumDescriptor() ([]byte, []int)

func (BlockIDFlag) String

func (x BlockIDFlag) String() string

type BlockMeta

type BlockMeta struct {
	BlockID          BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id"`
	BlockSize        int64   `protobuf:"varint,2,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	Header           Header  `protobuf:"bytes,3,opt,name=header,proto3" json:"header"`
	NumTxs           int64   `protobuf:"varint,4,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"`
	Round            int32   `protobuf:"varint,5,opt,name=round,proto3" json:"round,omitempty"`
	HasCoreChainLock bool    `protobuf:"varint,6,opt,name=has_core_chain_lock,json=hasCoreChainLock,proto3" json:"has_core_chain_lock,omitempty"`
}

func (*BlockMeta) Descriptor

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

func (*BlockMeta) GetBlockID

func (m *BlockMeta) GetBlockID() BlockID

func (*BlockMeta) GetBlockSize

func (m *BlockMeta) GetBlockSize() int64

func (*BlockMeta) GetHasCoreChainLock

func (m *BlockMeta) GetHasCoreChainLock() bool

func (*BlockMeta) GetHeader

func (m *BlockMeta) GetHeader() Header

func (*BlockMeta) GetNumTxs

func (m *BlockMeta) GetNumTxs() int64

func (*BlockMeta) GetRound

func (m *BlockMeta) GetRound() int32

func (*BlockMeta) Marshal

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

func (*BlockMeta) MarshalTo

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

func (*BlockMeta) MarshalToSizedBuffer

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

func (*BlockMeta) ProtoMessage

func (*BlockMeta) ProtoMessage()

func (*BlockMeta) Reset

func (m *BlockMeta) Reset()

func (*BlockMeta) Size

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

func (*BlockMeta) String

func (m *BlockMeta) String() string

func (*BlockMeta) Unmarshal

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

func (*BlockMeta) XXX_DiscardUnknown

func (m *BlockMeta) XXX_DiscardUnknown()

func (*BlockMeta) XXX_Marshal

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

func (*BlockMeta) XXX_Merge

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

func (*BlockMeta) XXX_Size

func (m *BlockMeta) XXX_Size() int

func (*BlockMeta) XXX_Unmarshal

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

type BlockParams

type BlockParams struct {
	// Max block size, in bytes.
	// Note: must be greater than 0
	MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	// Max gas per block.
	// Note: must be greater or equal to -1
	MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
}

BlockParams contains limits on the block size.

func (*BlockParams) Descriptor

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

func (*BlockParams) Equal

func (this *BlockParams) Equal(that interface{}) bool

func (*BlockParams) GetMaxBytes

func (m *BlockParams) GetMaxBytes() int64

func (*BlockParams) GetMaxGas

func (m *BlockParams) GetMaxGas() int64

func (*BlockParams) Marshal

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

func (*BlockParams) MarshalTo

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

func (*BlockParams) MarshalToSizedBuffer

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

func (*BlockParams) ProtoMessage

func (*BlockParams) ProtoMessage()

func (*BlockParams) Reset

func (m *BlockParams) Reset()

func (*BlockParams) Size

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

func (*BlockParams) String

func (m *BlockParams) String() string

func (*BlockParams) Unmarshal

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

func (*BlockParams) XXX_DiscardUnknown

func (m *BlockParams) XXX_DiscardUnknown()

func (*BlockParams) XXX_Marshal

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

func (*BlockParams) XXX_Merge

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

func (*BlockParams) XXX_Size

func (m *BlockParams) XXX_Size() int

func (*BlockParams) XXX_Unmarshal

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

type CanonicalBlockID

type CanonicalBlockID struct {
	Hash          []byte                 `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	PartSetHeader CanonicalPartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header"`
}

CanonicalBlockID is a BlockID in a canonical form, for cryptographic purposes. See BlockID for more specific documentation.

func (CanonicalBlockID) Checksum

func (c CanonicalBlockID) Checksum() ([]byte, error)

func (*CanonicalBlockID) Descriptor

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

func (*CanonicalBlockID) GetHash

func (m *CanonicalBlockID) GetHash() []byte

func (*CanonicalBlockID) GetPartSetHeader

func (m *CanonicalBlockID) GetPartSetHeader() CanonicalPartSetHeader

func (*CanonicalBlockID) Marshal

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

func (*CanonicalBlockID) MarshalTo

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

func (*CanonicalBlockID) MarshalToSizedBuffer

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

func (*CanonicalBlockID) ProtoMessage

func (*CanonicalBlockID) ProtoMessage()

func (*CanonicalBlockID) Reset

func (m *CanonicalBlockID) Reset()

func (*CanonicalBlockID) Size

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

func (*CanonicalBlockID) String

func (m *CanonicalBlockID) String() string

func (*CanonicalBlockID) Unmarshal

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

func (*CanonicalBlockID) XXX_DiscardUnknown

func (m *CanonicalBlockID) XXX_DiscardUnknown()

func (*CanonicalBlockID) XXX_Marshal

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

func (*CanonicalBlockID) XXX_Merge

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

func (*CanonicalBlockID) XXX_Size

func (m *CanonicalBlockID) XXX_Size() int

func (*CanonicalBlockID) XXX_Unmarshal

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

type CanonicalPartSetHeader

type CanonicalPartSetHeader struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Hash  []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*CanonicalPartSetHeader) Descriptor

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

func (*CanonicalPartSetHeader) GetHash

func (m *CanonicalPartSetHeader) GetHash() []byte

func (*CanonicalPartSetHeader) GetTotal

func (m *CanonicalPartSetHeader) GetTotal() uint32

func (*CanonicalPartSetHeader) Marshal

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

func (*CanonicalPartSetHeader) MarshalTo

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

func (*CanonicalPartSetHeader) MarshalToSizedBuffer

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

func (*CanonicalPartSetHeader) ProtoMessage

func (*CanonicalPartSetHeader) ProtoMessage()

func (*CanonicalPartSetHeader) Reset

func (m *CanonicalPartSetHeader) Reset()

func (*CanonicalPartSetHeader) Size

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

func (*CanonicalPartSetHeader) String

func (m *CanonicalPartSetHeader) String() string

func (*CanonicalPartSetHeader) Unmarshal

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

func (*CanonicalPartSetHeader) XXX_DiscardUnknown

func (m *CanonicalPartSetHeader) XXX_DiscardUnknown()

func (*CanonicalPartSetHeader) XXX_Marshal

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

func (*CanonicalPartSetHeader) XXX_Merge

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

func (*CanonicalPartSetHeader) XXX_Size

func (m *CanonicalPartSetHeader) XXX_Size() int

func (*CanonicalPartSetHeader) XXX_Unmarshal

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

type CanonicalProposal

type CanonicalProposal struct {
	Type      SignedMsgType     `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"`
	Height    int64             `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"`
	Round     int64             `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	POLRound  int64             `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"`
	BlockID   *CanonicalBlockID `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Timestamp time.Time         `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	ChainID   string            `protobuf:"bytes,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*CanonicalProposal) Descriptor

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

func (*CanonicalProposal) GetBlockID

func (m *CanonicalProposal) GetBlockID() *CanonicalBlockID

func (*CanonicalProposal) GetChainID

func (m *CanonicalProposal) GetChainID() string

func (*CanonicalProposal) GetHeight

func (m *CanonicalProposal) GetHeight() int64

func (*CanonicalProposal) GetPOLRound

func (m *CanonicalProposal) GetPOLRound() int64

func (*CanonicalProposal) GetRound

func (m *CanonicalProposal) GetRound() int64

func (*CanonicalProposal) GetTimestamp

func (m *CanonicalProposal) GetTimestamp() time.Time

func (*CanonicalProposal) GetType

func (m *CanonicalProposal) GetType() SignedMsgType

func (*CanonicalProposal) Marshal

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

func (*CanonicalProposal) MarshalTo

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

func (*CanonicalProposal) MarshalToSizedBuffer

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

func (*CanonicalProposal) ProtoMessage

func (*CanonicalProposal) ProtoMessage()

func (*CanonicalProposal) Reset

func (m *CanonicalProposal) Reset()

func (*CanonicalProposal) Size

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

func (*CanonicalProposal) String

func (m *CanonicalProposal) String() string

func (*CanonicalProposal) Unmarshal

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

func (*CanonicalProposal) XXX_DiscardUnknown

func (m *CanonicalProposal) XXX_DiscardUnknown()

func (*CanonicalProposal) XXX_Marshal

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

func (*CanonicalProposal) XXX_Merge

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

func (*CanonicalProposal) XXX_Size

func (m *CanonicalProposal) XXX_Size() int

func (*CanonicalProposal) XXX_Unmarshal

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

type CanonicalVote

type CanonicalVote struct {
	Type   SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"`
	Height int64         `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"`
	Round  int64         `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	// block_id is a checksum (sha256) of CanonicalBlockID for the block being voted on
	BlockID []byte `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	// state_id is a checksum  (sha256) of StateID message for the block being voted on
	StateID []byte `protobuf:"bytes,5,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"`
	// chain_id is last, to allow variable length of string
	ChainID string `protobuf:"bytes,99,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*CanonicalVote) Descriptor

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

func (*CanonicalVote) GetBlockID

func (m *CanonicalVote) GetBlockID() []byte

func (*CanonicalVote) GetChainID

func (m *CanonicalVote) GetChainID() string

func (*CanonicalVote) GetHeight

func (m *CanonicalVote) GetHeight() int64

func (*CanonicalVote) GetRound

func (m *CanonicalVote) GetRound() int64

func (*CanonicalVote) GetStateID

func (m *CanonicalVote) GetStateID() []byte

func (*CanonicalVote) GetType

func (m *CanonicalVote) GetType() SignedMsgType

func (*CanonicalVote) Marshal

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

func (*CanonicalVote) MarshalTo

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

func (*CanonicalVote) MarshalToSizedBuffer

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

func (*CanonicalVote) ProtoMessage

func (*CanonicalVote) ProtoMessage()

func (*CanonicalVote) Reset

func (m *CanonicalVote) Reset()

func (*CanonicalVote) Size

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

func (*CanonicalVote) String

func (m *CanonicalVote) String() string

func (*CanonicalVote) Unmarshal

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

func (*CanonicalVote) XXX_DiscardUnknown

func (m *CanonicalVote) XXX_DiscardUnknown()

func (*CanonicalVote) XXX_Marshal

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

func (*CanonicalVote) XXX_Merge

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

func (*CanonicalVote) XXX_Size

func (m *CanonicalVote) XXX_Size() int

func (*CanonicalVote) XXX_Unmarshal

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

type CanonicalVoteExtension

type CanonicalVoteExtension struct {
	Extension []byte            `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"`
	Height    int64             `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"`
	Round     int64             `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	ChainId   string            `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Type      VoteExtensionType `protobuf:"varint,5,opt,name=type,proto3,enum=tendermint.types.VoteExtensionType" json:"type,omitempty"`
}

CanonicalVoteExtension provides us a way to serialize a vote extension from a particular validator such that we can sign over those serialized bytes.

func (*CanonicalVoteExtension) Descriptor

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

func (*CanonicalVoteExtension) GetChainId

func (m *CanonicalVoteExtension) GetChainId() string

func (*CanonicalVoteExtension) GetExtension

func (m *CanonicalVoteExtension) GetExtension() []byte

func (*CanonicalVoteExtension) GetHeight

func (m *CanonicalVoteExtension) GetHeight() int64

func (*CanonicalVoteExtension) GetRound

func (m *CanonicalVoteExtension) GetRound() int64

func (*CanonicalVoteExtension) GetType

func (*CanonicalVoteExtension) Marshal

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

func (*CanonicalVoteExtension) MarshalTo

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

func (*CanonicalVoteExtension) MarshalToSizedBuffer

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

func (*CanonicalVoteExtension) ProtoMessage

func (*CanonicalVoteExtension) ProtoMessage()

func (*CanonicalVoteExtension) Reset

func (m *CanonicalVoteExtension) Reset()

func (*CanonicalVoteExtension) Size

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

func (*CanonicalVoteExtension) String

func (m *CanonicalVoteExtension) String() string

func (*CanonicalVoteExtension) Unmarshal

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

func (*CanonicalVoteExtension) XXX_DiscardUnknown

func (m *CanonicalVoteExtension) XXX_DiscardUnknown()

func (*CanonicalVoteExtension) XXX_Marshal

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

func (*CanonicalVoteExtension) XXX_Merge

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

func (*CanonicalVoteExtension) XXX_Size

func (m *CanonicalVoteExtension) XXX_Size() int

func (*CanonicalVoteExtension) XXX_Unmarshal

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

type Commit

type Commit struct {
	Height                  int64            `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                   int32            `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	BlockID                 BlockID          `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id"`
	QuorumHash              []byte           `protobuf:"bytes,4,opt,name=quorum_hash,json=quorumHash,proto3" json:"quorum_hash,omitempty"`
	ThresholdBlockSignature []byte           `` /* 132-byte string literal not displayed */
	ThresholdVoteExtensions []*VoteExtension `` /* 132-byte string literal not displayed */
}

Commit contains the evidence that a block was committed by a set of validators.

func (*Commit) Descriptor

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

func (*Commit) GetBlockID

func (m *Commit) GetBlockID() BlockID

func (*Commit) GetHeight

func (m *Commit) GetHeight() int64

func (*Commit) GetQuorumHash

func (m *Commit) GetQuorumHash() []byte

func (*Commit) GetRound

func (m *Commit) GetRound() int32

func (*Commit) GetThresholdBlockSignature

func (m *Commit) GetThresholdBlockSignature() []byte

func (*Commit) GetThresholdVoteExtensions

func (m *Commit) GetThresholdVoteExtensions() []*VoteExtension

func (*Commit) Marshal

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

func (*Commit) MarshalTo

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

func (*Commit) MarshalToSizedBuffer

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

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) Reset

func (m *Commit) Reset()

func (*Commit) Size

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

func (*Commit) String

func (m *Commit) String() string

func (*Commit) Unmarshal

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

func (*Commit) XXX_DiscardUnknown

func (m *Commit) XXX_DiscardUnknown()

func (*Commit) XXX_Marshal

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

func (*Commit) XXX_Merge

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

func (*Commit) XXX_Size

func (m *Commit) XXX_Size() int

func (*Commit) XXX_Unmarshal

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

type ConsensusParams

type ConsensusParams struct {
	Block     *BlockParams     `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Evidence  *EvidenceParams  `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
	Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
	// DEPRECATED. This will be removed in a future release.
	// Replaced by ResponsePrepareProposal.app_version
	Version   *VersionParams   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Synchrony *SynchronyParams `protobuf:"bytes,5,opt,name=synchrony,proto3" json:"synchrony,omitempty"`
	Timeout   *TimeoutParams   `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Abci      *ABCIParams      `protobuf:"bytes,7,opt,name=abci,proto3" json:"abci,omitempty"`
}

ConsensusParams contains consensus critical parameters that determine the validity of blocks.

func (*ConsensusParams) Descriptor

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

func (*ConsensusParams) Equal

func (this *ConsensusParams) Equal(that interface{}) bool

func (*ConsensusParams) GetAbci

func (m *ConsensusParams) GetAbci() *ABCIParams

func (*ConsensusParams) GetBlock

func (m *ConsensusParams) GetBlock() *BlockParams

func (*ConsensusParams) GetEvidence

func (m *ConsensusParams) GetEvidence() *EvidenceParams

func (*ConsensusParams) GetSynchrony

func (m *ConsensusParams) GetSynchrony() *SynchronyParams

func (*ConsensusParams) GetTimeout

func (m *ConsensusParams) GetTimeout() *TimeoutParams

func (*ConsensusParams) GetValidator

func (m *ConsensusParams) GetValidator() *ValidatorParams

func (*ConsensusParams) GetVersion

func (m *ConsensusParams) GetVersion() *VersionParams

func (*ConsensusParams) Marshal

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

func (*ConsensusParams) MarshalTo

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

func (*ConsensusParams) MarshalToSizedBuffer

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

func (*ConsensusParams) ProtoMessage

func (*ConsensusParams) ProtoMessage()

func (*ConsensusParams) Reset

func (m *ConsensusParams) Reset()

func (*ConsensusParams) Size

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

func (*ConsensusParams) String

func (m *ConsensusParams) String() string

func (*ConsensusParams) Unmarshal

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

func (*ConsensusParams) XXX_DiscardUnknown

func (m *ConsensusParams) XXX_DiscardUnknown()

func (*ConsensusParams) XXX_Marshal

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

func (*ConsensusParams) XXX_Merge

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

func (*ConsensusParams) XXX_Size

func (m *ConsensusParams) XXX_Size() int

func (*ConsensusParams) XXX_Unmarshal

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

type CoreChainLock

type CoreChainLock struct {
	CoreBlockHeight uint32 `protobuf:"varint,1,opt,name=core_block_height,json=coreBlockHeight,proto3" json:"core_block_height,omitempty"`
	CoreBlockHash   []byte `protobuf:"bytes,2,opt,name=core_block_hash,json=coreBlockHash,proto3" json:"core_block_hash,omitempty"`
	Signature       []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

CoreChainLock represents a core chain lock for synchronization between state data and core chain

func (*CoreChainLock) Descriptor

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

func (*CoreChainLock) Equal

func (this *CoreChainLock) Equal(that interface{}) bool

func (*CoreChainLock) GetCoreBlockHash

func (m *CoreChainLock) GetCoreBlockHash() []byte

func (*CoreChainLock) GetCoreBlockHeight

func (m *CoreChainLock) GetCoreBlockHeight() uint32

func (*CoreChainLock) GetSignature

func (m *CoreChainLock) GetSignature() []byte

func (*CoreChainLock) Marshal

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

func (*CoreChainLock) MarshalTo

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

func (*CoreChainLock) MarshalToSizedBuffer

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

func (*CoreChainLock) ProtoMessage

func (*CoreChainLock) ProtoMessage()

func (*CoreChainLock) Reset

func (m *CoreChainLock) Reset()

func (*CoreChainLock) Size

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

func (*CoreChainLock) String

func (m *CoreChainLock) String() string

func (*CoreChainLock) Unmarshal

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

func (*CoreChainLock) XXX_DiscardUnknown

func (m *CoreChainLock) XXX_DiscardUnknown()

func (*CoreChainLock) XXX_Marshal

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

func (*CoreChainLock) XXX_Merge

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

func (*CoreChainLock) XXX_Size

func (m *CoreChainLock) XXX_Size() int

func (*CoreChainLock) XXX_Unmarshal

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

type Data

type Data struct {
	// Txs that will be applied by state @ block.Height+1.
	// NOTE: not all txs here are valid.  We're just agreeing on the order first.
	// This means that block.AppHash does not include these txs.
	Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
}

Data contains the set of transactions included in the block

func (*Data) Descriptor

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

func (*Data) GetTxs

func (m *Data) GetTxs() [][]byte

func (*Data) Marshal

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

func (*Data) MarshalTo

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

func (*Data) MarshalToSizedBuffer

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

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) Size

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

func (*Data) String

func (m *Data) String() string

func (*Data) Unmarshal

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

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

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

func (*Data) XXX_Merge

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

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

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

type DuplicateVoteEvidence

type DuplicateVoteEvidence struct {
	VoteA            *Vote     `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
	VoteB            *Vote     `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
	TotalVotingPower int64     `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
	ValidatorPower   int64     `protobuf:"varint,4,opt,name=validator_power,json=validatorPower,proto3" json:"validator_power,omitempty"`
	Timestamp        time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
}

DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.

func (*DuplicateVoteEvidence) Descriptor

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

func (*DuplicateVoteEvidence) GetTimestamp

func (m *DuplicateVoteEvidence) GetTimestamp() time.Time

func (*DuplicateVoteEvidence) GetTotalVotingPower

func (m *DuplicateVoteEvidence) GetTotalVotingPower() int64

func (*DuplicateVoteEvidence) GetValidatorPower

func (m *DuplicateVoteEvidence) GetValidatorPower() int64

func (*DuplicateVoteEvidence) GetVoteA

func (m *DuplicateVoteEvidence) GetVoteA() *Vote

func (*DuplicateVoteEvidence) GetVoteB

func (m *DuplicateVoteEvidence) GetVoteB() *Vote

func (*DuplicateVoteEvidence) Marshal

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

func (*DuplicateVoteEvidence) MarshalTo

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

func (*DuplicateVoteEvidence) MarshalToSizedBuffer

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

func (*DuplicateVoteEvidence) ProtoMessage

func (*DuplicateVoteEvidence) ProtoMessage()

func (*DuplicateVoteEvidence) Reset

func (m *DuplicateVoteEvidence) Reset()

func (*DuplicateVoteEvidence) Size

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

func (*DuplicateVoteEvidence) String

func (m *DuplicateVoteEvidence) String() string

func (*DuplicateVoteEvidence) Unmarshal

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

func (*DuplicateVoteEvidence) XXX_DiscardUnknown

func (m *DuplicateVoteEvidence) XXX_DiscardUnknown()

func (*DuplicateVoteEvidence) XXX_Marshal

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

func (*DuplicateVoteEvidence) XXX_Merge

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

func (*DuplicateVoteEvidence) XXX_Size

func (m *DuplicateVoteEvidence) XXX_Size() int

func (*DuplicateVoteEvidence) XXX_Unmarshal

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

type EventDataRoundState

type EventDataRoundState struct {
	Height int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round  int32  `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Step   string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"`
}

func (*EventDataRoundState) Descriptor

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

func (*EventDataRoundState) GetHeight

func (m *EventDataRoundState) GetHeight() int64

func (*EventDataRoundState) GetRound

func (m *EventDataRoundState) GetRound() int32

func (*EventDataRoundState) GetStep

func (m *EventDataRoundState) GetStep() string

func (*EventDataRoundState) Marshal

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

func (*EventDataRoundState) MarshalTo

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

func (*EventDataRoundState) MarshalToSizedBuffer

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

func (*EventDataRoundState) ProtoMessage

func (*EventDataRoundState) ProtoMessage()

func (*EventDataRoundState) Reset

func (m *EventDataRoundState) Reset()

func (*EventDataRoundState) Size

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

func (*EventDataRoundState) String

func (m *EventDataRoundState) String() string

func (*EventDataRoundState) Unmarshal

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

func (*EventDataRoundState) XXX_DiscardUnknown

func (m *EventDataRoundState) XXX_DiscardUnknown()

func (*EventDataRoundState) XXX_Marshal

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

func (*EventDataRoundState) XXX_Merge

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

func (*EventDataRoundState) XXX_Size

func (m *EventDataRoundState) XXX_Size() int

func (*EventDataRoundState) XXX_Unmarshal

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

type Evidence

type Evidence struct {
	// Types that are valid to be assigned to Sum:
	//	*Evidence_DuplicateVoteEvidence
	Sum isEvidence_Sum `protobuf_oneof:"sum"`
}

func (*Evidence) Descriptor

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

func (*Evidence) GetDuplicateVoteEvidence

func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence

func (*Evidence) GetSum

func (m *Evidence) GetSum() isEvidence_Sum

func (*Evidence) Marshal

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

func (*Evidence) MarshalTo

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

func (*Evidence) MarshalToSizedBuffer

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

func (*Evidence) ProtoMessage

func (*Evidence) ProtoMessage()

func (*Evidence) Reset

func (m *Evidence) Reset()

func (*Evidence) Size

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

func (*Evidence) String

func (m *Evidence) String() string

func (*Evidence) Unmarshal

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

func (*Evidence) XXX_DiscardUnknown

func (m *Evidence) XXX_DiscardUnknown()

func (*Evidence) XXX_Marshal

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

func (*Evidence) XXX_Merge

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

func (*Evidence) XXX_OneofWrappers

func (*Evidence) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Evidence) XXX_Size

func (m *Evidence) XXX_Size() int

func (*Evidence) XXX_Unmarshal

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

type EvidenceList

type EvidenceList struct {
	Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"`
}

func (*EvidenceList) Descriptor

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

func (*EvidenceList) GetEvidence

func (m *EvidenceList) GetEvidence() []Evidence

func (*EvidenceList) Marshal

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

func (*EvidenceList) MarshalTo

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

func (*EvidenceList) MarshalToSizedBuffer

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

func (*EvidenceList) ProtoMessage

func (*EvidenceList) ProtoMessage()

func (*EvidenceList) Reset

func (m *EvidenceList) Reset()

func (*EvidenceList) Size

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

func (*EvidenceList) String

func (m *EvidenceList) String() string

func (*EvidenceList) Unmarshal

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

func (*EvidenceList) XXX_DiscardUnknown

func (m *EvidenceList) XXX_DiscardUnknown()

func (*EvidenceList) XXX_Marshal

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

func (*EvidenceList) XXX_Merge

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

func (*EvidenceList) XXX_Size

func (m *EvidenceList) XXX_Size() int

func (*EvidenceList) XXX_Unmarshal

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

type EvidenceParams

type EvidenceParams struct {
	// Max age of evidence, in blocks.
	//
	// The basic formula for calculating this is: MaxAgeDuration / {average block
	// time}.
	MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"`
	// Max age of evidence, in time.
	//
	// It should correspond with an app's "unbonding period" or other similar
	// mechanism for handling [Nothing-At-Stake
	// attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
	MaxAgeDuration time.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3,stdduration" json:"max_age_duration"`
	// This sets the maximum size of total evidence in bytes that can be committed
	// in a single block. and should fall comfortably under the max block bytes.
	// Default is 1048576 or 1MB
	MaxBytes int64 `protobuf:"varint,3,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
}

EvidenceParams determine how we handle evidence of malfeasance.

func (*EvidenceParams) Descriptor

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

func (*EvidenceParams) Equal

func (this *EvidenceParams) Equal(that interface{}) bool

func (*EvidenceParams) GetMaxAgeDuration

func (m *EvidenceParams) GetMaxAgeDuration() time.Duration

func (*EvidenceParams) GetMaxAgeNumBlocks

func (m *EvidenceParams) GetMaxAgeNumBlocks() int64

func (*EvidenceParams) GetMaxBytes

func (m *EvidenceParams) GetMaxBytes() int64

func (*EvidenceParams) Marshal

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

func (*EvidenceParams) MarshalTo

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

func (*EvidenceParams) MarshalToSizedBuffer

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

func (*EvidenceParams) ProtoMessage

func (*EvidenceParams) ProtoMessage()

func (*EvidenceParams) Reset

func (m *EvidenceParams) Reset()

func (*EvidenceParams) Size

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

func (*EvidenceParams) String

func (m *EvidenceParams) String() string

func (*EvidenceParams) Unmarshal

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

func (*EvidenceParams) XXX_DiscardUnknown

func (m *EvidenceParams) XXX_DiscardUnknown()

func (*EvidenceParams) XXX_Marshal

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

func (*EvidenceParams) XXX_Merge

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

func (*EvidenceParams) XXX_Size

func (m *EvidenceParams) XXX_Size() int

func (*EvidenceParams) XXX_Unmarshal

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

type Evidence_DuplicateVoteEvidence

type Evidence_DuplicateVoteEvidence struct {
	DuplicateVoteEvidence *DuplicateVoteEvidence `` /* 132-byte string literal not displayed */
}

func (*Evidence_DuplicateVoteEvidence) MarshalTo

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

func (*Evidence_DuplicateVoteEvidence) MarshalToSizedBuffer

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

func (*Evidence_DuplicateVoteEvidence) Size

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

type HashedParams

type HashedParams struct {
	BlockMaxBytes int64 `protobuf:"varint,1,opt,name=block_max_bytes,json=blockMaxBytes,proto3" json:"block_max_bytes,omitempty"`
	BlockMaxGas   int64 `protobuf:"varint,2,opt,name=block_max_gas,json=blockMaxGas,proto3" json:"block_max_gas,omitempty"`
}

HashedParams is a subset of ConsensusParams.

It is hashed into the Header.ConsensusHash.

func (*HashedParams) Descriptor

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

func (*HashedParams) Equal

func (this *HashedParams) Equal(that interface{}) bool

func (*HashedParams) GetBlockMaxBytes

func (m *HashedParams) GetBlockMaxBytes() int64

func (*HashedParams) GetBlockMaxGas

func (m *HashedParams) GetBlockMaxGas() int64

func (*HashedParams) Marshal

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

func (*HashedParams) MarshalTo

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

func (*HashedParams) MarshalToSizedBuffer

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

func (*HashedParams) ProtoMessage

func (*HashedParams) ProtoMessage()

func (*HashedParams) Reset

func (m *HashedParams) Reset()

func (*HashedParams) Size

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

func (*HashedParams) String

func (m *HashedParams) String() string

func (*HashedParams) Unmarshal

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

func (*HashedParams) XXX_DiscardUnknown

func (m *HashedParams) XXX_DiscardUnknown()

func (*HashedParams) XXX_Marshal

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

func (*HashedParams) XXX_Merge

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

func (*HashedParams) XXX_Size

func (m *HashedParams) XXX_Size() int

func (*HashedParams) XXX_Unmarshal

func (m *HashedParams) XXX_Unmarshal(b []byte) error
type Header struct {
	// basic block info
	Version version.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
	ChainID string            `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Height  int64             `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// Time of the block, truncated (rounded down) to millisecond
	Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
	// prev block info
	LastBlockId BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
	// hashes of block data
	LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
	DataHash       []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	// hashes from the app output from the prev block
	ValidatorsHash     []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`
	NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"`
	ConsensusHash      []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
	NextConsensusHash  []byte `protobuf:"bytes,11,opt,name=next_consensus_hash,json=nextConsensusHash,proto3" json:"next_consensus_hash,omitempty"`
	AppHash            []byte `protobuf:"bytes,12,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	ResultsHash        []byte `protobuf:"bytes,13,opt,name=results_hash,json=resultsHash,proto3" json:"results_hash,omitempty"`
	// consensus info
	EvidenceHash          []byte `protobuf:"bytes,14,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`
	ProposedAppVersion    uint64 `protobuf:"varint,15,opt,name=proposed_app_version,json=proposedAppVersion,proto3" json:"proposed_app_version,omitempty"`
	ProposerProTxHash     []byte `protobuf:"bytes,16,opt,name=proposer_pro_tx_hash,json=proposerProTxHash,proto3" json:"proposer_pro_tx_hash,omitempty"`
	CoreChainLockedHeight uint32 `` /* 130-byte string literal not displayed */
}

Header defines the structure of a Tendermint block header.

func (*Header) Descriptor

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

func (*Header) GetAppHash

func (m *Header) GetAppHash() []byte

func (*Header) GetChainID

func (m *Header) GetChainID() string

func (*Header) GetConsensusHash

func (m *Header) GetConsensusHash() []byte

func (*Header) GetCoreChainLockedHeight

func (m *Header) GetCoreChainLockedHeight() uint32

func (*Header) GetDataHash

func (m *Header) GetDataHash() []byte

func (*Header) GetEvidenceHash

func (m *Header) GetEvidenceHash() []byte

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetLastBlockId

func (m *Header) GetLastBlockId() BlockID

func (*Header) GetLastCommitHash

func (m *Header) GetLastCommitHash() []byte

func (*Header) GetNextConsensusHash

func (m *Header) GetNextConsensusHash() []byte

func (*Header) GetNextValidatorsHash

func (m *Header) GetNextValidatorsHash() []byte

func (*Header) GetProposedAppVersion

func (m *Header) GetProposedAppVersion() uint64

func (*Header) GetProposerProTxHash

func (m *Header) GetProposerProTxHash() []byte

func (*Header) GetResultsHash

func (m *Header) GetResultsHash() []byte

func (*Header) GetTime

func (m *Header) GetTime() time.Time

func (*Header) GetValidatorsHash

func (m *Header) GetValidatorsHash() []byte

func (*Header) GetVersion

func (m *Header) GetVersion() version.Consensus

func (*Header) Marshal

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

func (*Header) MarshalTo

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

func (*Header) MarshalToSizedBuffer

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

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

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

func (*Header) String

func (m *Header) String() string

func (*Header) Unmarshal

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

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

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

func (*Header) XXX_Merge

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

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

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

type LightBlock

type LightBlock struct {
	SignedHeader *SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"`
	ValidatorSet *ValidatorSet `protobuf:"bytes,2,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"`
}

func (*LightBlock) Descriptor

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

func (*LightBlock) GetSignedHeader

func (m *LightBlock) GetSignedHeader() *SignedHeader

func (*LightBlock) GetValidatorSet

func (m *LightBlock) GetValidatorSet() *ValidatorSet

func (*LightBlock) Marshal

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

func (*LightBlock) MarshalTo

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

func (*LightBlock) MarshalToSizedBuffer

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

func (*LightBlock) ProtoMessage

func (*LightBlock) ProtoMessage()

func (*LightBlock) Reset

func (m *LightBlock) Reset()

func (*LightBlock) Size

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

func (*LightBlock) String

func (m *LightBlock) String() string

func (*LightBlock) Unmarshal

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

func (*LightBlock) XXX_DiscardUnknown

func (m *LightBlock) XXX_DiscardUnknown()

func (*LightBlock) XXX_Marshal

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

func (*LightBlock) XXX_Merge

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

func (*LightBlock) XXX_Size

func (m *LightBlock) XXX_Size() int

func (*LightBlock) XXX_Unmarshal

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

type Part

type Part struct {
	Index uint32       `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Bytes []byte       `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Proof crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof"`
}

func (*Part) Descriptor

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

func (*Part) GetBytes

func (m *Part) GetBytes() []byte

func (*Part) GetIndex

func (m *Part) GetIndex() uint32

func (*Part) GetProof

func (m *Part) GetProof() crypto.Proof

func (*Part) Marshal

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

func (*Part) MarshalTo

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

func (*Part) MarshalToSizedBuffer

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

func (*Part) ProtoMessage

func (*Part) ProtoMessage()

func (*Part) Reset

func (m *Part) Reset()

func (*Part) Size

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

func (*Part) String

func (m *Part) String() string

func (*Part) Unmarshal

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

func (*Part) XXX_DiscardUnknown

func (m *Part) XXX_DiscardUnknown()

func (*Part) XXX_Marshal

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

func (*Part) XXX_Merge

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

func (*Part) XXX_Size

func (m *Part) XXX_Size() int

func (*Part) XXX_Unmarshal

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

type PartSetHeader

type PartSetHeader struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Hash  []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

PartsetHeader

func (*PartSetHeader) Descriptor

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

func (*PartSetHeader) GetHash

func (m *PartSetHeader) GetHash() []byte

func (*PartSetHeader) GetTotal

func (m *PartSetHeader) GetTotal() uint32

func (*PartSetHeader) IsZero

func (m *PartSetHeader) IsZero() bool

IsZero returns true when the object is a zero-value or nil

func (*PartSetHeader) Marshal

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

func (*PartSetHeader) MarshalTo

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

func (*PartSetHeader) MarshalToSizedBuffer

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

func (*PartSetHeader) ProtoMessage

func (*PartSetHeader) ProtoMessage()

func (*PartSetHeader) Reset

func (m *PartSetHeader) Reset()

func (*PartSetHeader) Size

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

func (*PartSetHeader) String

func (m *PartSetHeader) String() string

func (*PartSetHeader) ToCanonicalPartSetHeader

func (m *PartSetHeader) ToCanonicalPartSetHeader() CanonicalPartSetHeader

func (*PartSetHeader) Unmarshal

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

func (*PartSetHeader) XXX_DiscardUnknown

func (m *PartSetHeader) XXX_DiscardUnknown()

func (*PartSetHeader) XXX_Marshal

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

func (*PartSetHeader) XXX_Merge

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

func (*PartSetHeader) XXX_Size

func (m *PartSetHeader) XXX_Size() int

func (*PartSetHeader) XXX_Unmarshal

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

type Proposal

type Proposal struct {
	Type      SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"`
	Height    int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round     int32         `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	PolRound  int32         `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"`
	BlockID   BlockID       `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id"`
	Timestamp time.Time     `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	Signature []byte        `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	// core chain locked height to be used to sign/verify current block
	CoreChainLockedHeight uint32 `` /* 129-byte string literal not displayed */
	// core chain lock to be used to sign/verify next block
	CoreChainLockUpdate *CoreChainLock `protobuf:"bytes,9,opt,name=core_chain_lock_update,json=coreChainLockUpdate,proto3" json:"core_chain_lock_update,omitempty"`
}

func (*Proposal) Descriptor

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

func (*Proposal) GetBlockID

func (m *Proposal) GetBlockID() BlockID

func (*Proposal) GetCoreChainLockUpdate

func (m *Proposal) GetCoreChainLockUpdate() *CoreChainLock

func (*Proposal) GetCoreChainLockedHeight

func (m *Proposal) GetCoreChainLockedHeight() uint32

func (*Proposal) GetHeight

func (m *Proposal) GetHeight() int64

func (*Proposal) GetPolRound

func (m *Proposal) GetPolRound() int32

func (*Proposal) GetRound

func (m *Proposal) GetRound() int32

func (*Proposal) GetSignature

func (m *Proposal) GetSignature() []byte

func (*Proposal) GetTimestamp

func (m *Proposal) GetTimestamp() time.Time

func (*Proposal) GetType

func (m *Proposal) GetType() SignedMsgType

func (*Proposal) Marshal

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

func (*Proposal) MarshalTo

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

func (*Proposal) MarshalToSizedBuffer

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

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

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

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

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

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

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

func (*Proposal) XXX_Merge

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

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

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

type SignedHeader

type SignedHeader struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Commit *Commit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
}

func (*SignedHeader) Descriptor

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

func (*SignedHeader) GetCommit

func (m *SignedHeader) GetCommit() *Commit

func (*SignedHeader) GetHeader

func (m *SignedHeader) GetHeader() *Header

func (*SignedHeader) Marshal

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

func (*SignedHeader) MarshalTo

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

func (*SignedHeader) MarshalToSizedBuffer

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

func (*SignedHeader) ProtoMessage

func (*SignedHeader) ProtoMessage()

func (*SignedHeader) Reset

func (m *SignedHeader) Reset()

func (*SignedHeader) Size

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

func (*SignedHeader) String

func (m *SignedHeader) String() string

func (*SignedHeader) Unmarshal

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

func (*SignedHeader) XXX_DiscardUnknown

func (m *SignedHeader) XXX_DiscardUnknown()

func (*SignedHeader) XXX_Marshal

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

func (*SignedHeader) XXX_Merge

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

func (*SignedHeader) XXX_Size

func (m *SignedHeader) XXX_Size() int

func (*SignedHeader) XXX_Unmarshal

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

type SignedMsgType

type SignedMsgType int32

SignedMsgType is a type of signed message in the consensus.

const (
	UnknownType SignedMsgType = 0
	// Votes
	PrevoteType   SignedMsgType = 1
	PrecommitType SignedMsgType = 2
	// Proposals
	ProposalType SignedMsgType = 32
)

func (SignedMsgType) EnumDescriptor

func (SignedMsgType) EnumDescriptor() ([]byte, []int)

func (SignedMsgType) String

func (x SignedMsgType) String() string

type SimpleValidator

type SimpleValidator struct {
	PubKey      *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower int64             `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
}

func (*SimpleValidator) Descriptor

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

func (*SimpleValidator) GetPubKey

func (m *SimpleValidator) GetPubKey() *crypto.PublicKey

func (*SimpleValidator) GetVotingPower

func (m *SimpleValidator) GetVotingPower() int64

func (*SimpleValidator) Marshal

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

func (*SimpleValidator) MarshalTo

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

func (*SimpleValidator) MarshalToSizedBuffer

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

func (*SimpleValidator) ProtoMessage

func (*SimpleValidator) ProtoMessage()

func (*SimpleValidator) Reset

func (m *SimpleValidator) Reset()

func (*SimpleValidator) Size

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

func (*SimpleValidator) String

func (m *SimpleValidator) String() string

func (*SimpleValidator) Unmarshal

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

func (*SimpleValidator) XXX_DiscardUnknown

func (m *SimpleValidator) XXX_DiscardUnknown()

func (*SimpleValidator) XXX_Marshal

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

func (*SimpleValidator) XXX_Merge

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

func (*SimpleValidator) XXX_Size

func (m *SimpleValidator) XXX_Size() int

func (*SimpleValidator) XXX_Unmarshal

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

type StateID

type StateID struct {
	// AppVersion used when generating the block, equals to Header.Version.App.
	AppVersion uint64 `protobuf:"fixed64,1,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	// Height of block containing this state ID.
	Height uint64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"`
	// AppHash used in current block, equal to Header.AppHash. 32 bytes.
	AppHash []byte `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	// CoreChainLockedHeight for the block, equal to Header.CoreChainLockedHeight.
	CoreChainLockedHeight uint32 `` /* 130-byte string literal not displayed */
	// Time of the block in milliseconds since epoch, truncated (rounded down) to milliseconds
	Time uint64 `protobuf:"fixed64,5,opt,name=time,proto3" json:"time,omitempty"`
}

StateID represents essential information required to verify state, document and transactions. It is meant to be used by light clients (like mobile apps) to verify proofs.

func (StateID) Copy

func (s StateID) Copy() StateID

Copy returns new StateID that is equal to this one

func (*StateID) Descriptor

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

func (StateID) Equal

func (s StateID) Equal(other StateID) bool

Equal returns true if the StateID matches the given StateID

func (*StateID) GetAppHash

func (m *StateID) GetAppHash() []byte

func (*StateID) GetAppVersion

func (m *StateID) GetAppVersion() uint64

func (*StateID) GetCoreChainLockedHeight

func (m *StateID) GetCoreChainLockedHeight() uint32

func (*StateID) GetHeight

func (m *StateID) GetHeight() uint64

func (*StateID) GetTime

func (m *StateID) GetTime() uint64

func (StateID) Hash

func (s StateID) Hash() (bz []byte)

Hash calculates hash of a StateID to be used in BlockID and other places. It will panic() in case of (very unlikely) error.

func (*StateID) IsZero

func (s *StateID) IsZero() bool

func (*StateID) Marshal

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

func (*StateID) MarshalTo

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

func (*StateID) MarshalToSizedBuffer

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

func (*StateID) ProtoMessage

func (*StateID) ProtoMessage()

func (*StateID) Reset

func (m *StateID) Reset()

func (*StateID) Size

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

func (StateID) String

func (s StateID) String() string

func (*StateID) Unmarshal

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

func (StateID) ValidateBasic

func (s StateID) ValidateBasic() error

ValidateBasic performs basic validation.

func (*StateID) XXX_DiscardUnknown

func (m *StateID) XXX_DiscardUnknown()

func (*StateID) XXX_Marshal

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

func (*StateID) XXX_Merge

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

func (*StateID) XXX_Size

func (m *StateID) XXX_Size() int

func (*StateID) XXX_Unmarshal

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

type SynchronyParams

type SynchronyParams struct {
	// message_delay bounds how long a proposal message may take to reach all validators on a network
	// and still be considered valid.
	MessageDelay *time.Duration `protobuf:"bytes,1,opt,name=message_delay,json=messageDelay,proto3,stdduration" json:"message_delay,omitempty"`
	// precision bounds how skewed a proposer's clock may be from any validator
	// on the network while still producing valid proposals.
	Precision *time.Duration `protobuf:"bytes,2,opt,name=precision,proto3,stdduration" json:"precision,omitempty"`
}

SynchronyParams configure the bounds under which a proposed block's timestamp is considered valid. These parameters are part of the proposer-based timestamps algorithm. For more information, see the specification of proposer-based timestamps: https://github.com/tendermint/tendermint/tree/master/spec/consensus/proposer-based-timestamp

func (*SynchronyParams) Descriptor

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

func (*SynchronyParams) Equal

func (this *SynchronyParams) Equal(that interface{}) bool

func (*SynchronyParams) GetMessageDelay

func (m *SynchronyParams) GetMessageDelay() *time.Duration

func (*SynchronyParams) GetPrecision

func (m *SynchronyParams) GetPrecision() *time.Duration

func (*SynchronyParams) Marshal

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

func (*SynchronyParams) MarshalTo

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

func (*SynchronyParams) MarshalToSizedBuffer

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

func (*SynchronyParams) ProtoMessage

func (*SynchronyParams) ProtoMessage()

func (*SynchronyParams) Reset

func (m *SynchronyParams) Reset()

func (*SynchronyParams) Size

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

func (*SynchronyParams) String

func (m *SynchronyParams) String() string

func (*SynchronyParams) Unmarshal

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

func (*SynchronyParams) XXX_DiscardUnknown

func (m *SynchronyParams) XXX_DiscardUnknown()

func (*SynchronyParams) XXX_Marshal

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

func (*SynchronyParams) XXX_Merge

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

func (*SynchronyParams) XXX_Size

func (m *SynchronyParams) XXX_Size() int

func (*SynchronyParams) XXX_Unmarshal

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

type TimeoutParams

type TimeoutParams struct {
	// These fields configure the timeouts for the propose step of the Tendermint
	// consensus algorithm: propose is the initial timeout and propose_delta
	// determines how much the timeout grows in subsequent rounds.
	// For the first round, this propose timeout is used and for every subsequent
	// round, the timeout grows by propose_delta.
	//
	// For example:
	// With propose = 10ms, propose_delta = 5ms, the first round's propose phase
	// timeout would be 10ms, the second round's would be 15ms, the third 20ms and so on.
	//
	// If a node waiting for a proposal message does not receive one matching its
	// current height and round before this timeout, the node will issue a
	// nil prevote for the round and advance to the next step.
	Propose      *time.Duration `protobuf:"bytes,1,opt,name=propose,proto3,stdduration" json:"propose,omitempty"`
	ProposeDelta *time.Duration `protobuf:"bytes,2,opt,name=propose_delta,json=proposeDelta,proto3,stdduration" json:"propose_delta,omitempty"`
	// vote along with vote_delta configure the timeout for both of the prevote and
	// precommit steps of the Tendermint consensus algorithm.
	//
	// These parameters influence the vote step timeouts in the the same way that
	// the propose and propose_delta parameters do to the proposal step.
	//
	// The vote timeout does not begin until a quorum of votes has been received. Once
	// a quorum of votes has been seen and this timeout elapses, Tendermint will
	// procced to the next step of the consensus algorithm. If Tendermint receives
	// all of the remaining votes before the end of the timeout, it will proceed
	// to the next step immediately.
	Vote      *time.Duration `protobuf:"bytes,3,opt,name=vote,proto3,stdduration" json:"vote,omitempty"`
	VoteDelta *time.Duration `protobuf:"bytes,4,opt,name=vote_delta,json=voteDelta,proto3,stdduration" json:"vote_delta,omitempty"`
}

TimeoutParams configure the timeouts for the steps of the Tendermint consensus algorithm.

func (*TimeoutParams) Descriptor

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

func (*TimeoutParams) Equal

func (this *TimeoutParams) Equal(that interface{}) bool

func (*TimeoutParams) GetPropose

func (m *TimeoutParams) GetPropose() *time.Duration

func (*TimeoutParams) GetProposeDelta

func (m *TimeoutParams) GetProposeDelta() *time.Duration

func (*TimeoutParams) GetVote

func (m *TimeoutParams) GetVote() *time.Duration

func (*TimeoutParams) GetVoteDelta

func (m *TimeoutParams) GetVoteDelta() *time.Duration

func (*TimeoutParams) Marshal

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

func (*TimeoutParams) MarshalTo

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

func (*TimeoutParams) MarshalToSizedBuffer

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

func (*TimeoutParams) ProtoMessage

func (*TimeoutParams) ProtoMessage()

func (*TimeoutParams) Reset

func (m *TimeoutParams) Reset()

func (*TimeoutParams) Size

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

func (*TimeoutParams) String

func (m *TimeoutParams) String() string

func (*TimeoutParams) Unmarshal

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

func (*TimeoutParams) XXX_DiscardUnknown

func (m *TimeoutParams) XXX_DiscardUnknown()

func (*TimeoutParams) XXX_Marshal

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

func (*TimeoutParams) XXX_Merge

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

func (*TimeoutParams) XXX_Size

func (m *TimeoutParams) XXX_Size() int

func (*TimeoutParams) XXX_Unmarshal

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

type TxProof

type TxProof struct {
	RootHash []byte        `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	Data     []byte        `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Proof    *crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
}

TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.

func (*TxProof) Descriptor

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

func (*TxProof) GetData

func (m *TxProof) GetData() []byte

func (*TxProof) GetProof

func (m *TxProof) GetProof() *crypto.Proof

func (*TxProof) GetRootHash

func (m *TxProof) GetRootHash() []byte

func (*TxProof) Marshal

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

func (*TxProof) MarshalTo

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

func (*TxProof) MarshalToSizedBuffer

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

func (*TxProof) ProtoMessage

func (*TxProof) ProtoMessage()

func (*TxProof) Reset

func (m *TxProof) Reset()

func (*TxProof) Size

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

func (*TxProof) String

func (m *TxProof) String() string

func (*TxProof) Unmarshal

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

func (*TxProof) XXX_DiscardUnknown

func (m *TxProof) XXX_DiscardUnknown()

func (*TxProof) XXX_Marshal

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

func (*TxProof) XXX_Merge

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

func (*TxProof) XXX_Size

func (m *TxProof) XXX_Size() int

func (*TxProof) XXX_Unmarshal

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

type Validator

type Validator struct {
	PubKey           *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower      int64             `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	ProposerPriority int64             `protobuf:"varint,3,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
	ProTxHash        []byte            `protobuf:"bytes,4,opt,name=pro_tx_hash,json=proTxHash,proto3" json:"pro_tx_hash,omitempty"`
	NodeAddress      string            `protobuf:"bytes,5,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
}

func (*Validator) Descriptor

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

func (*Validator) GetNodeAddress

func (m *Validator) GetNodeAddress() string

func (*Validator) GetProTxHash

func (m *Validator) GetProTxHash() []byte

func (*Validator) GetProposerPriority

func (m *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (m *Validator) GetPubKey() *crypto.PublicKey

func (*Validator) GetVotingPower

func (m *Validator) GetVotingPower() int64

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorParams

type ValidatorParams struct {
	PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"`
}

ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names.

func (*ValidatorParams) Descriptor

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

func (*ValidatorParams) Equal

func (this *ValidatorParams) Equal(that interface{}) bool

func (*ValidatorParams) GetPubKeyTypes

func (m *ValidatorParams) GetPubKeyTypes() []string

func (*ValidatorParams) Marshal

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

func (*ValidatorParams) MarshalTo

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

func (*ValidatorParams) MarshalToSizedBuffer

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

func (*ValidatorParams) ProtoMessage

func (*ValidatorParams) ProtoMessage()

func (*ValidatorParams) Reset

func (m *ValidatorParams) Reset()

func (*ValidatorParams) Size

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

func (*ValidatorParams) String

func (m *ValidatorParams) String() string

func (*ValidatorParams) Unmarshal

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

func (*ValidatorParams) XXX_DiscardUnknown

func (m *ValidatorParams) XXX_DiscardUnknown()

func (*ValidatorParams) XXX_Marshal

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

func (*ValidatorParams) XXX_Merge

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

func (*ValidatorParams) XXX_Size

func (m *ValidatorParams) XXX_Size() int

func (*ValidatorParams) XXX_Unmarshal

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

type ValidatorSet

type ValidatorSet struct {
	Validators         []*Validator     `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	Proposer           *Validator       `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	TotalVotingPower   int64            `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
	ThresholdPublicKey crypto.PublicKey `protobuf:"bytes,4,opt,name=threshold_public_key,json=thresholdPublicKey,proto3" json:"threshold_public_key"`
	QuorumType         int32            `protobuf:"varint,5,opt,name=quorum_type,json=quorumType,proto3" json:"quorum_type,omitempty"`
	QuorumHash         []byte           `protobuf:"bytes,6,opt,name=quorum_hash,json=quorumHash,proto3" json:"quorum_hash,omitempty"`
	HasPublicKeys      bool             `protobuf:"varint,7,opt,name=has_public_keys,json=hasPublicKeys,proto3" json:"has_public_keys,omitempty"`
}

func (*ValidatorSet) Descriptor

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

func (*ValidatorSet) GetHasPublicKeys

func (m *ValidatorSet) GetHasPublicKeys() bool

func (*ValidatorSet) GetProposer

func (m *ValidatorSet) GetProposer() *Validator

func (*ValidatorSet) GetQuorumHash

func (m *ValidatorSet) GetQuorumHash() []byte

func (*ValidatorSet) GetQuorumType

func (m *ValidatorSet) GetQuorumType() int32

func (*ValidatorSet) GetThresholdPublicKey

func (m *ValidatorSet) GetThresholdPublicKey() crypto.PublicKey

func (*ValidatorSet) GetTotalVotingPower

func (m *ValidatorSet) GetTotalVotingPower() int64

func (*ValidatorSet) GetValidators

func (m *ValidatorSet) GetValidators() []*Validator

func (*ValidatorSet) Marshal

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

func (*ValidatorSet) MarshalTo

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

func (*ValidatorSet) MarshalToSizedBuffer

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

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) Reset

func (m *ValidatorSet) Reset()

func (*ValidatorSet) Size

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

func (*ValidatorSet) String

func (m *ValidatorSet) String() string

func (*ValidatorSet) Unmarshal

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

func (*ValidatorSet) XXX_DiscardUnknown

func (m *ValidatorSet) XXX_DiscardUnknown()

func (*ValidatorSet) XXX_Marshal

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

func (*ValidatorSet) XXX_Merge

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

func (*ValidatorSet) XXX_Size

func (m *ValidatorSet) XXX_Size() int

func (*ValidatorSet) XXX_Unmarshal

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

type VersionParams

type VersionParams struct {
	AppVersion uint64 `protobuf:"varint,1,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
}

VersionParams contains the ABCI application version. DEPRECATED. This will be removed in a future release.

func (*VersionParams) Descriptor

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

func (*VersionParams) Equal

func (this *VersionParams) Equal(that interface{}) bool

func (*VersionParams) GetAppVersion

func (m *VersionParams) GetAppVersion() uint64

func (*VersionParams) Marshal

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

func (*VersionParams) MarshalTo

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

func (*VersionParams) MarshalToSizedBuffer

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

func (*VersionParams) ProtoMessage

func (*VersionParams) ProtoMessage()

func (*VersionParams) Reset

func (m *VersionParams) Reset()

func (*VersionParams) Size

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

func (*VersionParams) String

func (m *VersionParams) String() string

func (*VersionParams) Unmarshal

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

func (*VersionParams) XXX_DiscardUnknown

func (m *VersionParams) XXX_DiscardUnknown()

func (*VersionParams) XXX_Marshal

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

func (*VersionParams) XXX_Merge

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

func (*VersionParams) XXX_Size

func (m *VersionParams) XXX_Size() int

func (*VersionParams) XXX_Unmarshal

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

type Vote

type Vote struct {
	Type               SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"`
	Height             int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round              int32         `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	BlockID            BlockID       `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
	ValidatorProTxHash []byte        `protobuf:"bytes,5,opt,name=validator_pro_tx_hash,json=validatorProTxHash,proto3" json:"validator_pro_tx_hash,omitempty"`
	ValidatorIndex     int32         `protobuf:"varint,6,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"`
	BlockSignature     []byte        `protobuf:"bytes,7,opt,name=block_signature,json=blockSignature,proto3" json:"block_signature,omitempty"`
	// Vote extension provided by the application. Only valid for precommit
	// messages.
	// Vote extension signature by the validator if they participated in
	// consensus for the associated block. Only valid for precommit messages.
	VoteExtensions []*VoteExtension `protobuf:"bytes,8,rep,name=vote_extensions,json=voteExtensions,proto3" json:"vote_extensions,omitempty"`
}

Vote represents a prevote, precommit, or commit vote from validators for consensus.

func (*Vote) Descriptor

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

func (*Vote) GetBlockID

func (m *Vote) GetBlockID() BlockID

func (*Vote) GetBlockSignature

func (m *Vote) GetBlockSignature() []byte

func (*Vote) GetHeight

func (m *Vote) GetHeight() int64

func (*Vote) GetRound

func (m *Vote) GetRound() int32

func (*Vote) GetType

func (m *Vote) GetType() SignedMsgType

func (*Vote) GetValidatorIndex

func (m *Vote) GetValidatorIndex() int32

func (*Vote) GetValidatorProTxHash

func (m *Vote) GetValidatorProTxHash() []byte

func (*Vote) GetVoteExtensions

func (m *Vote) GetVoteExtensions() []*VoteExtension

func (*Vote) Marshal

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

func (*Vote) MarshalTo

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

func (*Vote) MarshalToSizedBuffer

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

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (Vote) SignBytes

func (m Vote) SignBytes(chainID string) ([]byte, error)

SignBytes represent data to be signed for the given vote. It's a 64-byte slice containing concatenation of: * Checksum of CanonicalVote * Checksum of StateID

func (*Vote) Size

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

func (*Vote) String

func (m *Vote) String() string

func (Vote) ToCanonicalVote

func (m Vote) ToCanonicalVote(chainID string) (CanonicalVote, error)

CanonicalizeVote transforms the given Vote to a CanonicalVote, which does not contain ValidatorIndex and ValidatorProTxHash fields.

func (*Vote) Unmarshal

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

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

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

func (*Vote) XXX_Merge

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

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

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

type VoteExtension

type VoteExtension struct {
	Type      VoteExtensionType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.VoteExtensionType" json:"type,omitempty"`
	Extension []byte            `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
	Signature []byte            `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// Types that are valid to be assigned to XSignRequestId:
	//	*VoteExtension_SignRequestId
	XSignRequestId isVoteExtension_XSignRequestId `protobuf_oneof:"_sign_request_id"`
}

func (*VoteExtension) Clone added in v1.0.0

func (v *VoteExtension) Clone() VoteExtension

func (*VoteExtension) Copy added in v1.0.0

func (v *VoteExtension) Copy() VoteExtension

Copy returns a deep copy of current vote-extension.

func (*VoteExtension) Descriptor

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

func (*VoteExtension) Equal added in v1.0.0

func (v *VoteExtension) Equal(other *VoteExtension) bool

func (*VoteExtension) GetExtension

func (m *VoteExtension) GetExtension() []byte

func (*VoteExtension) GetSignRequestId added in v1.0.0

func (m *VoteExtension) GetSignRequestId() []byte

func (*VoteExtension) GetSignature

func (m *VoteExtension) GetSignature() []byte

func (*VoteExtension) GetType

func (m *VoteExtension) GetType() VoteExtensionType

func (*VoteExtension) GetXSignRequestId added in v1.0.0

func (m *VoteExtension) GetXSignRequestId() isVoteExtension_XSignRequestId

func (*VoteExtension) Marshal

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

func (*VoteExtension) MarshalTo

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

func (*VoteExtension) MarshalToSizedBuffer

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

func (*VoteExtension) ProtoMessage

func (*VoteExtension) ProtoMessage()

func (*VoteExtension) Reset

func (m *VoteExtension) Reset()

func (*VoteExtension) Size

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

func (*VoteExtension) String

func (m *VoteExtension) String() string

func (*VoteExtension) Unmarshal

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

func (*VoteExtension) Validate added in v1.0.0

func (v *VoteExtension) Validate() error

Validate checks the validity of the vote-extension

func (*VoteExtension) XXX_DiscardUnknown

func (m *VoteExtension) XXX_DiscardUnknown()

func (*VoteExtension) XXX_Marshal

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

func (*VoteExtension) XXX_Merge

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

func (*VoteExtension) XXX_OneofWrappers added in v1.0.0

func (*VoteExtension) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*VoteExtension) XXX_Size

func (m *VoteExtension) XXX_Size() int

func (*VoteExtension) XXX_Unmarshal

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

type VoteExtensionType

type VoteExtensionType int32
const (
	// Unsupported
	VoteExtensionType_DEFAULT VoteExtensionType = 0
	// Sign canonical form of vote extension and threshold-recover signatures.
	//
	// Deterministic vote extension - each validator in a quorum must provide the same vote extension data.
	VoteExtensionType_THRESHOLD_RECOVER VoteExtensionType = 1
	// Sign raw form of vote extension and threshold-recover signatures.
	//
	// Deterministic vote extension - each validator in a quorum must provide the same vote extension data.
	// Use with caution - it can have severe security consequences, like replay attacks.
	//
	// THRESHOLD_RECOVER_RAW alows overriding sign request ID with `sign_request_id` field
	// of ExtendVoteExtension.sign_request_id. If sign_request_id is provided, SHA256(sign_request_id) will be used as
	// a sign request ID.
	//
	// It also changes how threshold-recover signatures are generated. Instead of signing canonical form of
	// threshold-recover signatures, it signs SHA256 of raw form of the vote extension (`ExtendVoteExtension.extension`).
	VoteExtensionType_THRESHOLD_RECOVER_RAW VoteExtensionType = 2
)

func (VoteExtensionType) EnumDescriptor

func (VoteExtensionType) EnumDescriptor() ([]byte, []int)

func (VoteExtensionType) String

func (x VoteExtensionType) String() string

type VoteExtension_SignRequestId added in v1.0.0

type VoteExtension_SignRequestId struct {
	SignRequestId []byte `protobuf:"bytes,4,opt,name=sign_request_id,json=signRequestId,proto3,oneof" json:"sign_request_id,omitempty"`
}

func (*VoteExtension_SignRequestId) MarshalTo added in v1.0.0

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

func (*VoteExtension_SignRequestId) MarshalToSizedBuffer added in v1.0.0

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

func (*VoteExtension_SignRequestId) Size added in v1.0.0

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

type VoteExtensions

type VoteExtensions []*VoteExtension

VoteExtensions is a container type for grouped vote extensions by type

func (VoteExtensions) Contains added in v1.0.0

func (v VoteExtensions) Contains(other VoteExtension) bool

Jump to

Keyboard shortcuts

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