{"version":3,"file":"module.cjs","sources":["../../../../../src/modules/abstract/blob/module.js"],"sourcesContent":["import { AbstractBaseModule } from '../common';\nimport { withExtendedPrototypeProperties } from '../../../utils';\n\n/** Class to create and update Blobs on chain. */\nclass AbstractBlobModule extends AbstractBaseModule {\n  /**\n   * Write a new blob on chain.\n   * @param blobWithId\n   * @param targetDid - Signer of the blob\n   * @param signingKeyRef - The key id used by the signer. This will be used by the verifier (node) to fetch the public key for verification\n   * @returns {Promise<*>}\n   */\n  async new(blobWithId, didKeypair, params = {}) {\n    return await this.signAndSend(\n      await this.newTx(blobWithId, didKeypair),\n      params,\n    );\n  }\n\n  /**\n   * Get blob with given id from the chain. Throws if the blob can't be found.\n   * @param {string} id - Can either be a full blob id like blob:dock:0x... or just the hex identifier\n   * @returns {Promise<Blob>} - A 2-element array where the first is the author and the second is the blob contents.\n   */\n  async get(_id) {\n    throw new Error('Unimplemented');\n  }\n}\n\nexport default withExtendedPrototypeProperties(\n  ['newTx', 'get'],\n  AbstractBlobModule,\n);\n"],"names":["AbstractBaseModule","withExtendedPrototypeProperties","AbstractBlobModule"],"mappings":";;;;;;;;;;;;;;AAGA;2BACA,MAAM,kBAAkB,SAASA,0CAAkB,CAAC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,EAAE,EAAE;AACjD,IAAI,OAAO,MAAM,IAAI,CAAC,WAAW;AACjC,MAAM,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;AAC9C,MAAM,MAAM;AACZ,KAAK;AACL,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE;AACjB,IAAI,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC;AACpC,EAAE;AACF;;AAEA,yBAAeC,qCAA+B;AAC9C,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;AAClB,EAAEC,oBAAkB;AACpB,CAAC;;;;"}