Hierarchy (view full)

Constructors

Properties

value: {
    C: Uint8Array;
    d: Uint8Array;
}

Methods

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

    Parameters

    • addition: Uint8Array

      new addition to the accumulator

    • nonMember: Uint8Array

      whose witness is being updated

    • accumulatorValueBeforeAddition: Uint8Array

      accumulator value before the addition was done.

    Returns void

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

    Parameters

    • removal: Uint8Array

      removal from the accumulator

    • nonMember: Uint8Array

      whose witness is being updated

    • accumulatorValueAfterRemoval: Uint8Array

      accumulator value after the removal was done.

    Returns void

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

    Parameters

    • nonMember: Uint8Array

      the non-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 non-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

    • nonMember: Uint8Array

      the non-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 non-membership witnesses after adding and removing batches of elements from the accumulator.

    Parameters

    • witnesses: VBNonMembershipWitness[]

      non-membership witnesses to update

    • nonMembers: Uint8Array[]

      nonMembers corresponding to the witnesses

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

      accumulator value before the updates

    • secretKey: AccumulatorSecretKey

    Returns VBNonMembershipWitness[]