Hierarchy (view full)

Constructors

Properties

value: Uint8Array

Methods

  • Update a membership witness after an element is added to the accumulator

    Parameters

    • addition: Uint8Array

      new addition to the accumulator

    • member: Uint8Array

      whose witness is being updated

    • accumulatorValueBeforeAddition: Uint8Array

      accumulator value before the addition was done.

    Returns void

  • Update a membership witness after an element is removed from the accumulator.

    Parameters

    • removal: Uint8Array

      removal from the accumulator

    • member: Uint8Array

      whose witness is being updated

    • accumulatorValueAfterRemoval: Uint8Array

      accumulator value after the removal was done.

    Returns void

  • Compute an update to the membership witness after adding and removing batches of elements from the accumulator.

    Parameters

    • member: Uint8Array

      the member whose witness is to be updated

    • additions: Uint8Array[]

      array of additions

    • removals: Uint8Array[]

      array of removals

    • publicInfo: VBWitnessUpdateInfo

      witness update info published by the accumulator manager

    Returns void

  • Compute an update to the membership witness after adding and removing several batches of elements from the accumulator. For each batch of updates, additions, removals and witness update info are provided.

    Parameters

    • member: Uint8Array

      the member whose witness is to be updated

    • additions: Uint8Array[][]

      array of arrays of additions

    • removals: Uint8Array[][]

      array of arrays of removals

    • publicInfo: VBWitnessUpdateInfo[]

      array of witness update info

    Returns void

  • Compute an update to several membership witnesses after adding and removing batches of elements from the accumulator.

    Parameters

    • witnesses: VBMembershipWitness[]

      membership witnesses to update

    • members: Uint8Array[]

      members corresponding to the witnesses

    • additions: Uint8Array[]
    • removals: Uint8Array[]
    • accumulatorValueBeforeUpdates: Uint8Array

      accumulator value before the updates

    • secretKey: AccumulatorSecretKey

    Returns VBMembershipWitness[]