Documentation
¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetData() *Data
- func (m *Block) GetSignedHeader() *SignedHeader
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)
- func (m *Commit) GetSignatures() [][]byte
- func (m *Commit) Marshal() (dAtA []byte, err error)
- func (m *Commit) MarshalTo(dAtA []byte) (int, error)
- func (m *Commit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Commit) ProtoMessage()
- func (m *Commit) Reset()
- func (m *Commit) Size() (n int)
- func (m *Commit) String() string
- func (m *Commit) Unmarshal(dAtA []byte) error
- func (m *Commit) XXX_DiscardUnknown()
- func (m *Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Commit) XXX_Merge(src proto.Message)
- func (m *Commit) XXX_Size() int
- func (m *Commit) XXX_Unmarshal(b []byte) error
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetEvidence() []*types1.Evidence
- func (m *Data) GetIntermediateStateRoots() [][]byte
- func (m *Data) GetTxs() [][]byte
- func (m *Data) Marshal() (dAtA []byte, err error)
- func (m *Data) MarshalTo(dAtA []byte) (int, error)
- func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) Size() (n int)
- func (m *Data) String() string
- func (m *Data) Unmarshal(dAtA []byte) error
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetAggregatorsHash() []byte
- func (m *Header) GetAppHash() []byte
- func (m *Header) GetChainId() string
- func (m *Header) GetConsensusHash() []byte
- func (m *Header) GetDataHash() []byte
- func (m *Header) GetHeight() uint64
- func (m *Header) GetLastCommitHash() []byte
- func (m *Header) GetLastHeaderHash() []byte
- func (m *Header) GetLastResultsHash() []byte
- func (m *Header) GetProposerAddress() []byte
- func (m *Header) GetTime() uint64
- func (m *Header) GetVersion() *Version
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type SignedHeader
- func (*SignedHeader) Descriptor() ([]byte, []int)
- func (m *SignedHeader) GetCommit() *Commit
- func (m *SignedHeader) GetHeader() *Header
- func (m *SignedHeader) GetValidators() *types.ValidatorSet
- func (m *SignedHeader) Marshal() (dAtA []byte, err error)
- func (m *SignedHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignedHeader) ProtoMessage()
- func (m *SignedHeader) Reset()
- func (m *SignedHeader) Size() (n int)
- func (m *SignedHeader) String() string
- func (m *SignedHeader) Unmarshal(dAtA []byte) error
- func (m *SignedHeader) XXX_DiscardUnknown()
- func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedHeader) XXX_Merge(src proto.Message)
- func (m *SignedHeader) XXX_Size() int
- func (m *SignedHeader) XXX_Unmarshal(b []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetAppHash() []byte
- func (m *State) GetChainId() string
- func (m *State) GetConsensusParams() types.ConsensusParams
- func (m *State) GetDAHeight() uint64
- func (m *State) GetInitialHeight() int64
- func (m *State) GetLastBlockHeight() int64
- func (m *State) GetLastBlockID() types.BlockID
- func (m *State) GetLastBlockTime() time.Time
- func (m *State) GetLastHeightConsensusParamsChanged() int64
- func (m *State) GetLastHeightValidatorsChanged() int64
- func (m *State) GetLastResultsHash() []byte
- func (m *State) GetLastValidators() *types.ValidatorSet
- func (m *State) GetNextValidators() *types.ValidatorSet
- func (m *State) GetValidators() *types.ValidatorSet
- func (m *State) GetVersion() *state.Version
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetApp() uint64
- func (m *Version) GetBlock() uint64
- func (m *Version) Marshal() (dAtA []byte, err error)
- func (m *Version) MarshalTo(dAtA []byte) (int, error)
- func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) Size() (n int)
- func (m *Version) String() string
- func (m *Version) Unmarshal(dAtA []byte) error
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
SignedHeader *SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"`
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Block) Descriptor ¶
func (*Block) GetSignedHeader ¶ added in v0.7.0
func (m *Block) GetSignedHeader() *SignedHeader
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type Commit ¶
type Commit struct {
Signatures [][]byte `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
}
func (*Commit) Descriptor ¶
func (*Commit) GetSignatures ¶
func (*Commit) MarshalToSizedBuffer ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) XXX_DiscardUnknown ¶
func (m *Commit) XXX_DiscardUnknown()
func (*Commit) XXX_Marshal ¶
func (*Commit) XXX_Unmarshal ¶
type Data ¶
type Data struct {
Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
IntermediateStateRoots [][]byte `` /* 129-byte string literal not displayed */
Evidence []*types1.Evidence `protobuf:"bytes,3,rep,name=evidence,proto3" json:"evidence,omitempty"`
}
func (*Data) Descriptor ¶
func (*Data) GetEvidence ¶
func (*Data) GetIntermediateStateRoots ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type Header ¶
type Header struct {
// Block and App version
Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Block height
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// Block creation time
Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
// Previous block info
LastHeaderHash []byte `protobuf:"bytes,4,opt,name=last_header_hash,json=lastHeaderHash,proto3" json:"last_header_hash,omitempty"`
// Commit from aggregator(s) from the last block
LastCommitHash []byte `protobuf:"bytes,5,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
// Block.Data root aka Transactions
DataHash []byte `protobuf:"bytes,6,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
// Consensus params for current block
ConsensusHash []byte `protobuf:"bytes,7,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
// State after applying txs from the current block
AppHash []byte `protobuf:"bytes,8,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
// Root hash of all results from the txs from the previous block.
// This is ABCI specific but smart-contract chains require some way of committing
// to transaction receipts/results.
LastResultsHash []byte `protobuf:"bytes,9,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
// Original proposer of the block
// Note that the address can be derived from the pubkey which can be derived
// from the signature when using secp256k.
// We keep this in case users choose another signature format where the
// pubkey can't be recovered by the signature (e.g. ed25519).
ProposerAddress []byte `protobuf:"bytes,10,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
// Hash of block aggregator set, at a time of block creation
AggregatorsHash []byte `protobuf:"bytes,11,opt,name=aggregators_hash,json=aggregatorsHash,proto3" json:"aggregators_hash,omitempty"`
// Chain ID the block belongs to
ChainId string `protobuf:"bytes,12,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}
func (*Header) Descriptor ¶
func (*Header) GetAggregatorsHash ¶
func (*Header) GetAppHash ¶
func (*Header) GetChainId ¶
func (*Header) GetConsensusHash ¶
func (*Header) GetDataHash ¶
func (*Header) GetLastCommitHash ¶
func (*Header) GetLastHeaderHash ¶
func (*Header) GetLastResultsHash ¶
func (*Header) GetProposerAddress ¶
func (*Header) GetVersion ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
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"`
Validators *types.ValidatorSet `protobuf:"bytes,3,opt,name=validators,proto3" json:"validators,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) GetValidators ¶ added in v0.7.1
func (m *SignedHeader) GetValidators() *types.ValidatorSet
func (*SignedHeader) Marshal ¶
func (m *SignedHeader) Marshal() (dAtA []byte, err 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 State ¶
type State struct {
Version *state.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
InitialHeight int64 `protobuf:"varint,3,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
LastBlockID types.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
LastBlockTime time.Time `protobuf:"bytes,6,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"`
DAHeight uint64 `protobuf:"varint,7,opt,name=da_height,json=daHeight,proto3" json:"da_height,omitempty"`
NextValidators *types.ValidatorSet `protobuf:"bytes,8,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
Validators *types.ValidatorSet `protobuf:"bytes,9,opt,name=validators,proto3" json:"validators,omitempty"`
LastValidators *types.ValidatorSet `protobuf:"bytes,10,opt,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
LastHeightValidatorsChanged int64 `` /* 148-byte string literal not displayed */
ConsensusParams types.ConsensusParams `protobuf:"bytes,12,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
LastHeightConsensusParamsChanged int64 `` /* 165-byte string literal not displayed */
LastResultsHash []byte `protobuf:"bytes,14,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
AppHash []byte `protobuf:"bytes,15,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
}
func (*State) Descriptor ¶
func (*State) GetAppHash ¶
func (*State) GetChainId ¶
func (*State) GetConsensusParams ¶
func (m *State) GetConsensusParams() types.ConsensusParams
func (*State) GetDAHeight ¶
func (*State) GetInitialHeight ¶
func (*State) GetLastBlockHeight ¶
func (*State) GetLastBlockID ¶
func (*State) GetLastBlockTime ¶
func (*State) GetLastHeightConsensusParamsChanged ¶
func (*State) GetLastHeightValidatorsChanged ¶
func (*State) GetLastResultsHash ¶
func (*State) GetLastValidators ¶
func (m *State) GetLastValidators() *types.ValidatorSet
func (*State) GetNextValidators ¶
func (m *State) GetNextValidators() *types.ValidatorSet
func (*State) GetValidators ¶
func (m *State) GetValidators() *types.ValidatorSet
func (*State) GetVersion ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
type Version ¶
type Version struct {
Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"`
App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"`
}
Version captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine. This is equivalent to the tmversion.Consensus type in Tendermint.
func (*Version) Descriptor ¶
func (*Version) MarshalToSizedBuffer ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.