Documentation ¶
Index ¶
- Constants
- type VochainService
- func (vs *VochainService) Close()
- func (vs *VochainService) GetBlock(height int64) (*ctypes.ResultBlock, error)
- func (vs *VochainService) GetBlockHeight() int64
- func (vs *VochainService) GetEntityCount() int64
- func (vs *VochainService) GetEntityProcessCount(eid string) (int64, error)
- func (vs *VochainService) GetEnvelope(processID, nullifier string) (*models.Vote, error)
- func (vs *VochainService) GetEnvelopeCount(processID string) (uint32, error)
- func (vs *VochainService) GetProcListLiveResults(listSize int64) []string
- func (vs *VochainService) GetProcListResults(listSize int64) []string
- func (vs *VochainService) GetProcessCount() int64
- func (vs *VochainService) GetProcessKeys(processID string) (*api.Pkeys, error)
- func (vs *VochainService) GetProcessList(entityID string, listSize int64) ([][]byte, error)
- func (vs *VochainService) GetProcessResults(processID string) (string, string, [][]uint32, error)
- func (vs *VochainService) GetScrutinizerEntities(listSize int64) []string
- func (vs *VochainService) GetStatus() *proto.BlockchainInfo
- func (vs *VochainService) GetTotalEnvelopeCount() (uint32, error)
- func (vs *VochainService) GetTransactions(blockHeight int64) ([]*proto.Transaction, error)
- func (vs *VochainService) GetValidators() ([]*tmtypes.Validator, error)
Constants ¶
const MaxListIterations = int64(64)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VochainService ¶
type VochainService struct {
// contains filtered or unexported fields
}
VochainService contains a scrutinizer node
func InitVochain ¶
func InitVochain(cfg *config.MainCfg) (*VochainService, error)
InitVochain starts up a VochainService
func (*VochainService) GetBlock ¶
func (vs *VochainService) GetBlock(height int64) (*ctypes.ResultBlock, error)
GetBlock retrieves a single block from the vochain storage
func (*VochainService) GetBlockHeight ¶
func (vs *VochainService) GetBlockHeight() int64
GetBlockHeight gets the number of blocks
func (*VochainService) GetEntityCount ¶
func (vs *VochainService) GetEntityCount() int64
GetEntityCount gets number of entities
func (*VochainService) GetEntityProcessCount ¶
func (vs *VochainService) GetEntityProcessCount(eid string) (int64, error)
GetEntityProcessCount gets number of processes for a given entity
func (*VochainService) GetEnvelope ¶
func (vs *VochainService) GetEnvelope(processID, nullifier string) (*models.Vote, error)
GetEnvelope gets contents of given envelope
func (*VochainService) GetEnvelopeCount ¶
func (vs *VochainService) GetEnvelopeCount(processID string) (uint32, error)
GetEnvelopeCount gets number of envelopes in a given process
func (*VochainService) GetProcListLiveResults ¶
func (vs *VochainService) GetProcListLiveResults(listSize int64) []string
GetProcListLiveResults gets list of live processes on the Vochain
func (*VochainService) GetProcListResults ¶
func (vs *VochainService) GetProcListResults(listSize int64) []string
GetProcListResults gets list of finished processes on the Vochain
func (*VochainService) GetProcessCount ¶
func (vs *VochainService) GetProcessCount() int64
GetProcessCount gets number of processes
func (*VochainService) GetProcessKeys ¶
func (vs *VochainService) GetProcessKeys(processID string) (*api.Pkeys, error)
GetProcessKeys gets process keys
func (*VochainService) GetProcessList ¶
func (vs *VochainService) GetProcessList(entityID string, listSize int64) ([][]byte, error)
GetProcessList gets list of processes for a given entity
func (*VochainService) GetProcessResults ¶
GetProcessResults gets the results of a given process
func (*VochainService) GetScrutinizerEntities ¶
func (vs *VochainService) GetScrutinizerEntities(listSize int64) []string
GetScrutinizerEntities gets list of entities indexed by the scrutinizer on the Vochain
func (*VochainService) GetStatus ¶
func (vs *VochainService) GetStatus() *proto.BlockchainInfo
GetStatus gets the basic blockchain status
func (*VochainService) GetTotalEnvelopeCount ¶
func (vs *VochainService) GetTotalEnvelopeCount() (uint32, error)
GetTotalEnvelopeCount gets number of envelopes
func (*VochainService) GetTransactions ¶
func (vs *VochainService) GetTransactions(blockHeight int64) ([]*proto.Transaction, error)
GetTransactions retrieves all transactions from a single block
func (*VochainService) GetValidators ¶
func (vs *VochainService) GetValidators() ([]*tmtypes.Validator, error)
GetValidators the list of validators