Documentation ¶
Index ¶
- func CommitteeSize(totalNodeCount int64, failedTotalNodesPercentage int64, failureChance big.Rat) int
- func IsNodeInConfig(id uint32, expectedPubKey []byte, nodes committee.Nodes) (int, error)
- func SelectCommittee(config committee.Config, seed []byte) []uint32
- func VerifyConfig(config committee.Config) error
- type Body
- type Commitment
- type CommitteeSelection
- func (cs *CommitteeSelection) GenerateKeyPair(rand io.Reader) ([]byte, []byte, error)
- func (cs *CommitteeSelection) Initialize(ID uint32, privateKey []byte, nodes committee.Nodes) error
- func (cs *CommitteeSelection) Process(state committee.State, input committee.Input) (committee.Feedback, committee.State, error)
- func (cs *CommitteeSelection) VerifyCommitment(commitment committee.Commitment, key committee.PublicKey) error
- func (cs *CommitteeSelection) VerifyReconShare(share committee.ReconShare, key committee.PublicKey) error
- type EncShare
- type Header
- type Proof
- type SerializedCommitment
- type SerializedProof
- type SerializedProofs
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitteeSize ¶
func IsNodeInConfig ¶
IsNodeInConfig returns whether the given node is in the config.
func VerifyConfig ¶
Types ¶
type Body ¶
type Body struct { Commitments []committee.Commitment }
type Commitment ¶
type Commitment struct { From int32 Commitments []kyber.Point // f+1 commitments }
func (Commitment) ToRawForm ¶
func (cmt Commitment) ToRawForm(from uint32) (committee.Commitment, error)
type CommitteeSelection ¶
type CommitteeSelection struct {
// contains filtered or unexported fields
}
func (*CommitteeSelection) GenerateKeyPair ¶
func (*CommitteeSelection) Initialize ¶
func (*CommitteeSelection) VerifyCommitment ¶
func (cs *CommitteeSelection) VerifyCommitment(commitment committee.Commitment, key committee.PublicKey) error
func (*CommitteeSelection) VerifyReconShare ¶
func (cs *CommitteeSelection) VerifyReconShare(share committee.ReconShare, key committee.PublicKey) error
type SerializedCommitment ¶
type SerializedCommitment struct { Commitments [][]byte }
func (*SerializedCommitment) FromBytes ¶
func (scm *SerializedCommitment) FromBytes(bytes []byte) error
func (SerializedCommitment) ToBytes ¶
func (scm SerializedCommitment) ToBytes() ([]byte, error)
type SerializedProof ¶
func (*SerializedProof) Initialize ¶
func (sp *SerializedProof) Initialize(bytes []byte) error
func (SerializedProof) ToBytes ¶
func (sp SerializedProof) ToBytes() ([]byte, error)
type SerializedProofs ¶
type SerializedProofs struct {
Proofs []SerializedProof
}
func (*SerializedProofs) Initialize ¶
func (sps *SerializedProofs) Initialize(bytes []byte) error
func (SerializedProofs) ToBytes ¶
func (sps SerializedProofs) ToBytes() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.