Class Vdaf<Measurement, AggregationParameter, PublicShare, InputShare, OutputShare, AggregatorShare, AggregateResult, PreparationState, PreparationShare, PreparationMessage>Abstract
Type Parameters
- Measurement
- AggregationParameter
- PublicShare
- InputShare
- OutputShare
- AggregatorShare
- AggregateResult
- PreparationState
- PreparationShare
- PreparationMessage
Constructors
constructor
- new Vdaf<
Measurement,
AggregationParameter,
PublicShare,
InputShare,
OutputShare,
AggregatorShare,
AggregateResult,
PreparationState,
PreparationShare,
PreparationMessage,
>(): Vdaf<
Measurement,
AggregationParameter,
PublicShare,
InputShare,
OutputShare,
AggregatorShare,
AggregateResult,
PreparationState,
PreparationShare,
PreparationMessage,
> Type Parameters
- Measurement
- AggregationParameter
- PublicShare
- InputShare
- OutputShare
- AggregatorShare
- AggregateResult
- PreparationState
- PreparationShare
- PreparationMessage
Properties
Abstract
id
id: number
Abstract
nonceSize
nonceSize: number
Abstract
randSize
randSize: number
Abstract
rounds
rounds: number
Abstract
shares
shares: number
Abstract
verifyKeySize
verifyKeySize: number
Methods
domainSeparationTag
- domainSeparationTag(usage: number): Buffer
Returns Buffer
Abstract
encodeAggregationParameter
- encodeAggregationParameter(aggregationParameter: AggregationParameter): Buffer
Returns Buffer
Abstract
encodeAggregatorShare
- encodeAggregatorShare(aggregatorShare: AggregatorShare): Buffer
Returns Buffer
Abstract
encodeInputShare
- encodeInputShare(inputShare: InputShare): Buffer
Returns Buffer
Abstract
encodePreparationMessage
- encodePreparationMessage(preparationMessage: PreparationMessage): Buffer
Returns Buffer
Abstract
encodePreparationShare
- encodePreparationShare(preparationShare: PreparationShare): Buffer
Returns Buffer
Abstract
encodePublicShare
- encodePublicShare(publicShare: PublicShare): Buffer
Returns Buffer
encodeTestVectorAggregatorShare
- encodeTestVectorAggregatorShare(aggregatorShare: AggregatorShare): string
Returns string
encodeTestVectorInputShare
- encodeTestVectorInputShare(inputShare: InputShare): string
Returns string
encodeTestVectorOutputShare
- encodeTestVectorOutputShare(_outputShare: OutputShare): string[]
Returns string[]
encodeTestVectorPreparationMessage
- encodeTestVectorPreparationMessage(
preparationMessage: PreparationMessage,
): string Returns string
encodeTestVectorPreparationShare
- encodeTestVectorPreparationShare(preparationShare: PreparationShare): string
Returns string
encodeTestVectorPublicShare
- encodeTestVectorPublicShare(publicShare: PublicShare): string
Returns string
shardEncoded
- shardEncoded(
measurement: Measurement,
nonce: Buffer,
rand: Buffer,
): Promise<{ inputShares: Buffer[]; publicShare: Buffer }> Returns Promise<{ inputShares: Buffer[]; publicShare: Buffer }>
Abstract
unshardPreparationShares