cmd/wallet-js-sdk/src/credential/credential-manager.js
/**
   *  saves manifest credential along with its mapping to given connection ID.
   *
   *  @param {String} auth -  authorization token for performing this wallet operation.
   *  @param {Object} manifest - manifest credential (can be of any type).
   *  @param {String} connectionID - connection ID to which manifest credential to be mapped.
   *
   *  @deprecated, to be used for DIDComm blinded routing flow only
   *
   * @returns {Promise<Object>} - empty promise or an error if operation fails.
   */
saves manifest credential along with its mapping to given connection ID.
@param {String} auth -  authorization token for performing this wallet operation.
@param {Object} manifest - manifest credential (can be of any type).
@param {String} connectionID - connection ID to which manifest credential to be mapped.

@deprecated, to be used for DIDComm blinded routing flow only

@returns {Promise} - empty promise or an error if operation fails.
saves manifest credential along with its mapping to given connection ID . @param { String } auth - authorization token for performing this wallet operation . @param { Object } manifest - manifest credential ( can be of any type ) . @param { String } connectionID - connection ID to which manifest credential to be mapped . @deprecated to be used for DIDComm blinded routing flow only @returns { Promise } - empty promise or an error if operation fails .
async saveManifestVC(auth = "", manifest = {}, connectionID = "") {
    if (!manifest.id) {
      throw "invalid manifest credential, credential id is required.";
    }
    await this.wallet.add({
      auth,
      contentType: contentTypes.CREDENTIAL,
      content: manifest,
    });
    let content = {
      "@context": JSONLD_CTX_BLINDED_ROUTING_MANIFEST_MAPPING,
      id: manifest.id,
      type: MANIFEST_MAPPING_METADATA_TYPE,
      connectionID,
    };
    await this.wallet.add({
      auth,
      contentType: contentTypes.METADATA,
      content,
    });
  }
async saveManifestVC ( auth = "" , manifest = { } , connectionID = "" ) { if ( ! manifest . id ) { throw "invalid manifest credential, credential id is required." ; } await this . wallet . add ( { auth , contentType : contentTypes . CREDENTIAL , content : manifest , } ) ; let content = { "@context" : JSONLD_CTX_BLINDED_ROUTING_MANIFEST_MAPPING , id : manifest . id , type : MANIFEST_MAPPING_METADATA_TYPE , connectionID , } ; await this . wallet . add ( { auth , contentType : contentTypes . METADATA , content , } ) ; }
saves manifest credential along with its mapping to given connection ID.
saves manifest credential along with its mapping to given connection ID .