Documentation
¶
Overview ¶
Package count is a VDAF for counting Boolean measurements.
Index ¶
- type AggShare
- type Count
- func (c *Count) AggregateInit() AggShare
- func (c *Count) AggregateUpdate(aggShare *AggShare, outShare *OutShare)
- func (c *Count) Params() prio3.Params
- func (c *Count) PrepInit(verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, ...) (*PrepState, *PrepShare, error)
- func (c *Count) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
- func (c *Count) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
- func (c *Count) Shard(measurement bool, nonce *Nonce, rand []byte) (PublicShare, []InputShare, error)
- func (c *Count) Unshard(aggShares []AggShare, numMeas uint) (aggregate *uint64, err error)
- type Fp
- type InputShare
- type Nonce
- type OutShare
- type PrepMessage
- type PrepShare
- type PrepState
- type PublicShare
- type Vec
- type VerifyKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Count ¶
type Count struct {
// contains filtered or unexported fields
}
Count is a verifiable distributed aggregation function in which each measurement is either one or zero and the aggregate result is the sum of the measurements.
func (*Count) AggregateInit ¶
func (*Count) AggregateUpdate ¶
func (*Count) PrepInit ¶
func (c *Count) PrepInit( verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, inputShare InputShare, ) (*PrepState, *PrepShare, error)
func (*Count) PrepNext ¶
func (c *Count) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
func (*Count) PrepSharesToPrep ¶
func (c *Count) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
func (*Count) Shard ¶
func (c *Count) Shard(measurement bool, nonce *Nonce, rand []byte, ) (PublicShare, []InputShare, error)
type InputShare ¶
type InputShare = prio3.InputShare[Vec, Fp]
type PrepMessage ¶
type PrepMessage = prio3.PrepMessage
type PublicShare ¶
type PublicShare = prio3.PublicShare
Click to show internal directories.
Click to hide internal directories.