Documentation
¶
Overview ¶
Package sumvec is a VDAF for aggregating vectors of integers in a pre-determined range.
Index ¶
- Variables
- type AggShare
- type Fp
- type InputShare
- type Nonce
- type OutShare
- type PrepMessage
- type PrepShare
- type PrepState
- type PublicShare
- type SumVec
- func (s *SumVec) AggregateInit() AggShare
- func (s *SumVec) AggregateUpdate(aggShare *AggShare, outShare *OutShare)
- func (s *SumVec) Params() prio3.Params
- func (s *SumVec) PrepInit(verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, ...) (*PrepState, *PrepShare, error)
- func (s *SumVec) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
- func (s *SumVec) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
- func (s *SumVec) Shard(measurement []uint64, nonce *Nonce, rand []byte) (PublicShare, []InputShare, error)
- func (s *SumVec) Unshard(aggShares []AggShare, numMeas uint) (aggregate *[]uint64, err error)
- type Vec
- type VerifyKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBits = errors.New("bits larger than 64 is not supported")
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 SumVec ¶
type SumVec struct {
// contains filtered or unexported fields
}
SumVec is a verifiable distributed aggregation function in which each measurement is a fixed-length vector of integers in the range [0, 2^bits). the aggregated result is the sum of all the vectors.
func (*SumVec) AggregateInit ¶
func (*SumVec) AggregateUpdate ¶
func (*SumVec) PrepInit ¶
func (s *SumVec) PrepInit( verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, inputShare InputShare, ) (*PrepState, *PrepShare, error)
func (*SumVec) PrepNext ¶
func (s *SumVec) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
func (*SumVec) PrepSharesToPrep ¶
func (s *SumVec) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
func (*SumVec) Shard ¶
func (s *SumVec) Shard(measurement []uint64, nonce *Nonce, rand []byte, ) (PublicShare, []InputShare, error)
Click to show internal directories.
Click to hide internal directories.