{"version":3,"file":"accumulator.cjs","sources":["../../../../src/modules/multi-api/accumulator.js"],"sourcesContent":["import { AbstractAccumulatorModule } from '../abstract';\nimport { AccumulatorId, NamespaceDid } from '../../types';\nimport { injectModuleRouter } from './common';\n\nexport default class MultiApiAccumulatorModule extends injectModuleRouter(\n  AbstractAccumulatorModule,\n) {\n  /**\n   * Adds a public key associated with a target DID for cryptographic operations.\n   * This method allows you to store or update a public key within an accumulator module,\n   * which can be used in various cryptographic accumulations and verifications.\n   *\n   * @param {*} id - Unique identifier for the public key entry\n   * @param {*} publicKey - The public key value being added/updated\n   * @param {*} targetDid - DID that will control this public key\n   * @param {DidKeypair} didKeypair - Keypair used to sign the transaction\n   * @param {object} [params] - Optional parameters for additional configuration\n   * @returns {Promise<*>} Promise resolving to the transaction result\n   */\n  async addPublicKey(id, publicKey, targetDid, didKeypair, params) {\n    const did = NamespaceDid.from(targetDid);\n\n    return await this.moduleById(did).addPublicKey(\n      id,\n      publicKey,\n      did,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Creates and stores a new accumulator on the blockchain\n   *\n   * An accumulator is a cryptographic data structure used to maintain an aggregate value that can be updated incrementally.\n   * This method creates a new accumulator instance with the given ID and initial state.\n   *\n   * @param {string} id - Unique identifier for the accumulator\n   * @param {Accumulator} accumulator - Initial accumulator value to store\n   * @param {DidKeypair} didKeypair - Keypair used to sign the transaction\n   * @returns {Promise<*>} Promise resolving to the transaction result\n   */\n  async addAccumulator(id, accumulator, didKeypair, params) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).addAccumulator(\n      id,\n      accumulator,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Add a positive (add-only) accumulator\n   * @param id - Unique accumulator id\n   * @param accumulated - Current accumulated value.\n   * @param publicKeyRef - Reference to accumulator public key. If the reference contains the key id 0, it means the accumulator does not\n   * have any public key on the chain. This is useful for KVAC.\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async addPositiveAccumulator(\n    id,\n    accumulated,\n    publicKeyRef,\n    didKeypair,\n    params,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).addPositiveAccumulator(\n      accId,\n      accumulated,\n      publicKeyRef,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Add universal (supports add/remove) accumulator\n   * @param id - Unique accumulator id\n   * @param accumulated - Current accumulated value.\n   * @param publicKeyRef - Reference to accumulator public key. If the reference contains the key id 0, it means the accumulator does not\n   * have any public key on the chain. This is useful for KVAC.\n   * @param maxSize - Maximum size of the accumulator\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async addUniversalAccumulator(\n    id,\n    accumulated,\n    publicKeyRef,\n    maxSize,\n    didKeypair,\n    params,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).addUniversalAccumulator(\n      accId,\n      accumulated,\n      publicKeyRef,\n      maxSize,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Add KB universal (supports add/remove) accumulator\n   * @param id - Unique accumulator id\n   * @param accumulated - Current accumulated value.\n   * @param publicKeyRef - Reference to accumulator public key. If the reference contains the key id 0, it means the accumulator does not\n   * have any public key on the chain. This is useful for KVAC.\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async addKBUniversalAccumulator(\n    id,\n    accumulated,\n    publicKeyRef,\n    didKeypair,\n    params,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).addKBUniversalAccumulator(\n      accId,\n      accumulated,\n      publicKeyRef,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Update existing a positive (add-only) accumulator\n   * @param id - Unique accumulator id\n   * @param accumulated - Current accumulated value.\n   * @param {{ additions: Array<Uint8Array>, removals: Array<Uint8Array>, witnessUpdateInfo: Uint8Array }} updates\n   * @param publicKeyRef - Reference to accumulator public key. If the reference contains the key id 0, it means the accumulator does not\n   * have any public key on the chain. This is useful for KVAC.\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async updatePositiveAccumulator(\n    id,\n    accumulated,\n    { additions, removals, witnessUpdateInfo },\n    publicKeyRef,\n    didKeypair,\n    params,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).updatePositiveAccumulator(\n      accId,\n      accumulated,\n      { additions, removals, witnessUpdateInfo },\n      publicKeyRef,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Update existing universal (supports add/remove) accumulator\n   * @param id - Unique accumulator id\n   * @param accumulated - Current accumulated value.\n   * @param publicKeyRef - Reference to accumulator public key. If the reference contains the key id 0, it means the accumulator does not\n   * have any public key on the chain. This is useful for KVAC.\n   * @param maxSize - Maximum size of the accumulator\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async updateUniversalAccumulator(\n    id,\n    accumulated,\n    { additions, removals, witnessUpdateInfo },\n    publicKeyRef,\n    maxSize,\n    didKeypair,\n    params,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).updateUniversalAccumulator(\n      accId,\n      accumulated,\n      { additions, removals, witnessUpdateInfo },\n      publicKeyRef,\n      maxSize,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Update existing KB universal (supports add/remove) accumulator\n   * @param id - Unique accumulator id\n   * @param accumulated - Current accumulated value.\n   * @param publicKeyRef - Reference to accumulator public key. If the reference contains the key id 0, it means the accumulator does not\n   * have any public key on the chain. This is useful for KVAC.\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async updateKBUniversalAccumulator(\n    id,\n    accumulated,\n    { additions, removals, witnessUpdateInfo },\n    publicKeyRef,\n    didKeypair,\n    params,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).updateKBUniversalAccumulator(\n      accId,\n      accumulated,\n      { additions, removals, witnessUpdateInfo },\n      publicKeyRef,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Remove the accumulator from chain. This frees up the id for reuse.\n   * @param id - id to remove\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async removeAccumulator(id, didKeypair, params) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).removeAccumulator(\n      id,\n      didKeypair,\n      params,\n    );\n  }\n\n  /**\n   * Get the accumulator as an object. The field `type` in object specifies whether it is \"positive\" or \"universal\".\n   * Fields `created` and `lastModified` are block nos where the accumulator was created and last updated respectively.\n   * Field `nonce` is the last accepted nonce by the chain, the next write to the accumulator should increment the nonce by 1.\n   * Field `accumulated` contains the current accumulated value.\n   * @param id\n   * @param includeKey - Fetch public key for the given accumulator.\n   * @param includeKeyParams - Fetch public key params.\n   * @returns {Promise<Accumulator|null>}\n   */\n  async getAccumulator(id, includeKey = false, includeKeyParams = false) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).getAccumulator(\n      accId,\n      includeKey,\n      includeKeyParams,\n    );\n  }\n\n  /**\n   * Update given witness by downloading necessary accumulators (blocks) and applying the updates if found.\n   * **Both `from` and `to` are inclusive.**\n   *\n   * @param accumulatorId\n   * @param member\n   * @param witness - this will be updated to the latest witness\n   * @param from - identifier to start from (block number or collection item id)\n   * @param to - identifier to end in (block number or collection item id)\n   * @returns {Promise<void>}\n   */\n  async updateWitness(accumulatorId, member, witness, from, to) {\n    const accId = AccumulatorId.from(accumulatorId);\n\n    return await this.moduleById(accId).updateWitness(\n      accId,\n      member,\n      witness,\n      from,\n      to,\n    );\n  }\n\n  async getPublicKey(did, id, includeParams) {\n    const parsedDid = NamespaceDid.from(did);\n\n    return await this.moduleById(parsedDid).getPublicKey(\n      parsedDid,\n      id,\n      includeParams,\n    );\n  }\n\n  /**\n   * Retrieves all accumulator public keys by a DID.\n   * @param {*} did\n   * @returns {Promise<Map<*, AccumulatorPublicKey>>}\n   */\n  async getAllPublicKeysByDid(did, includeParams) {\n    const id = NamespaceDid.from(did);\n\n    return await this.moduleById(id).getAllPublicKeysByDid(did, includeParams);\n  }\n\n  async addPublicKeyTx(...args) {\n    const did = NamespaceDid.from(args[2]);\n\n    return await this.moduleById(did).addPublicKeyTx(...args);\n  }\n\n  /**\n   * Remove public key\n   * @param removeKeyId - The key index for key to remove.\n   * @param targetDid - The DID from which key is being removed\n   * @param signerDid - The DID that is removing the key by signing the payload because it controls `targetDid`\n   * @param signingKeyRef - Signer's signing key reference\n   * @returns {Promise<*>}\n   */\n  async removePublicKeyTx(...args) {\n    const did = NamespaceDid.from(args[1]);\n\n    return await this.moduleById(did).removePublicKeyTx(...args);\n  }\n\n  /**\n   * Retrieves accumulator params by a DID and unique idetnfier.\n   * @param {*} did\n   * @param {*} id\n   * @returns {Promise<AccumulatorParams>}\n   */\n  async getParams(did, id) {\n    const parsedDid = NamespaceDid.from(did);\n\n    return await this.moduleById(parsedDid).getParams(parsedDid, id);\n  }\n\n  /**\n   * Retrieves all accumulator params by a DID.\n   * @param {*} did\n   * @returns {Promise<Map<*, AccumulatorParams>>}\n   */\n  async getAllParamsByDid(did) {\n    const id = NamespaceDid.from(did);\n\n    return await this.moduleById(id).getAllParamsByDid(did);\n  }\n\n  /**\n   * Add new accumulator params.\n   * @param id - Unique identifier of the new params to be added.\n   * @param param - The signature params to add.\n   * @param targetDid\n   * @param keyPair - Signer's keypair\n\n   * @returns {Promise<*>}\n   */\n  async addParams(...args) {\n    const did = NamespaceDid.from(args[2]);\n\n    return await this.moduleById(did).addParams(...args);\n  }\n\n  async addParamsTx(...args) {\n    const did = NamespaceDid.from(args[2]);\n\n    return await this.moduleById(did).addParamsTx(...args);\n  }\n\n  /**\n   * Creates and stores a new accumulator on the blockchain\n   *\n   * An accumulator is a cryptographic data structure used to maintain an aggregate value that can be updated incrementally.\n   * This method creates a new accumulator instance with the given ID and initial state.\n   *\n   * @param {string} id - Unique identifier for the accumulator\n   * @param {Accumulator} accumulator - Initial accumulator value to store\n   * @param {DidKeypair} didKeypair - Keypair used to sign the transaction\n   * @returns {Promise<*>} Promise resolving to the transaction result\n   */\n  async addAccumulatorTx(id, accumulator, didKeypair) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).addAccumulatorTx(\n      accId,\n      accumulator,\n      didKeypair,\n    );\n  }\n\n  /**\n   * Updates an existing accumulator on the blockchain\n   *\n   * This method replaces the current state of an accumulator with a new value.\n   * The accumulator must already exist (be previously created) to be updated.\n   *\n   * @param {string} id - Unique identifier of the accumulator to update\n   * @param {AccumulatorValue} accumulator - New accumulator value to set\n   * @param {{ additions: Array<Uint8Array>, removals: Array<Uint8Array>, witnessUpdateInfo: Uint8Array }} updates\n   * @param {DidKeypair} didKeypair - Keypair used to sign the transaction\n   * @returns {Promise<*>} Promise resolving to the transaction result\n   */\n  async updateAccumulatorTx(\n    id,\n    accumulator,\n    { additions, removals, witnessUpdateInfo },\n    didKeypair,\n  ) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).updateAccumulatorTx(\n      accId,\n      accumulator,\n      { additions, removals, witnessUpdateInfo },\n      didKeypair,\n    );\n  }\n\n  /**\n   * Remove the accumulator from chain. This frees up the id for reuse.\n   * @param id - id to remove\n   * @param signerDid - Signer of the transaction payload\n   * @param signingKeyRef - Signer's keypair reference\n   * @returns {Promise<*>}\n   */\n  async removeAccumulatorTx(id, didKeypair) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).removeAccumulatorTx(accId, didKeypair);\n  }\n\n  async lastPublicKeyId(targetDid) {\n    const did = NamespaceDid.from(targetDid);\n\n    return await this.moduleById(did).lastPublicKeyId(did);\n  }\n\n  async nextPublicKeyId(targetDid) {\n    const did = NamespaceDid.from(targetDid);\n\n    return await this.moduleById(did).nextPublicKeyId(did);\n  }\n\n  async lastParamsId(targetDid) {\n    const did = NamespaceDid.from(targetDid);\n\n    return await this.moduleById(did).lastParamsId(did);\n  }\n\n  async nextParamsId(targetDid) {\n    const did = NamespaceDid.from(targetDid);\n\n    return await this.moduleById(did).nextParamsId(did);\n  }\n\n  async accumulatorHistory(id) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).accumulatorHistory(accId);\n  }\n\n  async accumulatorVersions(id) {\n    const accId = AccumulatorId.from(id);\n\n    return await this.moduleById(accId).accumulatorVersions(accId);\n  }\n}\n"],"names":["injectModuleRouter","AbstractAccumulatorModule","NamespaceDid","AccumulatorId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIe,MAAM,yBAAyB,SAASA,0CAAkB;AACzE,EAAEC,2CAAyB;AAC3B,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE;AACnE,IAAI,MAAM,GAAG,GAAGC,6CAAY,CAAC,IAAI,CAAC,SAAS,CAAC;;AAE5C,IAAI,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,YAAY;AAClD,MAAM,EAAE;AACR,MAAM,SAAS;AACf,MAAM,GAAG;AACT,MAAM,UAAU;AAChB,MAAM,MAAM;AACZ,KAAK;AACL,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,cAAc,CAAC,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE;AAC5D,IAAI,MAAM,KAAK,GAAGC,kCAAa,CAAC,IAAI,CAAC,EAAE,CAAC;;AAExC,IAAI,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,c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