committee

package
v0.0.0-...-9c9b609 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) ForwardEpochAuditorParameters

func (c *Committee) ForwardEpochAuditorParameters(auditor *auditor.Auditor) error

func (*Committee) ForwardEpochOrgParameters

func (c *Committee) ForwardEpochOrgParameters(org *organization.Organization) error

func (*Committee) InitializeEpoch

func (c *Committee) InitializeEpoch(
	auditors []*auditor.Auditor, organizations []*organization.Organization,
) (map[string]crypto.TypePublicKey, error)

InitializeEpoch initialize the parameters for an auditing epoch

func (*Committee) PublishPublicKeys

func (c *Committee) PublishPublicKeys() map[string]kyber.Point

func (*Committee) VerifyAuditPairResult

func (c *Committee) VerifyAuditPairResult(
	orgID1 organization.TypeID,
	orgID2 organization.TypeID,
	audID1 auditor.TypeID,
	audID2 auditor.TypeID,
	audChainTX1 *transaction.AudOnChain,
	audChainTX2 *transaction.AudOnChain,
) (bool, error)

func (*Committee) VerifyOrgAndAudResult

func (c *Committee) VerifyOrgAndAudResult(
	orgID organization.TypeID,
	audID auditor.TypeID,
	orgChainTX *transaction.OrgOnChain,
	audChainTX *transaction.AudOnChain,
) (bool, error)

type TypeID

type TypeID string

Jump to

Keyboard shortcuts

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