Documentation ¶
Index ¶
- Variables
- type AdminTx
- func (*AdminTx) Descriptor() ([]byte, []int)deprecated
- func (x *AdminTx) GetAddress() []byte
- func (x *AdminTx) GetCommitmentKey() []byte
- func (x *AdminTx) GetEncryptionPrivateKey() []byte
- func (x *AdminTx) GetEncryptionPublicKey() []byte
- func (x *AdminTx) GetKeyIndex() uint32
- func (x *AdminTx) GetNonce() []byte
- func (x *AdminTx) GetPower() uint64
- func (x *AdminTx) GetProcessId() []byte
- func (x *AdminTx) GetPublicKey() []byte
- func (x *AdminTx) GetRevealKey() []byte
- func (x *AdminTx) GetTxtype() TxType
- func (*AdminTx) ProtoMessage()
- func (x *AdminTx) ProtoReflect() protoreflect.Message
- func (x *AdminTx) Reset()
- func (x *AdminTx) String() string
- type CensusOrigin
- func (CensusOrigin) Descriptor() protoreflect.EnumDescriptor
- func (x CensusOrigin) Enum() *CensusOrigin
- func (CensusOrigin) EnumDescriptor() ([]byte, []int)deprecated
- func (x CensusOrigin) Number() protoreflect.EnumNumber
- func (x CensusOrigin) String() string
- func (CensusOrigin) Type() protoreflect.EnumType
- type EnvelopeType
- func (*EnvelopeType) Descriptor() ([]byte, []int)deprecated
- func (x *EnvelopeType) GetAnonymous() bool
- func (x *EnvelopeType) GetEncryptedVotes() bool
- func (x *EnvelopeType) GetSerial() bool
- func (x *EnvelopeType) GetUniqueValues() bool
- func (*EnvelopeType) ProtoMessage()
- func (x *EnvelopeType) ProtoReflect() protoreflect.Message
- func (x *EnvelopeType) Reset()
- func (x *EnvelopeType) String() string
- type IpfsPin
- type IpfsSync
- func (*IpfsSync) Descriptor() ([]byte, []int)deprecated
- func (x *IpfsSync) GetAddress() string
- func (x *IpfsSync) GetHash() []byte
- func (x *IpfsSync) GetMsgtype() IpfsSyncType
- func (x *IpfsSync) GetMultiaddress() string
- func (x *IpfsSync) GetPinList() []*IpfsPin
- func (x *IpfsSync) GetTimestamp() uint32
- func (*IpfsSync) ProtoMessage()
- func (x *IpfsSync) ProtoReflect() protoreflect.Message
- func (x *IpfsSync) Reset()
- func (x *IpfsSync) String() string
- type IpfsSyncType
- func (IpfsSyncType) Descriptor() protoreflect.EnumDescriptor
- func (x IpfsSyncType) Enum() *IpfsSyncType
- func (IpfsSyncType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IpfsSyncType) Number() protoreflect.EnumNumber
- func (x IpfsSyncType) String() string
- func (IpfsSyncType) Type() protoreflect.EnumType
- type NewProcessTx
- func (*NewProcessTx) Descriptor() ([]byte, []int)deprecated
- func (x *NewProcessTx) GetNonce() []byte
- func (x *NewProcessTx) GetProcess() *Process
- func (x *NewProcessTx) GetTxtype() TxType
- func (*NewProcessTx) ProtoMessage()
- func (x *NewProcessTx) ProtoReflect() protoreflect.Message
- func (x *NewProcessTx) Reset()
- func (x *NewProcessTx) String() string
- type OracleList
- type Process
- func (*Process) Descriptor() ([]byte, []int)deprecated
- func (x *Process) GetBlockCount() uint32
- func (x *Process) GetCensusOrigin() CensusOrigin
- func (x *Process) GetCensusRoot() []byte
- func (x *Process) GetCensusURI() string
- func (x *Process) GetCommitmentKeys() []string
- func (x *Process) GetEncryptionPrivateKeys() []string
- func (x *Process) GetEncryptionPublicKeys() []string
- func (x *Process) GetEntityId() []byte
- func (x *Process) GetEnvelopeType() *EnvelopeType
- func (x *Process) GetEthIndexSlot() uint32
- func (x *Process) GetKeyIndex() uint32
- func (x *Process) GetMode() *ProcessMode
- func (x *Process) GetNamespace() uint32
- func (x *Process) GetParamsSignature() []byte
- func (x *Process) GetProcessId() []byte
- func (x *Process) GetQuestionCount() uint32
- func (x *Process) GetQuestionIndex() uint32
- func (x *Process) GetResults() *ProcessResult
- func (x *Process) GetResultsSignatures() [][]byte
- func (x *Process) GetRevealKeys() []string
- func (x *Process) GetStartBlock() uint32
- func (x *Process) GetStatus() ProcessStatus
- func (x *Process) GetVoteOptions() *ProcessVoteOptions
- func (*Process) ProtoMessage()
- func (x *Process) ProtoReflect() protoreflect.Message
- func (x *Process) Reset()
- func (x *Process) String() string
- type ProcessEndingList
- func (*ProcessEndingList) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessEndingList) GetProcessList() [][]byte
- func (*ProcessEndingList) ProtoMessage()
- func (x *ProcessEndingList) ProtoReflect() protoreflect.Message
- func (x *ProcessEndingList) Reset()
- func (x *ProcessEndingList) String() string
- type ProcessMode
- func (*ProcessMode) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessMode) GetAutoStart() bool
- func (x *ProcessMode) GetDynamicCensus() bool
- func (x *ProcessMode) GetEncryptedMetaData() bool
- func (x *ProcessMode) GetInterruptible() bool
- func (*ProcessMode) ProtoMessage()
- func (x *ProcessMode) ProtoReflect() protoreflect.Message
- func (x *ProcessMode) Reset()
- func (x *ProcessMode) String() string
- type ProcessResult
- func (*ProcessResult) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessResult) GetEntityId() []byte
- func (x *ProcessResult) GetProcessId() []byte
- func (x *ProcessResult) GetVotes() []*QuestionResult
- func (*ProcessResult) ProtoMessage()
- func (x *ProcessResult) ProtoReflect() protoreflect.Message
- func (x *ProcessResult) Reset()
- func (x *ProcessResult) String() string
- type ProcessStatus
- func (ProcessStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProcessStatus) Enum() *ProcessStatus
- func (ProcessStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProcessStatus) Number() protoreflect.EnumNumber
- func (x ProcessStatus) String() string
- func (ProcessStatus) Type() protoreflect.EnumType
- type ProcessVoteOptions
- func (*ProcessVoteOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessVoteOptions) GetCostExponent() uint32
- func (x *ProcessVoteOptions) GetMaxCount() uint32
- func (x *ProcessVoteOptions) GetMaxTotalCost() uint32
- func (x *ProcessVoteOptions) GetMaxValue() uint32
- func (x *ProcessVoteOptions) GetMaxVoteOverwrites() uint32
- func (*ProcessVoteOptions) ProtoMessage()
- func (x *ProcessVoteOptions) ProtoReflect() protoreflect.Message
- func (x *ProcessVoteOptions) Reset()
- func (x *ProcessVoteOptions) String() string
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)deprecated
- func (x *Proof) GetEthereumAccount() *ProofEthereumAccount
- func (x *Proof) GetEthereumStorage() *ProofEthereumStorage
- func (x *Proof) GetGraviton() *ProofGraviton
- func (x *Proof) GetIden3() *ProofIden3
- func (m *Proof) GetPayload() isProof_Payload
- func (*Proof) ProtoMessage()
- func (x *Proof) ProtoReflect() protoreflect.Message
- func (x *Proof) Reset()
- func (x *Proof) String() string
- type ProofEthereumAccount
- func (*ProofEthereumAccount) Descriptor() ([]byte, []int)deprecated
- func (x *ProofEthereumAccount) GetBalance() []byte
- func (x *ProofEthereumAccount) GetCodeHash() []byte
- func (x *ProofEthereumAccount) GetNonce() []byte
- func (x *ProofEthereumAccount) GetSiblings() [][]byte
- func (x *ProofEthereumAccount) GetStorageHash() []byte
- func (*ProofEthereumAccount) ProtoMessage()
- func (x *ProofEthereumAccount) ProtoReflect() protoreflect.Message
- func (x *ProofEthereumAccount) Reset()
- func (x *ProofEthereumAccount) String() string
- type ProofEthereumStorage
- func (*ProofEthereumStorage) Descriptor() ([]byte, []int)deprecated
- func (x *ProofEthereumStorage) GetKey() []byte
- func (x *ProofEthereumStorage) GetSiblings() [][]byte
- func (x *ProofEthereumStorage) GetValue() []byte
- func (*ProofEthereumStorage) ProtoMessage()
- func (x *ProofEthereumStorage) ProtoReflect() protoreflect.Message
- func (x *ProofEthereumStorage) Reset()
- func (x *ProofEthereumStorage) String() string
- type ProofGraviton
- type ProofIden3
- type Proof_EthereumAccount
- type Proof_EthereumStorage
- type Proof_Graviton
- type Proof_Iden3
- type QuestionResult
- type SetProcessTx
- func (*SetProcessTx) Descriptor() ([]byte, []int)deprecated
- func (x *SetProcessTx) GetCensusRoot() []byte
- func (x *SetProcessTx) GetCensusURI() string
- func (x *SetProcessTx) GetNonce() []byte
- func (x *SetProcessTx) GetProcessId() []byte
- func (x *SetProcessTx) GetProof() *Proof
- func (x *SetProcessTx) GetQuestionIndex() uint32
- func (x *SetProcessTx) GetResults() *ProcessResult
- func (x *SetProcessTx) GetStatus() ProcessStatus
- func (x *SetProcessTx) GetTxtype() TxType
- func (*SetProcessTx) ProtoMessage()
- func (x *SetProcessTx) ProtoReflect() protoreflect.Message
- func (x *SetProcessTx) Reset()
- func (x *SetProcessTx) String() string
- type StoredKeys
- type TendermintHeader
- func (*TendermintHeader) Descriptor() ([]byte, []int)deprecated
- func (x *TendermintHeader) GetAppHash() []byte
- func (x *TendermintHeader) GetBlockID() []byte
- func (x *TendermintHeader) GetChainId() string
- func (x *TendermintHeader) GetConsensusHash() []byte
- func (x *TendermintHeader) GetDataHash() []byte
- func (x *TendermintHeader) GetEvidenceHash() []byte
- func (x *TendermintHeader) GetHeight() int64
- func (x *TendermintHeader) GetLastCommitHash() []byte
- func (x *TendermintHeader) GetLastResultsHash() []byte
- func (x *TendermintHeader) GetNextValidatorsHash() []byte
- func (x *TendermintHeader) GetProposerAddress() []byte
- func (x *TendermintHeader) GetTimestamp() int64
- func (x *TendermintHeader) GetValidatorsHash() []byte
- func (*TendermintHeader) ProtoMessage()
- func (x *TendermintHeader) ProtoReflect() protoreflect.Message
- func (x *TendermintHeader) Reset()
- func (x *TendermintHeader) String() string
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)deprecated
- func (x *Tx) GetAdmin() *AdminTx
- func (x *Tx) GetNewProcess() *NewProcessTx
- func (m *Tx) GetPayload() isTx_Payload
- func (x *Tx) GetSetProcess() *SetProcessTx
- func (x *Tx) GetSignature() []byte
- func (x *Tx) GetVote() *VoteEnvelope
- func (*Tx) ProtoMessage()
- func (x *Tx) ProtoReflect() protoreflect.Message
- func (x *Tx) Reset()
- func (x *Tx) String() string
- type TxType
- type Tx_Admin
- type Tx_NewProcess
- type Tx_SetProcess
- type Tx_Vote
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)deprecated
- func (x *Validator) GetAddress() []byte
- func (x *Validator) GetName() string
- func (x *Validator) GetPower() uint64
- func (x *Validator) GetPubKey() []byte
- func (*Validator) ProtoMessage()
- func (x *Validator) ProtoReflect() protoreflect.Message
- func (x *Validator) Reset()
- func (x *Validator) String() string
- type ValidatorList
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)deprecated
- func (x *Vote) GetEncryptionKeyIndexes() []uint32
- func (x *Vote) GetHeight() uint32
- func (x *Vote) GetNullifier() []byte
- func (x *Vote) GetProcessId() []byte
- func (x *Vote) GetVotePackage() []byte
- func (x *Vote) GetWeight() []byte
- func (*Vote) ProtoMessage()
- func (x *Vote) ProtoReflect() protoreflect.Message
- func (x *Vote) Reset()
- func (x *Vote) String() string
- type VoteEnvelope
- func (*VoteEnvelope) Descriptor() ([]byte, []int)deprecated
- func (x *VoteEnvelope) GetEncryptionKeyIndexes() []uint32
- func (x *VoteEnvelope) GetNonce() []byte
- func (x *VoteEnvelope) GetNullifier() []byte
- func (x *VoteEnvelope) GetProcessId() []byte
- func (x *VoteEnvelope) GetProof() *Proof
- func (x *VoteEnvelope) GetVotePackage() []byte
- func (*VoteEnvelope) ProtoMessage()
- func (x *VoteEnvelope) ProtoReflect() protoreflect.Message
- func (x *VoteEnvelope) Reset()
- func (x *VoteEnvelope) String() string
Constants ¶
This section is empty.
Variables ¶
var ( IpfsSyncType_name = map[int32]string{ 0: "UNKNOWN", 1: "HELLO", 2: "UPDATE", 3: "FETCH", 4: "FETCHREPLY", } IpfsSyncType_value = map[string]int32{ "UNKNOWN": 0, "HELLO": 1, "UPDATE": 2, "FETCH": 3, "FETCHREPLY": 4, } )
Enum value maps for IpfsSyncType.
var ( TxType_name = map[int32]string{ 0: "TX_UNKNOWN", 1: "NEW_PROCESS", 2: "SET_PROCESS_STATUS", 3: "SET_PROCESS_CENSUS", 4: "SET_PROCESS_QUESTION_INDEX", 5: "ADD_PROCESS_KEYS", 6: "REVEAL_PROCESS_KEYS", 7: "ADD_ORACLE", 8: "REMOVE_ORACLE", 9: "ADD_VALIDATOR", 10: "REMOVE_VALIDATOR", 11: "VOTE", 12: "SET_PROCESS_RESULTS", } TxType_value = map[string]int32{ "TX_UNKNOWN": 0, "NEW_PROCESS": 1, "SET_PROCESS_STATUS": 2, "SET_PROCESS_CENSUS": 3, "SET_PROCESS_QUESTION_INDEX": 4, "ADD_PROCESS_KEYS": 5, "REVEAL_PROCESS_KEYS": 6, "ADD_ORACLE": 7, "REMOVE_ORACLE": 8, "ADD_VALIDATOR": 9, "REMOVE_VALIDATOR": 10, "VOTE": 11, "SET_PROCESS_RESULTS": 12, } )
Enum value maps for TxType.
var ( ProcessStatus_name = map[int32]string{ 0: "PROCESS_UNKNOWN", 1: "READY", 2: "ENDED", 3: "CANCELED", 4: "PAUSED", 5: "RESULTS", } ProcessStatus_value = map[string]int32{ "PROCESS_UNKNOWN": 0, "READY": 1, "ENDED": 2, "CANCELED": 3, "PAUSED": 4, "RESULTS": 5, } )
Enum value maps for ProcessStatus.
var ( CensusOrigin_name = map[int32]string{ 0: "CENSUS_UNKNOWN", 1: "OFF_CHAIN_TREE", 2: "OFF_CHAIN_TREE_WEIGHTED", 3: "OFF_CHAIN_CA", 11: "ERC20", 12: "ERC721", 13: "ERC1155", 14: "ERC777", 15: "MINI_ME", } CensusOrigin_value = map[string]int32{ "CENSUS_UNKNOWN": 0, "OFF_CHAIN_TREE": 1, "OFF_CHAIN_TREE_WEIGHTED": 2, "OFF_CHAIN_CA": 3, "ERC20": 11, "ERC721": 12, "ERC1155": 13, "ERC777": 14, "MINI_ME": 15, } )
Enum value maps for CensusOrigin.
var File_common_vote_proto protoreflect.FileDescriptor
var File_ipfsSync_ipfssync_proto protoreflect.FileDescriptor
var File_vochain_vochain_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AdminTx ¶
type AdminTx struct { Txtype TxType `protobuf:"varint,1,opt,name=txtype,proto3,enum=dvote.types.v1.TxType" json:"txtype,omitempty"` ProcessId []byte `protobuf:"bytes,2,opt,name=processId,proto3" json:"processId,omitempty"` Address []byte `protobuf:"bytes,3,opt,name=address,proto3,oneof" json:"address,omitempty"` CommitmentKey []byte `protobuf:"bytes,4,opt,name=commitmentKey,proto3,oneof" json:"commitmentKey,omitempty"` EncryptionPrivateKey []byte `protobuf:"bytes,5,opt,name=encryptionPrivateKey,proto3,oneof" json:"encryptionPrivateKey,omitempty"` EncryptionPublicKey []byte `protobuf:"bytes,6,opt,name=encryptionPublicKey,proto3,oneof" json:"encryptionPublicKey,omitempty"` KeyIndex *uint32 `protobuf:"varint,7,opt,name=keyIndex,proto3,oneof" json:"keyIndex,omitempty"` Power *uint64 `protobuf:"varint,8,opt,name=power,proto3,oneof" json:"power,omitempty"` PublicKey []byte `protobuf:"bytes,9,opt,name=publicKey,proto3,oneof" json:"publicKey,omitempty"` RevealKey []byte `protobuf:"bytes,10,opt,name=revealKey,proto3,oneof" json:"revealKey,omitempty"` Nonce []byte `protobuf:"bytes,11,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*AdminTx) Descriptor
deprecated
func (*AdminTx) GetAddress ¶
func (*AdminTx) GetCommitmentKey ¶
func (*AdminTx) GetEncryptionPrivateKey ¶
func (*AdminTx) GetEncryptionPublicKey ¶
func (*AdminTx) GetKeyIndex ¶
func (*AdminTx) GetProcessId ¶
func (*AdminTx) GetPublicKey ¶
func (*AdminTx) GetRevealKey ¶
func (*AdminTx) ProtoMessage ¶
func (*AdminTx) ProtoMessage()
func (*AdminTx) ProtoReflect ¶
func (x *AdminTx) ProtoReflect() protoreflect.Message
type CensusOrigin ¶
type CensusOrigin int32
const ( CensusOrigin_CENSUS_UNKNOWN CensusOrigin = 0 CensusOrigin_OFF_CHAIN_TREE CensusOrigin = 1 CensusOrigin_OFF_CHAIN_TREE_WEIGHTED CensusOrigin = 2 CensusOrigin_OFF_CHAIN_CA CensusOrigin = 3 CensusOrigin_ERC20 CensusOrigin = 11 CensusOrigin_ERC721 CensusOrigin = 12 CensusOrigin_ERC1155 CensusOrigin = 13 CensusOrigin_ERC777 CensusOrigin = 14 CensusOrigin_MINI_ME CensusOrigin = 15 )
func (CensusOrigin) Descriptor ¶
func (CensusOrigin) Descriptor() protoreflect.EnumDescriptor
func (CensusOrigin) Enum ¶
func (x CensusOrigin) Enum() *CensusOrigin
func (CensusOrigin) EnumDescriptor
deprecated
func (CensusOrigin) EnumDescriptor() ([]byte, []int)
Deprecated: Use CensusOrigin.Descriptor instead.
func (CensusOrigin) Number ¶
func (x CensusOrigin) Number() protoreflect.EnumNumber
func (CensusOrigin) String ¶
func (x CensusOrigin) String() string
func (CensusOrigin) Type ¶
func (CensusOrigin) Type() protoreflect.EnumType
type EnvelopeType ¶
type EnvelopeType struct { Serial bool `protobuf:"varint,1,opt,name=serial,proto3" json:"serial,omitempty"` Anonymous bool `protobuf:"varint,2,opt,name=anonymous,proto3" json:"anonymous,omitempty"` EncryptedVotes bool `protobuf:"varint,3,opt,name=encryptedVotes,proto3" json:"encryptedVotes,omitempty"` UniqueValues bool `protobuf:"varint,4,opt,name=uniqueValues,proto3" json:"uniqueValues,omitempty"` // contains filtered or unexported fields }
func (*EnvelopeType) Descriptor
deprecated
func (*EnvelopeType) Descriptor() ([]byte, []int)
Deprecated: Use EnvelopeType.ProtoReflect.Descriptor instead.
func (*EnvelopeType) GetAnonymous ¶
func (x *EnvelopeType) GetAnonymous() bool
func (*EnvelopeType) GetEncryptedVotes ¶
func (x *EnvelopeType) GetEncryptedVotes() bool
func (*EnvelopeType) GetSerial ¶
func (x *EnvelopeType) GetSerial() bool
func (*EnvelopeType) GetUniqueValues ¶
func (x *EnvelopeType) GetUniqueValues() bool
func (*EnvelopeType) ProtoMessage ¶
func (*EnvelopeType) ProtoMessage()
func (*EnvelopeType) ProtoReflect ¶
func (x *EnvelopeType) ProtoReflect() protoreflect.Message
func (*EnvelopeType) Reset ¶
func (x *EnvelopeType) Reset()
func (*EnvelopeType) String ¶
func (x *EnvelopeType) String() string
type IpfsPin ¶ added in v0.1.3
type IpfsPin struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
func (*IpfsPin) Descriptor
deprecated
added in
v0.1.3
func (*IpfsPin) ProtoMessage ¶ added in v0.1.3
func (*IpfsPin) ProtoMessage()
func (*IpfsPin) ProtoReflect ¶ added in v0.1.3
func (x *IpfsPin) ProtoReflect() protoreflect.Message
type IpfsSync ¶ added in v0.1.3
type IpfsSync struct { Msgtype IpfsSyncType `protobuf:"varint,1,opt,name=msgtype,proto3,enum=dvote.types.v1.IpfsSyncType" json:"msgtype,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Multiaddress string `protobuf:"bytes,3,opt,name=multiaddress,proto3" json:"multiaddress,omitempty"` Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` PinList []*IpfsPin `protobuf:"bytes,5,rep,name=pinList,proto3" json:"pinList,omitempty"` Timestamp uint32 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*IpfsSync) Descriptor
deprecated
added in
v0.1.3
func (*IpfsSync) GetAddress ¶ added in v0.1.3
func (*IpfsSync) GetMsgtype ¶ added in v0.1.3
func (x *IpfsSync) GetMsgtype() IpfsSyncType
func (*IpfsSync) GetMultiaddress ¶ added in v0.1.3
func (*IpfsSync) GetPinList ¶ added in v0.1.3
func (*IpfsSync) GetTimestamp ¶ added in v0.1.3
func (*IpfsSync) ProtoMessage ¶ added in v0.1.3
func (*IpfsSync) ProtoMessage()
func (*IpfsSync) ProtoReflect ¶ added in v0.1.3
func (x *IpfsSync) ProtoReflect() protoreflect.Message
type IpfsSyncType ¶ added in v0.1.3
type IpfsSyncType int32
const ( IpfsSyncType_UNKNOWN IpfsSyncType = 0 IpfsSyncType_HELLO IpfsSyncType = 1 IpfsSyncType_UPDATE IpfsSyncType = 2 IpfsSyncType_FETCH IpfsSyncType = 3 IpfsSyncType_FETCHREPLY IpfsSyncType = 4 )
func (IpfsSyncType) Descriptor ¶ added in v0.1.3
func (IpfsSyncType) Descriptor() protoreflect.EnumDescriptor
func (IpfsSyncType) Enum ¶ added in v0.1.3
func (x IpfsSyncType) Enum() *IpfsSyncType
func (IpfsSyncType) EnumDescriptor
deprecated
added in
v0.1.3
func (IpfsSyncType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IpfsSyncType.Descriptor instead.
func (IpfsSyncType) Number ¶ added in v0.1.3
func (x IpfsSyncType) Number() protoreflect.EnumNumber
func (IpfsSyncType) String ¶ added in v0.1.3
func (x IpfsSyncType) String() string
func (IpfsSyncType) Type ¶ added in v0.1.3
func (IpfsSyncType) Type() protoreflect.EnumType
type NewProcessTx ¶
type NewProcessTx struct { Txtype TxType `protobuf:"varint,1,opt,name=txtype,proto3,enum=dvote.types.v1.TxType" json:"txtype,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` Process *Process `protobuf:"bytes,3,opt,name=process,proto3" json:"process,omitempty"` // contains filtered or unexported fields }
func (*NewProcessTx) Descriptor
deprecated
func (*NewProcessTx) Descriptor() ([]byte, []int)
Deprecated: Use NewProcessTx.ProtoReflect.Descriptor instead.
func (*NewProcessTx) GetNonce ¶
func (x *NewProcessTx) GetNonce() []byte
func (*NewProcessTx) GetProcess ¶
func (x *NewProcessTx) GetProcess() *Process
func (*NewProcessTx) GetTxtype ¶
func (x *NewProcessTx) GetTxtype() TxType
func (*NewProcessTx) ProtoMessage ¶
func (*NewProcessTx) ProtoMessage()
func (*NewProcessTx) ProtoReflect ¶
func (x *NewProcessTx) ProtoReflect() protoreflect.Message
func (*NewProcessTx) Reset ¶
func (x *NewProcessTx) Reset()
func (*NewProcessTx) String ¶
func (x *NewProcessTx) String() string
type OracleList ¶
type OracleList struct { Oracles [][]byte `protobuf:"bytes,1,rep,name=oracles,proto3" json:"oracles,omitempty"` // contains filtered or unexported fields }
func (*OracleList) Descriptor
deprecated
func (*OracleList) Descriptor() ([]byte, []int)
Deprecated: Use OracleList.ProtoReflect.Descriptor instead.
func (*OracleList) GetOracles ¶
func (x *OracleList) GetOracles() [][]byte
func (*OracleList) ProtoMessage ¶
func (*OracleList) ProtoMessage()
func (*OracleList) ProtoReflect ¶
func (x *OracleList) ProtoReflect() protoreflect.Message
func (*OracleList) Reset ¶
func (x *OracleList) Reset()
func (*OracleList) String ¶
func (x *OracleList) String() string
type Process ¶
type Process struct { ProcessId []byte `protobuf:"bytes,1,opt,name=processId,proto3" json:"processId,omitempty"` // EntityId identifies unequivocally a process EntityId []byte `protobuf:"bytes,2,opt,name=entityId,proto3" json:"entityId,omitempty"` // StartBlock represents the tendermint block where the process goes from scheduled to active StartBlock uint32 `protobuf:"varint,3,opt,name=startBlock,proto3" json:"startBlock,omitempty"` // BlockCount represents the amount of tendermint blocks that the process will last BlockCount uint32 `protobuf:"varint,4,opt,name=blockCount,proto3" json:"blockCount,omitempty"` // CensusRoot merkle root of all the census in the process CensusRoot []byte `protobuf:"bytes,5,opt,name=censusRoot,proto3" json:"censusRoot,omitempty"` // CensusURI where to find the census CensusURI *string `protobuf:"bytes,6,opt,name=censusURI,proto3,oneof" json:"censusURI,omitempty"` // CommitmentKeys are the reveal keys hashed CommitmentKeys []string `protobuf:"bytes,7,rep,name=commitmentKeys,proto3" json:"commitmentKeys,omitempty"` // EncryptionPrivateKeys are the keys required to decrypt the votes EncryptionPrivateKeys []string `protobuf:"bytes,8,rep,name=encryptionPrivateKeys,proto3" json:"encryptionPrivateKeys,omitempty"` // EncryptionPublicKeys are the keys required to encrypt the votes EncryptionPublicKeys []string `protobuf:"bytes,9,rep,name=encryptionPublicKeys,proto3" json:"encryptionPublicKeys,omitempty"` // RevealKeys are the seed of the CommitmentKeys RevealKeys []string `protobuf:"bytes,10,rep,name=revealKeys,proto3" json:"revealKeys,omitempty"` KeyIndex *uint32 `protobuf:"varint,11,opt,name=keyIndex,proto3,oneof" json:"keyIndex,omitempty"` Status ProcessStatus `protobuf:"varint,12,opt,name=status,proto3,enum=dvote.types.v1.ProcessStatus" json:"status,omitempty"` ParamsSignature []byte `protobuf:"bytes,13,opt,name=paramsSignature,proto3,oneof" json:"paramsSignature,omitempty"` Namespace uint32 `protobuf:"varint,14,opt,name=namespace,proto3" json:"namespace,omitempty"` EnvelopeType *EnvelopeType `protobuf:"bytes,15,opt,name=envelopeType,proto3" json:"envelopeType,omitempty"` Mode *ProcessMode `protobuf:"bytes,16,opt,name=mode,proto3" json:"mode,omitempty"` QuestionIndex *uint32 `protobuf:"varint,17,opt,name=questionIndex,proto3,oneof" json:"questionIndex,omitempty"` QuestionCount *uint32 `protobuf:"varint,18,opt,name=questionCount,proto3,oneof" json:"questionCount,omitempty"` VoteOptions *ProcessVoteOptions `protobuf:"bytes,19,opt,name=voteOptions,proto3" json:"voteOptions,omitempty"` CensusOrigin CensusOrigin `protobuf:"varint,20,opt,name=censusOrigin,proto3,enum=dvote.types.v1.CensusOrigin" json:"censusOrigin,omitempty"` Results *ProcessResult `protobuf:"bytes,21,opt,name=results,proto3" json:"results,omitempty"` ResultsSignatures [][]byte `protobuf:"bytes,22,rep,name=resultsSignatures,proto3" json:"resultsSignatures,omitempty"` EthIndexSlot *uint32 `protobuf:"varint,23,opt,name=ethIndexSlot,proto3,oneof" json:"ethIndexSlot,omitempty"` // contains filtered or unexported fields }
func (*Process) Descriptor
deprecated
func (*Process) GetBlockCount ¶
func (*Process) GetCensusOrigin ¶
func (x *Process) GetCensusOrigin() CensusOrigin
func (*Process) GetCensusRoot ¶ added in v0.1.5
func (*Process) GetCensusURI ¶ added in v0.1.5
func (*Process) GetCommitmentKeys ¶
func (*Process) GetEncryptionPrivateKeys ¶
func (*Process) GetEncryptionPublicKeys ¶
func (*Process) GetEntityId ¶
func (*Process) GetEnvelopeType ¶
func (x *Process) GetEnvelopeType() *EnvelopeType
func (*Process) GetEthIndexSlot ¶ added in v0.1.1
func (*Process) GetKeyIndex ¶
func (*Process) GetMode ¶
func (x *Process) GetMode() *ProcessMode
func (*Process) GetNamespace ¶
func (*Process) GetParamsSignature ¶
func (*Process) GetProcessId ¶
func (*Process) GetQuestionCount ¶
func (*Process) GetQuestionIndex ¶
func (*Process) GetResults ¶
func (x *Process) GetResults() *ProcessResult
func (*Process) GetResultsSignatures ¶
func (*Process) GetRevealKeys ¶
func (*Process) GetStartBlock ¶
func (*Process) GetStatus ¶
func (x *Process) GetStatus() ProcessStatus
func (*Process) GetVoteOptions ¶
func (x *Process) GetVoteOptions() *ProcessVoteOptions
func (*Process) ProtoMessage ¶
func (*Process) ProtoMessage()
func (*Process) ProtoReflect ¶
func (x *Process) ProtoReflect() protoreflect.Message
type ProcessEndingList ¶
type ProcessEndingList struct { ProcessList [][]byte `protobuf:"bytes,1,rep,name=processList,proto3" json:"processList,omitempty"` // contains filtered or unexported fields }
func (*ProcessEndingList) Descriptor
deprecated
func (*ProcessEndingList) Descriptor() ([]byte, []int)
Deprecated: Use ProcessEndingList.ProtoReflect.Descriptor instead.
func (*ProcessEndingList) GetProcessList ¶
func (x *ProcessEndingList) GetProcessList() [][]byte
func (*ProcessEndingList) ProtoMessage ¶
func (*ProcessEndingList) ProtoMessage()
func (*ProcessEndingList) ProtoReflect ¶
func (x *ProcessEndingList) ProtoReflect() protoreflect.Message
func (*ProcessEndingList) Reset ¶
func (x *ProcessEndingList) Reset()
func (*ProcessEndingList) String ¶
func (x *ProcessEndingList) String() string
type ProcessMode ¶
type ProcessMode struct { AutoStart bool `protobuf:"varint,1,opt,name=autoStart,proto3" json:"autoStart,omitempty"` Interruptible bool `protobuf:"varint,2,opt,name=interruptible,proto3" json:"interruptible,omitempty"` DynamicCensus bool `protobuf:"varint,3,opt,name=dynamicCensus,proto3" json:"dynamicCensus,omitempty"` EncryptedMetaData bool `protobuf:"varint,4,opt,name=encryptedMetaData,proto3" json:"encryptedMetaData,omitempty"` // contains filtered or unexported fields }
func (*ProcessMode) Descriptor
deprecated
func (*ProcessMode) Descriptor() ([]byte, []int)
Deprecated: Use ProcessMode.ProtoReflect.Descriptor instead.
func (*ProcessMode) GetAutoStart ¶
func (x *ProcessMode) GetAutoStart() bool
func (*ProcessMode) GetDynamicCensus ¶
func (x *ProcessMode) GetDynamicCensus() bool
func (*ProcessMode) GetEncryptedMetaData ¶
func (x *ProcessMode) GetEncryptedMetaData() bool
func (*ProcessMode) GetInterruptible ¶
func (x *ProcessMode) GetInterruptible() bool
func (*ProcessMode) ProtoMessage ¶
func (*ProcessMode) ProtoMessage()
func (*ProcessMode) ProtoReflect ¶
func (x *ProcessMode) ProtoReflect() protoreflect.Message
func (*ProcessMode) Reset ¶
func (x *ProcessMode) Reset()
func (*ProcessMode) String ¶
func (x *ProcessMode) String() string
type ProcessResult ¶
type ProcessResult struct { Votes []*QuestionResult `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` ProcessId []byte `protobuf:"bytes,2,opt,name=processId,proto3,oneof" json:"processId,omitempty"` EntityId []byte `protobuf:"bytes,3,opt,name=entityId,proto3,oneof" json:"entityId,omitempty"` // contains filtered or unexported fields }
Scrutinizer
func (*ProcessResult) Descriptor
deprecated
func (*ProcessResult) Descriptor() ([]byte, []int)
Deprecated: Use ProcessResult.ProtoReflect.Descriptor instead.
func (*ProcessResult) GetEntityId ¶
func (x *ProcessResult) GetEntityId() []byte
func (*ProcessResult) GetProcessId ¶
func (x *ProcessResult) GetProcessId() []byte
func (*ProcessResult) GetVotes ¶
func (x *ProcessResult) GetVotes() []*QuestionResult
func (*ProcessResult) ProtoMessage ¶
func (*ProcessResult) ProtoMessage()
func (*ProcessResult) ProtoReflect ¶
func (x *ProcessResult) ProtoReflect() protoreflect.Message
func (*ProcessResult) Reset ¶
func (x *ProcessResult) Reset()
func (*ProcessResult) String ¶
func (x *ProcessResult) String() string
type ProcessStatus ¶
type ProcessStatus int32
const ( ProcessStatus_PROCESS_UNKNOWN ProcessStatus = 0 ProcessStatus_READY ProcessStatus = 1 ProcessStatus_ENDED ProcessStatus = 2 ProcessStatus_CANCELED ProcessStatus = 3 ProcessStatus_PAUSED ProcessStatus = 4 ProcessStatus_RESULTS ProcessStatus = 5 )
func (ProcessStatus) Descriptor ¶
func (ProcessStatus) Descriptor() protoreflect.EnumDescriptor
func (ProcessStatus) Enum ¶
func (x ProcessStatus) Enum() *ProcessStatus
func (ProcessStatus) EnumDescriptor
deprecated
func (ProcessStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProcessStatus.Descriptor instead.
func (ProcessStatus) Number ¶
func (x ProcessStatus) Number() protoreflect.EnumNumber
func (ProcessStatus) String ¶
func (x ProcessStatus) String() string
func (ProcessStatus) Type ¶
func (ProcessStatus) Type() protoreflect.EnumType
type ProcessVoteOptions ¶
type ProcessVoteOptions struct { MaxCount uint32 `protobuf:"varint,1,opt,name=maxCount,proto3" json:"maxCount,omitempty"` MaxValue uint32 `protobuf:"varint,2,opt,name=maxValue,proto3" json:"maxValue,omitempty"` MaxVoteOverwrites uint32 `protobuf:"varint,3,opt,name=maxVoteOverwrites,proto3" json:"maxVoteOverwrites,omitempty"` MaxTotalCost uint32 `protobuf:"varint,4,opt,name=maxTotalCost,proto3" json:"maxTotalCost,omitempty"` CostExponent uint32 `protobuf:"varint,5,opt,name=costExponent,proto3" json:"costExponent,omitempty"` // contains filtered or unexported fields }
func (*ProcessVoteOptions) Descriptor
deprecated
func (*ProcessVoteOptions) Descriptor() ([]byte, []int)
Deprecated: Use ProcessVoteOptions.ProtoReflect.Descriptor instead.
func (*ProcessVoteOptions) GetCostExponent ¶
func (x *ProcessVoteOptions) GetCostExponent() uint32
func (*ProcessVoteOptions) GetMaxCount ¶
func (x *ProcessVoteOptions) GetMaxCount() uint32
func (*ProcessVoteOptions) GetMaxTotalCost ¶
func (x *ProcessVoteOptions) GetMaxTotalCost() uint32
func (*ProcessVoteOptions) GetMaxValue ¶
func (x *ProcessVoteOptions) GetMaxValue() uint32
func (*ProcessVoteOptions) GetMaxVoteOverwrites ¶
func (x *ProcessVoteOptions) GetMaxVoteOverwrites() uint32
func (*ProcessVoteOptions) ProtoMessage ¶
func (*ProcessVoteOptions) ProtoMessage()
func (*ProcessVoteOptions) ProtoReflect ¶
func (x *ProcessVoteOptions) ProtoReflect() protoreflect.Message
func (*ProcessVoteOptions) Reset ¶
func (x *ProcessVoteOptions) Reset()
func (*ProcessVoteOptions) String ¶
func (x *ProcessVoteOptions) String() string
type Proof ¶
type Proof struct { // Types that are assignable to Payload: // *Proof_Graviton // *Proof_Iden3 // *Proof_EthereumStorage // *Proof_EthereumAccount Payload isProof_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*Proof) Descriptor
deprecated
func (*Proof) GetEthereumAccount ¶
func (x *Proof) GetEthereumAccount() *ProofEthereumAccount
func (*Proof) GetEthereumStorage ¶
func (x *Proof) GetEthereumStorage() *ProofEthereumStorage
func (*Proof) GetGraviton ¶
func (x *Proof) GetGraviton() *ProofGraviton
func (*Proof) GetIden3 ¶
func (x *Proof) GetIden3() *ProofIden3
func (*Proof) GetPayload ¶
func (m *Proof) GetPayload() isProof_Payload
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) ProtoReflect ¶
func (x *Proof) ProtoReflect() protoreflect.Message
type ProofEthereumAccount ¶
type ProofEthereumAccount struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Balance []byte `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` // Big Int encoded as bytes StorageHash []byte `protobuf:"bytes,3,opt,name=storageHash,proto3" json:"storageHash,omitempty"` CodeHash []byte `protobuf:"bytes,4,opt,name=codeHash,proto3" json:"codeHash,omitempty"` Siblings [][]byte `protobuf:"bytes,5,rep,name=siblings,proto3" json:"siblings,omitempty"` // contains filtered or unexported fields }
func (*ProofEthereumAccount) Descriptor
deprecated
func (*ProofEthereumAccount) Descriptor() ([]byte, []int)
Deprecated: Use ProofEthereumAccount.ProtoReflect.Descriptor instead.
func (*ProofEthereumAccount) GetBalance ¶
func (x *ProofEthereumAccount) GetBalance() []byte
func (*ProofEthereumAccount) GetCodeHash ¶
func (x *ProofEthereumAccount) GetCodeHash() []byte
func (*ProofEthereumAccount) GetNonce ¶
func (x *ProofEthereumAccount) GetNonce() []byte
func (*ProofEthereumAccount) GetSiblings ¶
func (x *ProofEthereumAccount) GetSiblings() [][]byte
func (*ProofEthereumAccount) GetStorageHash ¶
func (x *ProofEthereumAccount) GetStorageHash() []byte
func (*ProofEthereumAccount) ProtoMessage ¶
func (*ProofEthereumAccount) ProtoMessage()
func (*ProofEthereumAccount) ProtoReflect ¶
func (x *ProofEthereumAccount) ProtoReflect() protoreflect.Message
func (*ProofEthereumAccount) Reset ¶
func (x *ProofEthereumAccount) Reset()
func (*ProofEthereumAccount) String ¶
func (x *ProofEthereumAccount) String() string
type ProofEthereumStorage ¶
type ProofEthereumStorage 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"` Siblings [][]byte `protobuf:"bytes,3,rep,name=siblings,proto3" json:"siblings,omitempty"` // contains filtered or unexported fields }
func (*ProofEthereumStorage) Descriptor
deprecated
func (*ProofEthereumStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProofEthereumStorage.ProtoReflect.Descriptor instead.
func (*ProofEthereumStorage) GetKey ¶
func (x *ProofEthereumStorage) GetKey() []byte
func (*ProofEthereumStorage) GetSiblings ¶
func (x *ProofEthereumStorage) GetSiblings() [][]byte
func (*ProofEthereumStorage) GetValue ¶
func (x *ProofEthereumStorage) GetValue() []byte
func (*ProofEthereumStorage) ProtoMessage ¶
func (*ProofEthereumStorage) ProtoMessage()
func (*ProofEthereumStorage) ProtoReflect ¶
func (x *ProofEthereumStorage) ProtoReflect() protoreflect.Message
func (*ProofEthereumStorage) Reset ¶
func (x *ProofEthereumStorage) Reset()
func (*ProofEthereumStorage) String ¶
func (x *ProofEthereumStorage) String() string
type ProofGraviton ¶
type ProofGraviton struct { Siblings []byte `protobuf:"bytes,1,opt,name=siblings,proto3" json:"siblings,omitempty"` // contains filtered or unexported fields }
func (*ProofGraviton) Descriptor
deprecated
func (*ProofGraviton) Descriptor() ([]byte, []int)
Deprecated: Use ProofGraviton.ProtoReflect.Descriptor instead.
func (*ProofGraviton) GetSiblings ¶
func (x *ProofGraviton) GetSiblings() []byte
func (*ProofGraviton) ProtoMessage ¶
func (*ProofGraviton) ProtoMessage()
func (*ProofGraviton) ProtoReflect ¶
func (x *ProofGraviton) ProtoReflect() protoreflect.Message
func (*ProofGraviton) Reset ¶
func (x *ProofGraviton) Reset()
func (*ProofGraviton) String ¶
func (x *ProofGraviton) String() string
type ProofIden3 ¶
type ProofIden3 struct { Siblings []byte `protobuf:"bytes,1,opt,name=siblings,proto3" json:"siblings,omitempty"` // contains filtered or unexported fields }
func (*ProofIden3) Descriptor
deprecated
func (*ProofIden3) Descriptor() ([]byte, []int)
Deprecated: Use ProofIden3.ProtoReflect.Descriptor instead.
func (*ProofIden3) GetSiblings ¶
func (x *ProofIden3) GetSiblings() []byte
func (*ProofIden3) ProtoMessage ¶
func (*ProofIden3) ProtoMessage()
func (*ProofIden3) ProtoReflect ¶
func (x *ProofIden3) ProtoReflect() protoreflect.Message
func (*ProofIden3) Reset ¶
func (x *ProofIden3) Reset()
func (*ProofIden3) String ¶
func (x *ProofIden3) String() string
type Proof_EthereumAccount ¶
type Proof_EthereumAccount struct { // Proof used by oracles to update the census of EVM processes EthereumAccount *ProofEthereumAccount `protobuf:"bytes,4,opt,name=ethereumAccount,proto3,oneof"` }
type Proof_EthereumStorage ¶
type Proof_EthereumStorage struct { // Proof used on EVM census based processes EthereumStorage *ProofEthereumStorage `protobuf:"bytes,3,opt,name=ethereumStorage,proto3,oneof"` }
type Proof_Graviton ¶
type Proof_Graviton struct { // Proof used for signed envelopes Graviton *ProofGraviton `protobuf:"bytes,1,opt,name=graviton,proto3,oneof"` }
type Proof_Iden3 ¶
type Proof_Iden3 struct { // Proof used for anonymous votes Iden3 *ProofIden3 `protobuf:"bytes,2,opt,name=iden3,proto3,oneof"` }
type QuestionResult ¶
type QuestionResult struct { Question []uint32 `protobuf:"varint,1,rep,packed,name=question,proto3" json:"question,omitempty"` // contains filtered or unexported fields }
func (*QuestionResult) Descriptor
deprecated
func (*QuestionResult) Descriptor() ([]byte, []int)
Deprecated: Use QuestionResult.ProtoReflect.Descriptor instead.
func (*QuestionResult) GetQuestion ¶
func (x *QuestionResult) GetQuestion() []uint32
func (*QuestionResult) ProtoMessage ¶
func (*QuestionResult) ProtoMessage()
func (*QuestionResult) ProtoReflect ¶
func (x *QuestionResult) ProtoReflect() protoreflect.Message
func (*QuestionResult) Reset ¶
func (x *QuestionResult) Reset()
func (*QuestionResult) String ¶
func (x *QuestionResult) String() string
type SetProcessTx ¶
type SetProcessTx struct { Txtype TxType `protobuf:"varint,1,opt,name=txtype,proto3,enum=dvote.types.v1.TxType" json:"txtype,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` ProcessId []byte `protobuf:"bytes,3,opt,name=processId,proto3" json:"processId,omitempty"` Status *ProcessStatus `protobuf:"varint,4,opt,name=status,proto3,enum=dvote.types.v1.ProcessStatus,oneof" json:"status,omitempty"` QuestionIndex *uint32 `protobuf:"varint,5,opt,name=questionIndex,proto3,oneof" json:"questionIndex,omitempty"` CensusRoot []byte `protobuf:"bytes,6,opt,name=censusRoot,proto3,oneof" json:"censusRoot,omitempty"` CensusURI *string `protobuf:"bytes,7,opt,name=censusURI,proto3,oneof" json:"censusURI,omitempty"` Proof *Proof `protobuf:"bytes,8,opt,name=proof,proto3,oneof" json:"proof,omitempty"` Results *ProcessResult `protobuf:"bytes,9,opt,name=results,proto3,oneof" json:"results,omitempty"` // contains filtered or unexported fields }
func (*SetProcessTx) Descriptor
deprecated
func (*SetProcessTx) Descriptor() ([]byte, []int)
Deprecated: Use SetProcessTx.ProtoReflect.Descriptor instead.
func (*SetProcessTx) GetCensusRoot ¶ added in v0.1.5
func (x *SetProcessTx) GetCensusRoot() []byte
func (*SetProcessTx) GetCensusURI ¶ added in v0.1.5
func (x *SetProcessTx) GetCensusURI() string
func (*SetProcessTx) GetNonce ¶
func (x *SetProcessTx) GetNonce() []byte
func (*SetProcessTx) GetProcessId ¶ added in v0.1.2
func (x *SetProcessTx) GetProcessId() []byte
func (*SetProcessTx) GetProof ¶
func (x *SetProcessTx) GetProof() *Proof
func (*SetProcessTx) GetQuestionIndex ¶
func (x *SetProcessTx) GetQuestionIndex() uint32
func (*SetProcessTx) GetResults ¶ added in v0.1.4
func (x *SetProcessTx) GetResults() *ProcessResult
func (*SetProcessTx) GetStatus ¶
func (x *SetProcessTx) GetStatus() ProcessStatus
func (*SetProcessTx) GetTxtype ¶
func (x *SetProcessTx) GetTxtype() TxType
func (*SetProcessTx) ProtoMessage ¶
func (*SetProcessTx) ProtoMessage()
func (*SetProcessTx) ProtoReflect ¶
func (x *SetProcessTx) ProtoReflect() protoreflect.Message
func (*SetProcessTx) Reset ¶
func (x *SetProcessTx) Reset()
func (*SetProcessTx) String ¶
func (x *SetProcessTx) String() string
type StoredKeys ¶
type StoredKeys struct { Pids [][]byte `protobuf:"bytes,1,rep,name=pids,proto3" json:"pids,omitempty"` // contains filtered or unexported fields }
KeyKeeper
func (*StoredKeys) Descriptor
deprecated
func (*StoredKeys) Descriptor() ([]byte, []int)
Deprecated: Use StoredKeys.ProtoReflect.Descriptor instead.
func (*StoredKeys) GetPids ¶
func (x *StoredKeys) GetPids() [][]byte
func (*StoredKeys) ProtoMessage ¶
func (*StoredKeys) ProtoMessage()
func (*StoredKeys) ProtoReflect ¶
func (x *StoredKeys) ProtoReflect() protoreflect.Message
func (*StoredKeys) Reset ¶
func (x *StoredKeys) Reset()
func (*StoredKeys) String ¶
func (x *StoredKeys) String() string
type TendermintHeader ¶
type TendermintHeader struct { // basic block info 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"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // prev block info BlockID []byte `protobuf:"bytes,5,opt,name=blockID,proto3" json:"blockID,omitempty"` // hashes of block data LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` // commit from validators from the last block DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // transactions // 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"` // validators for the current block NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` // validators for the next block ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"` // consensus params for current block AppHash []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` // state after txs from the previous block LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` // root hash of all results from the txs from the previous block // consensus info EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"` // evidence included in the block ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` // original proposer of the block // contains filtered or unexported fields }
func (*TendermintHeader) Descriptor
deprecated
func (*TendermintHeader) Descriptor() ([]byte, []int)
Deprecated: Use TendermintHeader.ProtoReflect.Descriptor instead.
func (*TendermintHeader) GetAppHash ¶
func (x *TendermintHeader) GetAppHash() []byte
func (*TendermintHeader) GetBlockID ¶
func (x *TendermintHeader) GetBlockID() []byte
func (*TendermintHeader) GetChainId ¶
func (x *TendermintHeader) GetChainId() string
func (*TendermintHeader) GetConsensusHash ¶
func (x *TendermintHeader) GetConsensusHash() []byte
func (*TendermintHeader) GetDataHash ¶
func (x *TendermintHeader) GetDataHash() []byte
func (*TendermintHeader) GetEvidenceHash ¶
func (x *TendermintHeader) GetEvidenceHash() []byte
func (*TendermintHeader) GetHeight ¶
func (x *TendermintHeader) GetHeight() int64
func (*TendermintHeader) GetLastCommitHash ¶
func (x *TendermintHeader) GetLastCommitHash() []byte
func (*TendermintHeader) GetLastResultsHash ¶
func (x *TendermintHeader) GetLastResultsHash() []byte
func (*TendermintHeader) GetNextValidatorsHash ¶
func (x *TendermintHeader) GetNextValidatorsHash() []byte
func (*TendermintHeader) GetProposerAddress ¶
func (x *TendermintHeader) GetProposerAddress() []byte
func (*TendermintHeader) GetTimestamp ¶
func (x *TendermintHeader) GetTimestamp() int64
func (*TendermintHeader) GetValidatorsHash ¶
func (x *TendermintHeader) GetValidatorsHash() []byte
func (*TendermintHeader) ProtoMessage ¶
func (*TendermintHeader) ProtoMessage()
func (*TendermintHeader) ProtoReflect ¶
func (x *TendermintHeader) ProtoReflect() protoreflect.Message
func (*TendermintHeader) Reset ¶
func (x *TendermintHeader) Reset()
func (*TendermintHeader) String ¶
func (x *TendermintHeader) String() string
type Tx ¶
type Tx struct { // Types that are assignable to Payload: // *Tx_Vote // *Tx_NewProcess // *Tx_Admin // *Tx_SetProcess Payload isTx_Payload `protobuf_oneof:"payload"` Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3,oneof" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Tx) Descriptor
deprecated
func (*Tx) GetNewProcess ¶
func (x *Tx) GetNewProcess() *NewProcessTx
func (*Tx) GetPayload ¶
func (m *Tx) GetPayload() isTx_Payload
func (*Tx) GetSetProcess ¶
func (x *Tx) GetSetProcess() *SetProcessTx
func (*Tx) GetSignature ¶
func (*Tx) GetVote ¶
func (x *Tx) GetVote() *VoteEnvelope
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) ProtoReflect ¶
func (x *Tx) ProtoReflect() protoreflect.Message
type TxType ¶
type TxType int32
const ( TxType_TX_UNKNOWN TxType = 0 TxType_NEW_PROCESS TxType = 1 TxType_SET_PROCESS_STATUS TxType = 2 TxType_SET_PROCESS_CENSUS TxType = 3 TxType_SET_PROCESS_QUESTION_INDEX TxType = 4 TxType_ADD_PROCESS_KEYS TxType = 5 TxType_REVEAL_PROCESS_KEYS TxType = 6 TxType_ADD_ORACLE TxType = 7 TxType_REMOVE_ORACLE TxType = 8 TxType_ADD_VALIDATOR TxType = 9 TxType_REMOVE_VALIDATOR TxType = 10 TxType_VOTE TxType = 11 TxType_SET_PROCESS_RESULTS TxType = 12 )
func (TxType) Descriptor ¶
func (TxType) Descriptor() protoreflect.EnumDescriptor
func (TxType) EnumDescriptor
deprecated
func (TxType) Number ¶
func (x TxType) Number() protoreflect.EnumNumber
func (TxType) Type ¶
func (TxType) Type() protoreflect.EnumType
type Tx_Admin ¶
type Tx_Admin struct {
Admin *AdminTx `protobuf:"bytes,4,opt,name=admin,proto3,oneof"`
}
type Tx_NewProcess ¶
type Tx_NewProcess struct {
NewProcess *NewProcessTx `protobuf:"bytes,3,opt,name=newProcess,proto3,oneof"`
}
type Tx_SetProcess ¶
type Tx_SetProcess struct {
SetProcess *SetProcessTx `protobuf:"bytes,5,opt,name=setProcess,proto3,oneof"`
}
type Tx_Vote ¶
type Tx_Vote struct {
Vote *VoteEnvelope `protobuf:"bytes,2,opt,name=vote,proto3,oneof"`
}
type Validator ¶
type Validator struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PubKey []byte `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"` Power uint64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Validator) Descriptor
deprecated
func (*Validator) GetAddress ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message
type ValidatorList ¶
type ValidatorList struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` // contains filtered or unexported fields }
func (*ValidatorList) Descriptor
deprecated
func (*ValidatorList) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorList.ProtoReflect.Descriptor instead.
func (*ValidatorList) GetValidators ¶
func (x *ValidatorList) GetValidators() []*Validator
func (*ValidatorList) ProtoMessage ¶
func (*ValidatorList) ProtoMessage()
func (*ValidatorList) ProtoReflect ¶
func (x *ValidatorList) ProtoReflect() protoreflect.Message
func (*ValidatorList) Reset ¶
func (x *ValidatorList) Reset()
func (*ValidatorList) String ¶
func (x *ValidatorList) String() string
type Vote ¶
type Vote struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Nullifier []byte `protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"` ProcessId []byte `protobuf:"bytes,3,opt,name=processId,proto3" json:"processId,omitempty"` VotePackage []byte `protobuf:"bytes,4,opt,name=votePackage,proto3" json:"votePackage,omitempty"` EncryptionKeyIndexes []uint32 `protobuf:"varint,5,rep,packed,name=encryptionKeyIndexes,proto3" json:"encryptionKeyIndexes,omitempty"` Weight []byte `protobuf:"bytes,6,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*Vote) Descriptor
deprecated
func (*Vote) GetEncryptionKeyIndexes ¶
func (*Vote) GetNullifier ¶
func (*Vote) GetProcessId ¶
func (*Vote) GetVotePackage ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) ProtoReflect ¶
func (x *Vote) ProtoReflect() protoreflect.Message
type VoteEnvelope ¶
type VoteEnvelope struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // Unique number per vote attempt, so that replay attacks can't reuse this payload ProcessId []byte `protobuf:"bytes,2,opt,name=processId,proto3" json:"processId,omitempty"` // The process for which the vote is casted Proof *Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` // Merkle proof, ZK Proof or Ethereum storage proof VotePackage []byte `protobuf:"bytes,4,opt,name=votePackage,proto3" json:"votePackage,omitempty"` // base64 encoded bytes[] of the VotePackage // optional bytes nullifier = 5; Nullifier []byte `protobuf:"bytes,5,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // Hash of the private key + processId EncryptionKeyIndexes []uint32 `protobuf:"varint,6,rep,packed,name=encryptionKeyIndexes,proto3" json:"encryptionKeyIndexes,omitempty"` // On encrypted votes, contains the (sorted) indexes of the keys used to encrypt // contains filtered or unexported fields }
func (*VoteEnvelope) Descriptor
deprecated
func (*VoteEnvelope) Descriptor() ([]byte, []int)
Deprecated: Use VoteEnvelope.ProtoReflect.Descriptor instead.
func (*VoteEnvelope) GetEncryptionKeyIndexes ¶
func (x *VoteEnvelope) GetEncryptionKeyIndexes() []uint32
func (*VoteEnvelope) GetNonce ¶
func (x *VoteEnvelope) GetNonce() []byte
func (*VoteEnvelope) GetNullifier ¶
func (x *VoteEnvelope) GetNullifier() []byte
func (*VoteEnvelope) GetProcessId ¶
func (x *VoteEnvelope) GetProcessId() []byte
func (*VoteEnvelope) GetProof ¶
func (x *VoteEnvelope) GetProof() *Proof
func (*VoteEnvelope) GetVotePackage ¶
func (x *VoteEnvelope) GetVotePackage() []byte
func (*VoteEnvelope) ProtoMessage ¶
func (*VoteEnvelope) ProtoMessage()
func (*VoteEnvelope) ProtoReflect ¶
func (x *VoteEnvelope) ProtoReflect() protoreflect.Message
func (*VoteEnvelope) Reset ¶
func (x *VoteEnvelope) Reset()
func (*VoteEnvelope) String ¶
func (x *VoteEnvelope) String() string