vochain

package
v0.0.0-...-80b22ab Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
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) Close

func (vs *VochainService) Close()

Close closes the 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

func (vs *VochainService) GetProcessResults(processID string) (string, string, [][]uint32, error)

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

Jump to

Keyboard shortcuts

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