Hierarchy (View Summary)

  • Prio3<number | bigint, number | bigint>
    • Prio3Sum

Constructors

  • Parameters

    • __namedParameters: { bits: number; shares: number }

    Returns Prio3Sum

Properties

bits: number
flp: Flp<number | bigint, number | bigint>
id: number
nonceSize: 16
proofs: number
randSize: number
rounds: 1
shares: number
verifyKeySize: number

Methods

  • Parameters

    • usage: number

    Returns Buffer

  • Parameters

    • _: null

    Returns Buffer

  • Parameters

    • aggregatorShare: bigint[]

    Returns Buffer

  • Parameters

    • outputShare: bigint[]

    Returns string[]

  • Parameters

    • _aggregationParameter: null
    • previousAggregationParameters: null[]

    Returns boolean

  • Parameters

    • verifyKey: Buffer
    • aggregatorId: number
    • _aggregationParameter: null
    • nonce: Buffer
    • __namedParameters: PublicShare
    • __namedParameters: InputShare

    Returns Promise<
        {
            preparationShare: PreparationShare;
            preparationState: PreparationState;
        },
    >

  • Parameters

    • __namedParameters: {
          aggregationParameter: null;
          measurements: (number | bigint)[];
          nonces?: Buffer[];
          rands?: Buffer[];
          verifyKey?: Buffer;
      }

    Returns Promise<TestVector<null, number | bigint, number | bigint>>

  • Parameters

    • measurement: number | bigint
    • nonce: Buffer
    • rand: Buffer

    Returns Promise<{ inputShares: InputShare[]; publicShare: PublicShare }>

  • Parameters

    • measurement: number | bigint
    • nonce: Buffer
    • rand: Buffer

    Returns Promise<{ inputShares: Buffer[]; publicShare: Buffer }>

  • Parameters

    • aggregationParameter: null
    • measurements: (number | bigint)[]

    Returns Promise<number | bigint>

  • Parameters

    • _aggregationParameter: null
    • aggregatorShares: AggregatorShare[]
    • measurementCount: number

    Returns number | bigint