committee

package
v0.0.0-...-dc04a49 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAuditorEpochID

func GenerateAuditorEpochID() kyber.Point

Types

type Committee

type Committee struct {
	ID TypeID
	// contains filtered or unexported fields
}

func New

func New(id string, auditors []*auditor.Auditor) *Committee

func (*Committee) InitializeEpoch

func (c *Committee) InitializeEpoch(auditors []*auditor.Auditor) error

func (*Committee) SummarizeMerkleBatchProofVerificationResults

func (c *Committee) SummarizeMerkleBatchProofVerificationResults(verificationResults []uint) bool

func (*Committee) VerifyCommitment

func (c *Committee) VerifyCommitment(commitments []kyber.Point) bool

func (*Committee) VerifyMerkleBatchProof

func (c *Committee) VerifyMerkleBatchProof(commitments []mt.DataBlock,
	batchProof *crypto.MerkleBatchProof, merkleRoot []byte) (uint, error)

type TypeID

type TypeID string

Jump to

Keyboard shortcuts

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