Documentation
¶
Overview ¶
Package histogram is a VDAF for aggregating integer measurements into buckets.
Index ¶
- type AggShare
- type Fp
- type Histogram
- func (h *Histogram) AggregateInit() AggShare
- func (h *Histogram) AggregateUpdate(aggShare *AggShare, outShare *OutShare)
- func (h *Histogram) Params() prio3.Params
- func (h *Histogram) PrepInit(verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, ...) (*PrepState, *PrepShare, error)
- func (h *Histogram) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
- func (h *Histogram) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
- func (h *Histogram) Shard(measurement uint64, nonce *Nonce, rand []byte) (PublicShare, []InputShare, error)
- func (h *Histogram) Unshard(aggShares []AggShare, numMeas uint) (aggregate *[]uint64, err error)
- 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 Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram is a verifiable distributed aggregation function in which each measurement increments by one the histogram bucket, out of a set of fixed buckets, and the aggregate result counts the number of measurements in each bucket.
func (*Histogram) AggregateInit ¶
func (*Histogram) AggregateUpdate ¶
func (*Histogram) PrepInit ¶
func (h *Histogram) PrepInit( verifyKey *VerifyKey, nonce *Nonce, aggID uint8, publicShare PublicShare, inputShare InputShare, ) (*PrepState, *PrepShare, error)
func (*Histogram) PrepNext ¶
func (h *Histogram) PrepNext(state *PrepState, msg *PrepMessage) (*OutShare, error)
func (*Histogram) PrepSharesToPrep ¶
func (h *Histogram) PrepSharesToPrep(prepShares []PrepShare) (*PrepMessage, error)
func (*Histogram) Shard ¶
func (h *Histogram) Shard(measurement uint64, 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.