Documentation
¶
Overview ¶
Package sum is a VDAF for aggregating integers in a pre-determined range.
Index ¶
- type AggShare
- type Fp
- type InputShare
- type Nonce
- type OutShare
- type PrepMessage
- type PrepShare
- type PrepState
- type PublicShare
- type Sum
- func (s *Sum) AggregateInit() AggShare
- func (s *Sum) AggregateUpdate(aggShare *AggShare, outShare *OutShare)
- func (s *Sum) Params() prio3.Params
- func (s *Sum) PrepInit(verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, ...) (*PrepState, *PrepShare, error)
- func (s *Sum) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
- func (s *Sum) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
- func (s *Sum) Shard(measurement uint64, nonce *Nonce, rand []byte) (PublicShare, []InputShare, error)
- func (s *Sum) Unshard(aggShares []AggShare, numMeas uint) (aggregate *uint64, err error)
- type Vec
- type VerifyKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputShare ¶
type InputShare = prio3.InputShare[Vec, Fp]
type PrepMessage ¶
type PrepMessage = prio3.PrepMessage
type PublicShare ¶
type PublicShare = prio3.PublicShare
type Sum ¶
type Sum struct {
// contains filtered or unexported fields
}
Sum is a verifiable distributed aggregation function in which each measurement is an integer in the range [0, maxMeasurement], where maxMeasurement defines the largest valid measurement, the aggregated result is the sum of all the measurements.
func (*Sum) AggregateInit ¶
func (*Sum) AggregateUpdate ¶
func (*Sum) PrepInit ¶
func (s *Sum) PrepInit( verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, inputShare InputShare, ) (*PrepState, *PrepShare, error)
func (*Sum) PrepNext ¶
func (s *Sum) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
func (*Sum) PrepSharesToPrep ¶
func (s *Sum) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
func (*Sum) Shard ¶
func (s *Sum) Shard(measurement uint64, nonce *Nonce, rand []byte, ) (PublicShare, []InputShare, error)
Click to show internal directories.
Click to hide internal directories.