Documentation ¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetExecHeight() uint64
- func (x *Block) GetHash() []byte
- func (x *Block) GetHeight() uint64
- func (x *Block) GetMerkleRoot() []byte
- func (x *Block) GetParentHash() []byte
- func (x *Block) GetProposer() []byte
- func (x *Block) GetQuorumCert() *QuorumCert
- func (x *Block) GetSignature() []byte
- func (x *Block) GetTimestamp() int64
- func (x *Block) GetTransactions() [][]byte
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockCommit
- func (*BlockCommit) Descriptor() ([]byte, []int)deprecated
- func (x *BlockCommit) GetElapsedExec() float64
- func (x *BlockCommit) GetElapsedMerkle() float64
- func (x *BlockCommit) GetHash() []byte
- func (x *BlockCommit) GetLeafCount() []byte
- func (x *BlockCommit) GetMerkleRoot() []byte
- func (x *BlockCommit) GetOldBlockTxs() [][]byte
- func (x *BlockCommit) GetStateChanges() []*StateChange
- func (*BlockCommit) ProtoMessage()
- func (x *BlockCommit) ProtoReflect() protoreflect.Message
- func (x *BlockCommit) Reset()
- func (x *BlockCommit) String() string
- type QuorumCert
- func (*QuorumCert) Descriptor() ([]byte, []int)deprecated
- func (x *QuorumCert) GetBlockHash() []byte
- func (x *QuorumCert) GetSignatures() []*Signature
- func (*QuorumCert) ProtoMessage()
- func (x *QuorumCert) ProtoReflect() protoreflect.Message
- func (x *QuorumCert) Reset()
- func (x *QuorumCert) String() string
- type Signature
- type StateChange
- func (*StateChange) Descriptor() ([]byte, []int)deprecated
- func (x *StateChange) GetKey() []byte
- func (x *StateChange) GetPrevTreeIndex() []byte
- func (x *StateChange) GetPrevValue() []byte
- func (x *StateChange) GetTreeIndex() []byte
- func (x *StateChange) GetValue() []byte
- func (*StateChange) ProtoMessage()
- func (x *StateChange) ProtoReflect() protoreflect.Message
- func (x *StateChange) Reset()
- func (x *StateChange) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetCodeAddr() []byte
- func (x *Transaction) GetExpiry() uint64
- func (x *Transaction) GetHash() []byte
- func (x *Transaction) GetInput() []byte
- func (x *Transaction) GetNonce() int64
- func (x *Transaction) GetSender() []byte
- func (x *Transaction) GetSignature() []byte
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TxCommit
- func (*TxCommit) Descriptor() ([]byte, []int)deprecated
- func (x *TxCommit) GetBlockHash() []byte
- func (x *TxCommit) GetBlockHeight() uint64
- func (x *TxCommit) GetElapsed() float64
- func (x *TxCommit) GetError() string
- func (x *TxCommit) GetHash() []byte
- func (*TxCommit) ProtoMessage()
- func (x *TxCommit) ProtoReflect() protoreflect.Message
- func (x *TxCommit) Reset()
- func (x *TxCommit) String() string
- type TxList
- type Vote
Constants ¶
This section is empty.
Variables ¶
View Source
var File_core_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` ParentHash []byte `protobuf:"bytes,3,opt,name=parentHash,proto3" json:"parentHash,omitempty"` Proposer []byte `protobuf:"bytes,4,opt,name=proposer,proto3" json:"proposer,omitempty"` QuorumCert *QuorumCert `protobuf:"bytes,5,opt,name=quorumCert,proto3" json:"quorumCert,omitempty"` ExecHeight uint64 `protobuf:"varint,6,opt,name=execHeight,proto3" json:"execHeight,omitempty"` MerkleRoot []byte `protobuf:"bytes,7,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"` Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Transactions [][]byte `protobuf:"bytes,9,rep,name=transactions,proto3" json:"transactions,omitempty"` // transaction hashes Signature []byte `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"` // signature of proposer // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetExecHeight ¶
func (*Block) GetMerkleRoot ¶
func (*Block) GetParentHash ¶
func (*Block) GetProposer ¶
func (*Block) GetQuorumCert ¶
func (x *Block) GetQuorumCert() *QuorumCert
func (*Block) GetSignature ¶
func (*Block) GetTimestamp ¶
func (*Block) GetTransactions ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockCommit ¶
type BlockCommit struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` ElapsedExec float64 `protobuf:"fixed64,2,opt,name=elapsedExec,proto3" json:"elapsedExec,omitempty"` ElapsedMerkle float64 `protobuf:"fixed64,3,opt,name=elapsedMerkle,proto3" json:"elapsedMerkle,omitempty"` OldBlockTxs [][]byte `protobuf:"bytes,5,rep,name=oldBlockTxs,proto3" json:"oldBlockTxs,omitempty"` StateChanges []*StateChange `protobuf:"bytes,6,rep,name=stateChanges,proto3" json:"stateChanges,omitempty"` LeafCount []byte `protobuf:"bytes,7,opt,name=leafCount,proto3" json:"leafCount,omitempty"` MerkleRoot []byte `protobuf:"bytes,8,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"` // contains filtered or unexported fields }
func (*BlockCommit) Descriptor
deprecated
func (*BlockCommit) Descriptor() ([]byte, []int)
Deprecated: Use BlockCommit.ProtoReflect.Descriptor instead.
func (*BlockCommit) GetElapsedExec ¶
func (x *BlockCommit) GetElapsedExec() float64
func (*BlockCommit) GetElapsedMerkle ¶
func (x *BlockCommit) GetElapsedMerkle() float64
func (*BlockCommit) GetHash ¶
func (x *BlockCommit) GetHash() []byte
func (*BlockCommit) GetLeafCount ¶
func (x *BlockCommit) GetLeafCount() []byte
func (*BlockCommit) GetMerkleRoot ¶
func (x *BlockCommit) GetMerkleRoot() []byte
func (*BlockCommit) GetOldBlockTxs ¶
func (x *BlockCommit) GetOldBlockTxs() [][]byte
func (*BlockCommit) GetStateChanges ¶
func (x *BlockCommit) GetStateChanges() []*StateChange
func (*BlockCommit) ProtoMessage ¶
func (*BlockCommit) ProtoMessage()
func (*BlockCommit) ProtoReflect ¶
func (x *BlockCommit) ProtoReflect() protoreflect.Message
func (*BlockCommit) Reset ¶
func (x *BlockCommit) Reset()
func (*BlockCommit) String ¶
func (x *BlockCommit) String() string
type QuorumCert ¶
type QuorumCert struct { BlockHash []byte `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` Signatures []*Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` // contains filtered or unexported fields }
func (*QuorumCert) Descriptor
deprecated
func (*QuorumCert) Descriptor() ([]byte, []int)
Deprecated: Use QuorumCert.ProtoReflect.Descriptor instead.
func (*QuorumCert) GetBlockHash ¶
func (x *QuorumCert) GetBlockHash() []byte
func (*QuorumCert) GetSignatures ¶
func (x *QuorumCert) GetSignatures() []*Signature
func (*QuorumCert) ProtoMessage ¶
func (*QuorumCert) ProtoMessage()
func (*QuorumCert) ProtoReflect ¶
func (x *QuorumCert) ProtoReflect() protoreflect.Message
func (*QuorumCert) Reset ¶
func (x *QuorumCert) Reset()
func (*QuorumCert) String ¶
func (x *QuorumCert) String() string
type Signature ¶
type Signature struct { PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Signature) Descriptor
deprecated
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
type StateChange ¶
type StateChange struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` PrevValue []byte `protobuf:"bytes,3,opt,name=prevValue,proto3" json:"prevValue,omitempty"` TreeIndex []byte `protobuf:"bytes,4,opt,name=treeIndex,proto3" json:"treeIndex,omitempty"` PrevTreeIndex []byte `protobuf:"bytes,5,opt,name=prevTreeIndex,proto3" json:"prevTreeIndex,omitempty"` // contains filtered or unexported fields }
func (*StateChange) Descriptor
deprecated
func (*StateChange) Descriptor() ([]byte, []int)
Deprecated: Use StateChange.ProtoReflect.Descriptor instead.
func (*StateChange) GetKey ¶
func (x *StateChange) GetKey() []byte
func (*StateChange) GetPrevTreeIndex ¶
func (x *StateChange) GetPrevTreeIndex() []byte
func (*StateChange) GetPrevValue ¶
func (x *StateChange) GetPrevValue() []byte
func (*StateChange) GetTreeIndex ¶
func (x *StateChange) GetTreeIndex() []byte
func (*StateChange) GetValue ¶
func (x *StateChange) GetValue() []byte
func (*StateChange) ProtoMessage ¶
func (*StateChange) ProtoMessage()
func (*StateChange) ProtoReflect ¶
func (x *StateChange) ProtoReflect() protoreflect.Message
func (*StateChange) Reset ¶
func (x *StateChange) Reset()
func (*StateChange) String ¶
func (x *StateChange) String() string
type Transaction ¶
type Transaction struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Nonce int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` Sender []byte `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` CodeAddr []byte `protobuf:"bytes,5,opt,name=codeAddr,proto3" json:"codeAddr,omitempty"` Input []byte `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` Expiry uint64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` // expiry block height // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetCodeAddr ¶
func (x *Transaction) GetCodeAddr() []byte
func (*Transaction) GetExpiry ¶
func (x *Transaction) GetExpiry() uint64
func (*Transaction) GetHash ¶
func (x *Transaction) GetHash() []byte
func (*Transaction) GetInput ¶
func (x *Transaction) GetInput() []byte
func (*Transaction) GetNonce ¶
func (x *Transaction) GetNonce() int64
func (*Transaction) GetSender ¶
func (x *Transaction) GetSender() []byte
func (*Transaction) GetSignature ¶
func (x *Transaction) GetSignature() []byte
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TxCommit ¶
type TxCommit struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` BlockHash []byte `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockHeight uint64 `protobuf:"varint,3,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` Elapsed float64 `protobuf:"fixed64,5,opt,name=elapsed,proto3" json:"elapsed,omitempty"` // contains filtered or unexported fields }
func (*TxCommit) Descriptor
deprecated
func (*TxCommit) GetBlockHash ¶
func (*TxCommit) GetBlockHeight ¶
func (*TxCommit) GetElapsed ¶
func (*TxCommit) ProtoMessage ¶
func (*TxCommit) ProtoMessage()
func (*TxCommit) ProtoReflect ¶
func (x *TxCommit) ProtoReflect() protoreflect.Message
type TxList ¶
type TxList struct { List []*Transaction `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*TxList) Descriptor
deprecated
func (*TxList) GetList ¶
func (x *TxList) GetList() []*Transaction
func (*TxList) ProtoMessage ¶
func (*TxList) ProtoMessage()
func (*TxList) ProtoReflect ¶
func (x *TxList) ProtoReflect() protoreflect.Message
type Vote ¶
type Vote struct { BlockHash []byte `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Vote) Descriptor
deprecated
func (*Vote) GetBlockHash ¶
func (*Vote) GetSignature ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) ProtoReflect ¶
func (x *Vote) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.