inspectors

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InspectedVector

type InspectedVector interface {
	IsInspected() bool
	HasMissingMembers() bool
	HasSenderFault() bool
	Reinspect(ctx context.Context, inspector VectorInspector) InspectedVector

	Inspect(ctx context.Context)
	GetInspectionResults() (*nodeset.ConsensusStatRow, nodeset.NodeVerificationResult)

	GetBitset() member.StateBitset
	GetNode() *population.NodeAppearance
	GetCustomOptions() uint32
}

type VectorInspection

type VectorInspection interface {
	CreateInspector(scanner nodeset.VectorEntryScanner, digestFactory transport.ConsensusDigestFactory,
		nodeID node.ShortNodeID) VectorInspector
}

func NewIgnorantVectorInspection

func NewIgnorantVectorInspection() VectorInspection

func NewVectorInspection

func NewVectorInspection(maxPopulationForInlineHashing int, disableRanksAndGSH bool) VectorInspection

type VectorInspectionFactory

type VectorInspectionFactory interface {
	CreateVectorInspection(inlineLimit int) VectorInspection
}

func NewVectorInspectionFactory

func NewVectorInspectionFactory() VectorInspectionFactory

type VectorInspector

type VectorInspector interface {
	GetBitset() member.StateBitset
	/* Must be called before any CreateVector or InspectVector, and before any parallel access */
	PrepareForInspection(ctx context.Context) bool
	CreateVector(cryptkit.DigestSigner) statevector.Vector
	InspectVector(ctx context.Context, sender *population.NodeAppearance, customOptions uint32, otherData statevector.Vector) InspectedVector
	CreateNextPopulation(nodeset.ConsensusBitsetRow) ([]profiles.PopulationRank, proofs.CloudStateHash, proofs.GlobulaStateHash)
}

func NewBypassInspector

func NewBypassInspector() VectorInspector

Jump to

Keyboard shortcuts

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