@credo-ts/core 0.5.0-alpha.113 → 0.5.0-alpha.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/agent/AgentModules.d.ts +2 -0
- package/build/agent/AgentModules.js +2 -0
- package/build/agent/AgentModules.js.map +1 -1
- package/build/agent/BaseAgent.d.ts +2 -0
- package/build/agent/BaseAgent.js +3 -0
- package/build/agent/BaseAgent.js.map +1 -1
- package/build/crypto/JwsService.d.ts +4 -1
- package/build/crypto/JwsService.js +7 -1
- package/build/crypto/JwsService.js.map +1 -1
- package/build/crypto/jose/jwt/Jwt.d.ts +2 -0
- package/build/crypto/jose/jwt/Jwt.js.map +1 -1
- package/build/index.d.ts +5 -3
- package/build/index.js +7 -2
- package/build/index.js.map +1 -1
- package/build/modules/basic-messages/BasicMessagesModule.js +0 -2
- package/build/modules/basic-messages/BasicMessagesModule.js.map +1 -1
- package/build/modules/connections/ConnectionsModule.js +0 -2
- package/build/modules/connections/ConnectionsModule.js.map +1 -1
- package/build/modules/credentials/CredentialsModule.js +0 -2
- package/build/modules/credentials/CredentialsModule.js.map +1 -1
- package/build/modules/dids/DidsApi.d.ts +2 -0
- package/build/modules/dids/DidsApi.js +6 -0
- package/build/modules/dids/DidsApi.js.map +1 -1
- package/build/modules/dids/DidsModule.js +0 -2
- package/build/modules/dids/DidsModule.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.js +6 -0
- package/build/modules/dids/methods/web/WebDidResolver.js.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.ts +4 -0
- package/build/modules/dids/services/DidRegistrarService.js +6 -0
- package/build/modules/dids/services/DidRegistrarService.js.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.ts +4 -0
- package/build/modules/dids/services/DidResolverService.js +6 -0
- package/build/modules/dids/services/DidResolverService.js.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts +17 -18
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +166 -144
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js.map +1 -1
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.ts +4 -3
- package/build/modules/dif-presentation-exchange/models/index.d.ts +4 -0
- package/build/modules/dif-presentation-exchange/models/index.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.d.ts +3 -8
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.js +23 -20
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.d.ts +1 -0
- package/build/modules/dif-presentation-exchange/utils/index.js +1 -0
- package/build/modules/dif-presentation-exchange/utils/index.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.d.ts +31 -0
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.js +50 -0
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.js.map +1 -0
- package/build/modules/dif-presentation-exchange/utils/transform.d.ts +9 -7
- package/build/modules/dif-presentation-exchange/utils/transform.js +24 -41
- package/build/modules/dif-presentation-exchange/utils/transform.js.map +1 -1
- package/build/modules/discover-features/DiscoverFeaturesModule.js +0 -2
- package/build/modules/discover-features/DiscoverFeaturesModule.js.map +1 -1
- package/build/modules/generic-records/GenericRecordsModule.js +0 -2
- package/build/modules/generic-records/GenericRecordsModule.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupModule.js +0 -2
- package/build/modules/message-pickup/MessagePickupModule.js.map +1 -1
- package/build/modules/oob/OutOfBandModule.js +0 -2
- package/build/modules/oob/OutOfBandModule.js.map +1 -1
- package/build/modules/proofs/ProofsModule.js +0 -2
- package/build/modules/proofs/ProofsModule.js.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +24 -15
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -1
- package/build/modules/routing/MediationRecipientModule.js +0 -2
- package/build/modules/routing/MediationRecipientModule.js.map +1 -1
- package/build/modules/routing/MediatorModule.js +0 -2
- package/build/modules/routing/MediatorModule.js.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +57 -0
- package/build/modules/sd-jwt-vc/SdJwtVcApi.js +77 -0
- package/build/modules/sd-jwt-vc/SdJwtVcApi.js.map +1 -0
- package/build/modules/sd-jwt-vc/SdJwtVcError.d.ts +3 -0
- package/build/modules/sd-jwt-vc/SdJwtVcError.js +8 -0
- package/build/modules/sd-jwt-vc/SdJwtVcError.js.map +1 -0
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.ts +12 -0
- package/build/modules/sd-jwt-vc/SdJwtVcModule.js +30 -0
- package/build/modules/sd-jwt-vc/SdJwtVcModule.js.map +1 -0
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +65 -0
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.js +3 -0
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.js.map +1 -0
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +60 -0
- package/build/modules/sd-jwt-vc/SdJwtVcService.js +328 -0
- package/build/modules/sd-jwt-vc/SdJwtVcService.js.map +1 -0
- package/build/modules/sd-jwt-vc/index.d.ts +6 -0
- package/build/modules/sd-jwt-vc/index.js +23 -0
- package/build/modules/sd-jwt-vc/index.js.map +1 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +32 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js +33 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js.map +1 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.ts +7 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.js +32 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.js.map +1 -0
- package/build/modules/sd-jwt-vc/repository/index.d.ts +2 -0
- package/build/modules/sd-jwt-vc/repository/index.js +19 -0
- package/build/modules/sd-jwt-vc/repository/index.js.map +1 -0
- package/build/modules/vc/W3cCredentialService.d.ts +3 -2
- package/build/modules/vc/W3cCredentialService.js +8 -4
- package/build/modules/vc/W3cCredentialService.js.map +1 -1
- package/build/modules/vc/W3cCredentialServiceOptions.d.ts +3 -3
- package/build/modules/vc/W3cCredentialsApi.d.ts +7 -2
- package/build/modules/vc/W3cCredentialsApi.js +15 -0
- package/build/modules/vc/W3cCredentialsApi.js.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.js +0 -1
- package/build/modules/vc/W3cCredentialsModule.js.map +1 -1
- package/build/modules/vc/data-integrity/SignatureSuiteRegistry.d.ts +4 -1
- package/build/modules/vc/data-integrity/SignatureSuiteRegistry.js +5 -2
- package/build/modules/vc/data-integrity/SignatureSuiteRegistry.js.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts +0 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +0 -7
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts +3 -0
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +6 -0
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts +0 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +0 -12
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts +2 -0
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.js +4 -0
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.js.map +1 -1
- package/build/modules/vc/models/ClaimFormat.d.ts +2 -1
- package/build/modules/vc/models/ClaimFormat.js +1 -0
- package/build/modules/vc/models/ClaimFormat.js.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cVerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.ts +1 -0
- package/build/modules/vc/repository/W3cCredentialRecord.js +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.js.map +1 -1
- package/build/plugins/DependencyManager.js +3 -0
- package/build/plugins/DependencyManager.js.map +1 -1
- package/build/plugins/index.d.ts +1 -0
- package/build/plugins/index.js +1 -0
- package/build/plugins/index.js.map +1 -1
- package/build/plugins/utils.d.ts +7 -0
- package/build/plugins/utils.js +21 -0
- package/build/plugins/utils.js.map +1 -0
- package/build/storage/migration/UpdateAssistant.d.ts +5 -1
- package/build/storage/migration/updates/0.4-0.5/index.d.ts +2 -0
- package/build/storage/migration/updates/0.4-0.5/index.js +9 -0
- package/build/storage/migration/updates/0.4-0.5/index.js.map +1 -0
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.d.ts +5 -0
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.js +22 -0
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.js.map +1 -0
- package/build/storage/migration/updates.d.ts +6 -1
- package/build/storage/migration/updates.js +6 -0
- package/build/storage/migration/updates.js.map +1 -1
- package/build/utils/Hasher.d.ts +2 -2
- package/build/utils/Hasher.js +7 -5
- package/build/utils/Hasher.js.map +1 -1
- package/build/utils/HashlinkEncoder.d.ts +1 -1
- package/build/utils/HashlinkEncoder.js +1 -1
- package/build/utils/MultiHashEncoder.d.ts +3 -2
- package/build/utils/MultiHashEncoder.js +2 -2
- package/build/utils/MultiHashEncoder.js.map +1 -1
- package/build/utils/attachment.d.ts +2 -1
- package/build/utils/attachment.js +1 -1
- package/build/utils/attachment.js.map +1 -1
- package/build/utils/deepEquality.d.ts +4 -0
- package/build/utils/deepEquality.js +2 -1
- package/build/utils/deepEquality.js.map +1 -1
- package/build/utils/path.d.ts +7 -0
- package/build/utils/path.js +26 -1
- package/build/utils/path.js.map +1 -1
- package/build/wallet/WalletModule.js +2 -2
- package/build/wallet/WalletModule.js.map +1 -1
- package/package.json +8 -7
|
@@ -4,37 +4,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getCredentialsForRequest = void 0;
|
|
7
|
-
const pex_1 = require("@sphereon/pex");
|
|
8
7
|
const pex_models_1 = require("@sphereon/pex-models");
|
|
9
8
|
const jsonpath_1 = __importDefault(require("jsonpath"));
|
|
10
9
|
const utils_1 = require("../../../utils");
|
|
11
10
|
const DifPresentationExchangeError_1 = require("../DifPresentationExchangeError");
|
|
12
11
|
const transform_1 = require("./transform");
|
|
13
|
-
async function getCredentialsForRequest(
|
|
12
|
+
async function getCredentialsForRequest(
|
|
13
|
+
// PEX instance with hasher defined
|
|
14
|
+
pex, presentationDefinition, credentialRecords) {
|
|
14
15
|
var _a;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
const pex = new pex_1.PEX();
|
|
19
|
-
const encodedCredentials = credentialRecords.map((c) => (0, transform_1.getSphereonOriginalVerifiableCredential)(c.credential));
|
|
20
|
-
// FIXME: there is a function for this in the VP library, but it is not usable atm
|
|
21
|
-
const selectResultsRaw = pex.selectFrom(presentationDefinition, encodedCredentials, {
|
|
22
|
-
holderDIDs,
|
|
23
|
-
// limitDisclosureSignatureSuites: [],
|
|
24
|
-
// restrictToDIDMethods,
|
|
25
|
-
// restrictToFormats
|
|
26
|
-
});
|
|
16
|
+
const encodedCredentials = credentialRecords.map((c) => (0, transform_1.getSphereonOriginalVerifiableCredential)(c));
|
|
17
|
+
const selectResultsRaw = pex.selectFrom(presentationDefinition, encodedCredentials);
|
|
27
18
|
const selectResults = Object.assign(Object.assign({}, selectResultsRaw), {
|
|
28
19
|
// Map the encoded credential to their respective w3c credential record
|
|
29
|
-
verifiableCredential: (_a = selectResultsRaw.verifiableCredential) === null || _a === void 0 ? void 0 : _a.map((
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
verifiableCredential: (_a = selectResultsRaw.verifiableCredential) === null || _a === void 0 ? void 0 : _a.map((selectedEncoded) => {
|
|
21
|
+
const credentialRecordIndex = encodedCredentials.findIndex((encoded) => {
|
|
22
|
+
if (typeof selectedEncoded === 'string' &&
|
|
23
|
+
selectedEncoded.includes('~') &&
|
|
24
|
+
typeof encoded === 'string' &&
|
|
25
|
+
encoded.includes('~')) {
|
|
26
|
+
// FIXME: pex applies SD-JWT, so we actually can't match the record anymore :(
|
|
27
|
+
// We take the first part of the sd-jwt, as that will never change, and should
|
|
28
|
+
// be unique on it's own
|
|
29
|
+
const [encodedJwt] = encoded.split('~');
|
|
30
|
+
const [selectedEncodedJwt] = selectedEncoded.split('~');
|
|
31
|
+
return encodedJwt === selectedEncodedJwt;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return (0, utils_1.deepEquality)(selectedEncoded, encoded);
|
|
35
|
+
}
|
|
33
36
|
});
|
|
34
|
-
if (
|
|
37
|
+
if (credentialRecordIndex === -1) {
|
|
35
38
|
throw new DifPresentationExchangeError_1.DifPresentationExchangeError('Unable to find credential in credential records.');
|
|
36
39
|
}
|
|
37
|
-
return
|
|
40
|
+
return credentialRecords[credentialRecordIndex];
|
|
38
41
|
}) });
|
|
39
42
|
const presentationSubmission = {
|
|
40
43
|
requirements: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialSelection.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/credentialSelection.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"credentialSelection.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/credentialSelection.ts"],"names":[],"mappings":";;;;;;AAUA,qDAA4C;AAC5C,wDAAwC;AAExC,0CAA6C;AAC7C,kFAA8E;AAE9E,2CAAqE;AAE9D,KAAK,UAAU,wBAAwB;AAC5C,mCAAmC;AACnC,GAAQ,EACR,sBAA+C,EAC/C,iBAA6D;;IAE7D,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mDAAuC,EAAC,CAAC,CAAC,CAAC,CAAA;IACnG,MAAM,gBAAgB,GAAG,GAAG,CAAC,UAAU,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAA;IAEnF,MAAM,aAAa,mCACd,gBAAgB;QACnB,uEAAuE;QACvE,oBAAoB,EAAE,MAAA,gBAAgB,CAAC,oBAAoB,0CAAE,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE;YACnF,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE;gBACrE,IACE,OAAO,eAAe,KAAK,QAAQ;oBACnC,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC;oBAC7B,OAAO,OAAO,KAAK,QAAQ;oBAC3B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EACrB;oBACA,8EAA8E;oBAC9E,8EAA8E;oBAC9E,wBAAwB;oBACxB,MAAM,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;oBACvC,MAAM,CAAC,kBAAkB,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;oBAEvD,OAAO,UAAU,KAAK,kBAAkB,CAAA;iBACzC;qBAAM;oBACL,OAAO,IAAA,oBAAY,EAAC,eAAe,EAAE,OAAO,CAAC,CAAA;iBAC9C;YACH,CAAC,CAAC,CAAA;YAEF,IAAI,qBAAqB,KAAK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(this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./transform"), exports);
|
|
18
18
|
__exportStar(require("./credentialSelection"), exports);
|
|
19
|
+
__exportStar(require("./presentationsToCreate"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,wDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,wDAAqC;AACrC,0DAAuC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SdJwtVcRecord } from '../../sd-jwt-vc';
|
|
2
|
+
import type { DifPexInputDescriptorToCredentials } from '../models';
|
|
3
|
+
import { W3cCredentialRecord, ClaimFormat } from '../../vc';
|
|
4
|
+
export interface SdJwtVcPresentationToCreate {
|
|
5
|
+
claimFormat: ClaimFormat.SdJwtVc;
|
|
6
|
+
subjectIds: [];
|
|
7
|
+
verifiableCredentials: [
|
|
8
|
+
{
|
|
9
|
+
credential: SdJwtVcRecord;
|
|
10
|
+
inputDescriptorId: string;
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
}
|
|
14
|
+
export interface JwtVpPresentationToCreate {
|
|
15
|
+
claimFormat: ClaimFormat.JwtVp;
|
|
16
|
+
subjectIds: [string];
|
|
17
|
+
verifiableCredentials: Array<{
|
|
18
|
+
credential: W3cCredentialRecord;
|
|
19
|
+
inputDescriptorId: string;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
export interface LdpVpPresentationToCreate {
|
|
23
|
+
claimFormat: ClaimFormat.LdpVp;
|
|
24
|
+
subjectIds: [string];
|
|
25
|
+
verifiableCredentials: Array<{
|
|
26
|
+
credential: W3cCredentialRecord;
|
|
27
|
+
inputDescriptorId: string;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
export type PresentationToCreate = SdJwtVcPresentationToCreate | JwtVpPresentationToCreate | LdpVpPresentationToCreate;
|
|
31
|
+
export declare function getPresentationsToCreate(credentialsForInputDescriptor: DifPexInputDescriptorToCredentials): PresentationToCreate[];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPresentationsToCreate = void 0;
|
|
4
|
+
const vc_1 = require("../../vc");
|
|
5
|
+
const DifPresentationExchangeError_1 = require("../DifPresentationExchangeError");
|
|
6
|
+
// FIXME: we should extract supported format form top-level presentation definition, and input_descriptor as well
|
|
7
|
+
// to make sure the presentation we are going to create is a presentation format supported by the verifier.
|
|
8
|
+
// In addition we should allow to pass an override 'format' object, as specification like OID4VP do not use the
|
|
9
|
+
// PD formats, but define their own.
|
|
10
|
+
function getPresentationsToCreate(credentialsForInputDescriptor) {
|
|
11
|
+
const presentationsToCreate = [];
|
|
12
|
+
// We map all credentials for a input descriptor to the different subject ids. Each subjectId will need
|
|
13
|
+
// to create a separate proof (either on the same presentation or if not allowed by proof format on separate)
|
|
14
|
+
// presentations
|
|
15
|
+
for (const [inputDescriptorId, credentials] of Object.entries(credentialsForInputDescriptor)) {
|
|
16
|
+
for (const credential of credentials) {
|
|
17
|
+
if (credential instanceof vc_1.W3cCredentialRecord) {
|
|
18
|
+
const subjectId = credential.credential.credentialSubjectIds[0];
|
|
19
|
+
if (!subjectId) {
|
|
20
|
+
throw new DifPresentationExchangeError_1.DifPresentationExchangeError('Missing required credential subject for creating the presentation.');
|
|
21
|
+
}
|
|
22
|
+
// NOTE: we only support one subjectId per VP -- once we have proper support
|
|
23
|
+
// for multiple proofs on an LDP-VP we can add multiple subjectIds to a single VP for LDP-vp only
|
|
24
|
+
const expectedClaimFormat = credential.credential.claimFormat === vc_1.ClaimFormat.LdpVc ? vc_1.ClaimFormat.LdpVp : vc_1.ClaimFormat.JwtVp;
|
|
25
|
+
const matchingClaimFormatAndSubject = presentationsToCreate.find((p) => p.claimFormat === expectedClaimFormat && p.subjectIds.includes(subjectId));
|
|
26
|
+
if (matchingClaimFormatAndSubject) {
|
|
27
|
+
matchingClaimFormatAndSubject.verifiableCredentials.push({ inputDescriptorId, credential });
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
presentationsToCreate.push({
|
|
31
|
+
claimFormat: expectedClaimFormat,
|
|
32
|
+
subjectIds: [subjectId],
|
|
33
|
+
verifiableCredentials: [{ credential, inputDescriptorId }],
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
// SD-JWT-VC always needs it's own presentation
|
|
39
|
+
presentationsToCreate.push({
|
|
40
|
+
claimFormat: vc_1.ClaimFormat.SdJwtVc,
|
|
41
|
+
subjectIds: [],
|
|
42
|
+
verifiableCredentials: [{ inputDescriptorId, credential }],
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return presentationsToCreate;
|
|
48
|
+
}
|
|
49
|
+
exports.getPresentationsToCreate = getPresentationsToCreate;
|
|
50
|
+
//# sourceMappingURL=presentationsToCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentationsToCreate.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/presentationsToCreate.ts"],"names":[],"mappings":";;;AAGA,iCAA2D;AAC3D,kFAA8E;AAoC9E,iHAAiH;AACjH,2GAA2G;AAC3G,+GAA+G;AAC/G,oCAAoC;AACpC,SAAgB,wBAAwB,CAAC,6BAAiE;IACxG,MAAM,qBAAqB,GAAgC,EAAE,CAAA;IAE7D,uGAAuG;IACvG,6GAA6G;IAC7G,gBAAgB;IAChB,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,UAAU,EAAE,CAAC;iBAC3D,CAAC,CAAA;aACH;SACF;KACF;IAED,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AA5CD,4DA4CC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare function
|
|
1
|
+
import type { AgentContext } from '../../../agent';
|
|
2
|
+
import type { SdJwtVcRecord } from '../../sd-jwt-vc';
|
|
3
|
+
import type { W3cJsonPresentation } from '../../vc/models/presentation/W3cJsonPresentation';
|
|
4
|
+
import type { VerifiablePresentation } from '../models';
|
|
5
|
+
import type { OriginalVerifiableCredential as SphereonOriginalVerifiableCredential, OriginalVerifiablePresentation as SphereonOriginalVerifiablePresentation, W3CVerifiablePresentation as SphereonW3CVerifiablePresentation } from '@sphereon/ssi-types';
|
|
6
|
+
import { W3cCredentialRecord, W3cJsonLdVerifiablePresentation, W3cJwtVerifiablePresentation } from '../../vc';
|
|
7
|
+
export declare function getSphereonOriginalVerifiableCredential(credentialRecord: W3cCredentialRecord | SdJwtVcRecord): SphereonOriginalVerifiableCredential;
|
|
8
|
+
export declare function getSphereonOriginalVerifiablePresentation(verifiablePresentation: VerifiablePresentation): SphereonOriginalVerifiablePresentation;
|
|
9
|
+
export declare function getVerifiablePresentationFromEncoded(agentContext: AgentContext, encodedVerifiablePresentation: string | W3cJsonPresentation | SphereonW3CVerifiablePresentation): W3cJsonLdVerifiablePresentation | W3cJwtVerifiablePresentation | import("../../sd-jwt-vc").SdJwtVc<import("../../sd-jwt-vc").SdJwtVcHeader, import("../../sd-jwt-vc").SdJwtVcPayload>;
|
|
@@ -1,61 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getVerifiablePresentationFromEncoded = exports.getSphereonOriginalVerifiablePresentation = exports.getSphereonOriginalVerifiableCredential = void 0;
|
|
4
|
+
const error_1 = require("../../../error");
|
|
4
5
|
const utils_1 = require("../../../utils");
|
|
6
|
+
const sd_jwt_vc_1 = require("../../sd-jwt-vc");
|
|
5
7
|
const vc_1 = require("../../vc");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return utils_1.JsonTransformer.toJSON(w3cVerifiableCredential);
|
|
10
|
-
}
|
|
11
|
-
else if (w3cVerifiableCredential.claimFormat === vc_1.ClaimFormat.JwtVc) {
|
|
12
|
-
return w3cVerifiableCredential.serializedJwt;
|
|
8
|
+
function getSphereonOriginalVerifiableCredential(credentialRecord) {
|
|
9
|
+
if (credentialRecord instanceof vc_1.W3cCredentialRecord) {
|
|
10
|
+
return credentialRecord.credential.encoded;
|
|
13
11
|
}
|
|
14
12
|
else {
|
|
15
|
-
|
|
13
|
+
return credentialRecord.compactSdJwtVc;
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
exports.getSphereonOriginalVerifiableCredential = getSphereonOriginalVerifiableCredential;
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
else if (w3cVerifiableCredential.claimFormat === vc_1.ClaimFormat.JwtVc) {
|
|
24
|
-
return w3cVerifiableCredential.serializedJwt;
|
|
17
|
+
function getSphereonOriginalVerifiablePresentation(verifiablePresentation) {
|
|
18
|
+
if (verifiablePresentation instanceof vc_1.W3cJwtVerifiablePresentation ||
|
|
19
|
+
verifiablePresentation instanceof vc_1.W3cJsonLdVerifiablePresentation) {
|
|
20
|
+
return verifiablePresentation.encoded;
|
|
25
21
|
}
|
|
26
22
|
else {
|
|
27
|
-
|
|
23
|
+
return verifiablePresentation.compact;
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
|
-
exports.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
exports.getSphereonOriginalVerifiablePresentation = getSphereonOriginalVerifiablePresentation;
|
|
27
|
+
// TODO: we might want to move this to some generic vc transformation util
|
|
28
|
+
function getVerifiablePresentationFromEncoded(agentContext, encodedVerifiablePresentation) {
|
|
29
|
+
if (typeof encodedVerifiablePresentation === 'string' && encodedVerifiablePresentation.includes('~')) {
|
|
30
|
+
const sdJwtVcApi = agentContext.dependencyManager.resolve(sd_jwt_vc_1.SdJwtVcApi);
|
|
31
|
+
return sdJwtVcApi.fromCompact(encodedVerifiablePresentation);
|
|
34
32
|
}
|
|
35
|
-
else if (
|
|
36
|
-
return
|
|
33
|
+
else if (typeof encodedVerifiablePresentation === 'string') {
|
|
34
|
+
return vc_1.W3cJwtVerifiablePresentation.fromSerializedJwt(encodedVerifiablePresentation);
|
|
37
35
|
}
|
|
38
|
-
else {
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.getSphereonW3cVerifiablePresentation = getSphereonW3cVerifiablePresentation;
|
|
43
|
-
function getW3cVerifiablePresentationInstance(w3cVerifiablePresentation) {
|
|
44
|
-
if (typeof w3cVerifiablePresentation === 'string') {
|
|
45
|
-
return vc_1.W3cJwtVerifiablePresentation.fromSerializedJwt(w3cVerifiablePresentation);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return utils_1.JsonTransformer.fromJSON(w3cVerifiablePresentation, vc_1.W3cJsonLdVerifiablePresentation);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.getW3cVerifiablePresentationInstance = getW3cVerifiablePresentationInstance;
|
|
52
|
-
function getW3cVerifiableCredentialInstance(w3cVerifiableCredential) {
|
|
53
|
-
if (typeof w3cVerifiableCredential === 'string') {
|
|
54
|
-
return vc_1.W3cJwtVerifiableCredential.fromSerializedJwt(w3cVerifiableCredential);
|
|
36
|
+
else if (typeof encodedVerifiablePresentation === 'object' && '@context' in encodedVerifiablePresentation) {
|
|
37
|
+
return utils_1.JsonTransformer.fromJSON(encodedVerifiablePresentation, vc_1.W3cJsonLdVerifiablePresentation);
|
|
55
38
|
}
|
|
56
39
|
else {
|
|
57
|
-
|
|
40
|
+
throw new error_1.CredoError('Unsupported verifiable presentation format');
|
|
58
41
|
}
|
|
59
42
|
}
|
|
60
|
-
exports.
|
|
43
|
+
exports.getVerifiablePresentationFromEncoded = getVerifiablePresentationFromEncoded;
|
|
61
44
|
//# sourceMappingURL=transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/transform.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../../src/modules/dif-presentation-exchange/utils/transform.ts"],"names":[],"mappings":";;;AAUA,0CAA2C;AAC3C,0CAAgD;AAChD,+CAA4C;AAC5C,iCAA6G;AAE7G,SAAgB,uCAAuC,CACrD,gBAAqD;IAErD,IAAI,gBAAgB,YAAY,wBAAmB,EAAE;QACnD,OAAO,gBAAgB,CAAC,UAAU,CAAC,OAA+C,CAAA;KACnF;SAAM;QACL,OAAO,gBAAgB,CAAC,cAAc,CAAA;KACvC;AACH,CAAC;AARD,0FAQC;AAED,SAAgB,yCAAyC,CACvD,sBAA8C;IAE9C,IACE,sBAAsB,YAAY,iCAA4B;QAC9D,sBAAsB,YAAY,oCAA+B,EACjE;QACA,OAAO,sBAAsB,CAAC,OAAiD,CAAA;KAChF;SAAM;QACL,OAAO,sBAAsB,CAAC,OAAO,CAAA;KACtC;AACH,CAAC;AAXD,8FAWC;AAED,0EAA0E;AAC1E,SAAgB,oCAAoC,CAClD,YAA0B,EAC1B,6BAA+F;IAE/F,IAAI,OAAO,6BAA6B,KAAK,QAAQ,IAAI,6BAA6B,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACpG,MAAM,UAAU,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,sBAAU,CAAC,CAAA;QACrE,OAAO,UAAU,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAA;KAC7D;SAAM,IAAI,OAAO,6BAA6B,KAAK,QAAQ,EAAE;QAC5D,OAAO,iCAA4B,CAAC,iBAAiB,CAAC,6BAA6B,CAAC,CAAA;KACrF;SAAM,IAAI,OAAO,6BAA6B,KAAK,QAAQ,IAAI,UAAU,IAAI,6BAA6B,EAAE;QAC3G,OAAO,uBAAe,CAAC,QAAQ,CAAC,6BAA6B,EAAE,oCAA+B,CAAC,CAAA;KAChG;SAAM;QACL,MAAM,IAAI,kBAAU,CAAC,4CAA4C,CAAC,CAAA;KACnE;AACH,CAAC;AAdD,oFAcC"}
|
|
@@ -15,8 +15,6 @@ class DiscoverFeaturesModule {
|
|
|
15
15
|
* Registers the dependencies of the discover features module on the dependency manager.
|
|
16
16
|
*/
|
|
17
17
|
register(dependencyManager, featureRegistry) {
|
|
18
|
-
// Api
|
|
19
|
-
dependencyManager.registerContextScoped(DiscoverFeaturesApi_1.DiscoverFeaturesApi);
|
|
20
18
|
// Config
|
|
21
19
|
dependencyManager.registerInstance(DiscoverFeaturesModuleConfig_1.DiscoverFeaturesModuleConfig, this.config);
|
|
22
20
|
// Services
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscoverFeaturesModule.js","sourceRoot":"","sources":["../../../src/modules/discover-features/DiscoverFeaturesModule.ts"],"names":[],"mappings":";;;AAIA,+CAA6C;AAE7C,+DAA2D;AAC3D,iFAA6E;AAC7E,sCAAyD;AACzD,sCAAyD;AAEzD,MAAa,sBAAsB;IAIjC,YAAmB,MAA4C;QAH/C,QAAG,GAAG,yCAAmB,CAAA;QAIvC,IAAI,CAAC,MAAM,GAAG,IAAI,2DAA4B,CAAC,MAAM,CAAC,CAAA;IACxD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,
|
|
1
|
+
{"version":3,"file":"DiscoverFeaturesModule.js","sourceRoot":"","sources":["../../../src/modules/discover-features/DiscoverFeaturesModule.ts"],"names":[],"mappings":";;;AAIA,+CAA6C;AAE7C,+DAA2D;AAC3D,iFAA6E;AAC7E,sCAAyD;AACzD,sCAAyD;AAEzD,MAAa,sBAAsB;IAIjC,YAAmB,MAA4C;QAH/C,QAAG,GAAG,yCAAmB,CAAA;QAIvC,IAAI,CAAC,MAAM,GAAG,IAAI,2DAA4B,CAAC,MAAM,CAAC,CAAA;IACxD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,2DAA4B,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE7E,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,8BAAyB,CAAC,CAAA;QAC9D,iBAAiB,CAAC,iBAAiB,CAAC,8BAAyB,CAAC,CAAA;QAE9D,WAAW;QACX,eAAe,CAAC,QAAQ,CACtB,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,2CAA2C;YAC/C,KAAK,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;SAClC,CAAC,EACF,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,2CAA2C;YAC/C,KAAK,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;SAClC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA/BD,wDA+BC"}
|
|
@@ -12,8 +12,6 @@ class GenericRecordsModule {
|
|
|
12
12
|
* Registers the dependencies of the generic records module on the dependency manager.
|
|
13
13
|
*/
|
|
14
14
|
register(dependencyManager) {
|
|
15
|
-
// Api
|
|
16
|
-
dependencyManager.registerContextScoped(GenericRecordsApi_1.GenericRecordsApi);
|
|
17
15
|
// Services
|
|
18
16
|
dependencyManager.registerSingleton(GenericRecordService_1.GenericRecordService);
|
|
19
17
|
// Repositories
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordsModule.js","sourceRoot":"","sources":["../../../src/modules/generic-records/GenericRecordsModule.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AACvD,oFAAgF;AAChF,0EAAsE;AAEtE,MAAa,oBAAoB;IAAjC;QACkB,QAAG,GAAG,qCAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"GenericRecordsModule.js","sourceRoot":"","sources":["../../../src/modules/generic-records/GenericRecordsModule.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AACvD,oFAAgF;AAChF,0EAAsE;AAEtE,MAAa,oBAAoB;IAAjC;QACkB,QAAG,GAAG,qCAAiB,CAAA;IAYzC,CAAC;IAVC;;OAEG;IACI,QAAQ,CAAC,iBAAoC;QAClD,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,2CAAoB,CAAC,CAAA;QAEzD,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,mDAAwB,CAAC,CAAA;IAC/D,CAAC;CACF;AAbD,oDAaC"}
|
|
@@ -18,8 +18,6 @@ class MessagePickupModule {
|
|
|
18
18
|
* Registers the dependencies of the message pickup answer module on the dependency manager.
|
|
19
19
|
*/
|
|
20
20
|
register(dependencyManager, featureRegistry) {
|
|
21
|
-
// Api
|
|
22
|
-
dependencyManager.registerContextScoped(MessagePickupApi_1.MessagePickupApi);
|
|
23
21
|
// Config
|
|
24
22
|
dependencyManager.registerInstance(MessagePickupModuleConfig_1.MessagePickupModuleConfig, this.config);
|
|
25
23
|
// Services
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePickupModule.js","sourceRoot":"","sources":["../../../src/modules/message-pickup/MessagePickupModule.ts"],"names":[],"mappings":";;;AAOA,+CAAkD;AAElD,yDAAqD;AACrD,2EAAuE;AACvE,yCAA6E;AAC7E,yCAAwD;AACxD,uCAA2D;AAa3D,MAAa,mBAAmB;IAQ9B,YAAmB,MAA2D;;QAH9E,iCAAiC;QACjB,QAAG,GAA0D,mCAAgB,CAAA;QAG3F,IAAI,CAAC,MAAM,GAAG,IAAI,qDAAyB,iCACtC,MAAM,KACT,SAAS,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,mCAAI,CAAC,IAAI,kCAAuB,EAAE,EAAE,IAAI,kCAAuB,EAAE,CAAC,IACzC,CAAA;IACzD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,
|
|
1
|
+
{"version":3,"file":"MessagePickupModule.js","sourceRoot":"","sources":["../../../src/modules/message-pickup/MessagePickupModule.ts"],"names":[],"mappings":";;;AAOA,+CAAkD;AAElD,yDAAqD;AACrD,2EAAuE;AACvE,yCAA6E;AAC7E,yCAAwD;AACxD,uCAA2D;AAa3D,MAAa,mBAAmB;IAQ9B,YAAmB,MAA2D;;QAH9E,iCAAiC;QACjB,QAAG,GAA0D,mCAAgB,CAAA;QAG3F,IAAI,CAAC,MAAM,GAAG,IAAI,qDAAyB,iCACtC,MAAM,KACT,SAAS,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,mCAAI,CAAC,IAAI,kCAAuB,EAAE,EAAE,IAAI,kCAAuB,EAAE,CAAC,IACzC,CAAA;IACzD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,qDAAyB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE1E,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,sCAA2B,CAAC,CAAA;QAEhE,gGAAgG;QAChG,IAAI,IAAI,CAAC,MAAM,CAAC,uBAAuB,EAAE;YACvC,iBAAiB,CAAC,gBAAgB,CAAC,4BAAgB,CAAC,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAA;SAClH;aAAM;YACL,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,4BAAgB,CAAC,uBAAuB,CAAC,EAAE;gBAC7E,iBAAiB,CAAC,iBAAiB,CAAC,4BAAgB,CAAC,uBAAuB,EAAE,yCAA+B,CAAC,CAAA;aAC/G;SACF;QAED,iEAAiE;QACjE,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;YAC5C,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAA;SACtD;IACH,CAAC;CACF;AAvCD,kDAuCC"}
|
|
@@ -13,8 +13,6 @@ class OutOfBandModule {
|
|
|
13
13
|
* Registers the dependencies of the ot of band module on the dependency manager.
|
|
14
14
|
*/
|
|
15
15
|
register(dependencyManager, featureRegistry) {
|
|
16
|
-
// Api
|
|
17
|
-
dependencyManager.registerContextScoped(OutOfBandApi_1.OutOfBandApi);
|
|
18
16
|
// Services
|
|
19
17
|
dependencyManager.registerSingleton(OutOfBandService_1.OutOfBandService);
|
|
20
18
|
// Repositories
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfBandModule.js","sourceRoot":"","sources":["../../../src/modules/oob/OutOfBandModule.ts"],"names":[],"mappings":";;;AAGA,+CAA6C;AAE7C,iDAA6C;AAC7C,yDAAqD;AACrD,6CAAkD;AAElD,MAAa,eAAe;IAA5B;QACkB,QAAG,GAAG,2BAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"OutOfBandModule.js","sourceRoot":"","sources":["../../../src/modules/oob/OutOfBandModule.ts"],"names":[],"mappings":";;;AAGA,+CAA6C;AAE7C,iDAA6C;AAC7C,yDAAqD;AACrD,6CAAkD;AAElD,MAAa,eAAe;IAA5B;QACkB,QAAG,GAAG,2BAAY,CAAA;IAoBpC,CAAC;IAlBC;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,mCAAgB,CAAC,CAAA;QAErD,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,gCAAmB,CAAC,CAAA;QAExD,WAAW;QACX,eAAe,CAAC,QAAQ,CACtB,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,qCAAqC;YACzC,KAAK,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;SAC9B,CAAC,CACH,CAAA;IACH,CAAC;CACF;AArBD,0CAqBC"}
|
|
@@ -18,8 +18,6 @@ class ProofsModule {
|
|
|
18
18
|
* Registers the dependencies of the proofs module on the dependency manager.
|
|
19
19
|
*/
|
|
20
20
|
register(dependencyManager, featureRegistry) {
|
|
21
|
-
// Api
|
|
22
|
-
dependencyManager.registerContextScoped(ProofsApi_1.ProofsApi);
|
|
23
21
|
// Config
|
|
24
22
|
dependencyManager.registerInstance(ProofsModuleConfig_1.ProofsModuleConfig, this.config);
|
|
25
23
|
// Repositories
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProofsModule.js","sourceRoot":"","sources":["../../../src/modules/proofs/ProofsModule.ts"],"names":[],"mappings":";;;AAOA,2CAAuC;AACvC,6DAAyD;AACzD,yCAA4C;AAC5C,6CAA8C;AAa9C,MAAa,YAAY;IAKvB,YAAmB,MAA4C;;QAF/C,QAAG,GAA2C,qBAAS,CAAA;QAGrE,IAAI,CAAC,MAAM,GAAG,IAAI,uCAAkB,iCAC/B,MAAM;YACT,sGAAsG;YACtG,2BAA2B;YAC3B,cAAc,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,cAAc,mCAAI,CAAC,IAAI,0BAAe,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,IAC/C,CAAA;IAC1C,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,
|
|
1
|
+
{"version":3,"file":"ProofsModule.js","sourceRoot":"","sources":["../../../src/modules/proofs/ProofsModule.ts"],"names":[],"mappings":";;;AAOA,2CAAuC;AACvC,6DAAyD;AACzD,yCAA4C;AAC5C,6CAA8C;AAa9C,MAAa,YAAY;IAKvB,YAAmB,MAA4C;;QAF/C,QAAG,GAA2C,qBAAS,CAAA;QAGrE,IAAI,CAAC,MAAM,GAAG,IAAI,uCAAkB,iCAC/B,MAAM;YACT,sGAAsG;YACtG,2BAA2B;YAC3B,cAAc,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,cAAc,mCAAI,CAAC,IAAI,0BAAe,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,IAC/C,CAAA;IAC1C,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,uCAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEnE,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,4BAAe,CAAC,CAAA;QAEpD,KAAK,MAAM,aAAa,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE;YACtD,aAAa,CAAC,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAA;SAC3D;IACH,CAAC;CACF;AA5BD,oCA4BC"}
|
|
@@ -97,30 +97,33 @@ class PresentationExchangeProofFormatService {
|
|
|
97
97
|
attachmentId,
|
|
98
98
|
});
|
|
99
99
|
const { presentation_definition: presentationDefinition, options } = requestAttachment.getDataAsJson();
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
r.submissionEntry.forEach((r) => {
|
|
108
|
-
credentials[r.inputDescriptorId] = r.verifiableCredentials.map((c) => c.credential);
|
|
109
|
-
});
|
|
110
|
-
});
|
|
100
|
+
let credentials;
|
|
101
|
+
if ((_a = proofFormats === null || proofFormats === void 0 ? void 0 : proofFormats.presentationExchange) === null || _a === void 0 ? void 0 : _a.credentials) {
|
|
102
|
+
credentials = proofFormats.presentationExchange.credentials;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const credentialsForRequest = await ps.getCredentialsForRequest(agentContext, presentationDefinition);
|
|
106
|
+
credentials = ps.selectCredentialsForRequest(credentialsForRequest);
|
|
111
107
|
}
|
|
112
108
|
const presentation = await ps.createPresentation(agentContext, {
|
|
113
109
|
presentationDefinition,
|
|
114
110
|
credentialsForInputDescriptor: credentials,
|
|
115
|
-
challenge: options === null || options === void 0 ? void 0 : options.challenge,
|
|
111
|
+
challenge: (_b = options === null || options === void 0 ? void 0 : options.challenge) !== null && _b !== void 0 ? _b : (await agentContext.wallet.generateNonce()),
|
|
116
112
|
domain: options === null || options === void 0 ? void 0 : options.domain,
|
|
117
113
|
});
|
|
118
114
|
if (presentation.verifiablePresentations.length > 1) {
|
|
119
115
|
throw new error_1.CredoError('Invalid amount of verifiable presentations. Only one is allowed.');
|
|
120
116
|
}
|
|
117
|
+
if (presentation.presentationSubmissionLocation === dif_presentation_exchange_1.DifPresentationExchangeSubmissionLocation.EXTERNAL) {
|
|
118
|
+
throw new error_1.CredoError('External presentation submission is not supported.');
|
|
119
|
+
}
|
|
121
120
|
const firstPresentation = presentation.verifiablePresentations[0];
|
|
122
|
-
|
|
123
|
-
const
|
|
121
|
+
// TODO: they should all have `encoded` property so it's easy to use the resulting VP
|
|
122
|
+
const encodedFirstPresentation = firstPresentation instanceof vc_1.W3cJwtVerifiablePresentation ||
|
|
123
|
+
firstPresentation instanceof vc_1.W3cJsonLdVerifiablePresentation
|
|
124
|
+
? firstPresentation.encoded
|
|
125
|
+
: firstPresentation === null || firstPresentation === void 0 ? void 0 : firstPresentation.compact;
|
|
126
|
+
const attachment = this.getFormatData(encodedFirstPresentation, format.attachmentId);
|
|
124
127
|
return { attachment, format };
|
|
125
128
|
}
|
|
126
129
|
async processPresentation(agentContext, { requestAttachment, attachment }) {
|
|
@@ -133,11 +136,17 @@ class PresentationExchangeProofFormatService {
|
|
|
133
136
|
let jsonPresentation;
|
|
134
137
|
// TODO: we should probably move this transformation logic into the VC module, so it
|
|
135
138
|
// can be reused in Credo when we need to go from encoded -> parsed
|
|
136
|
-
if (typeof presentation === 'string') {
|
|
139
|
+
if (typeof presentation === 'string' && presentation.includes('~')) {
|
|
140
|
+
// NOTE: we need to define in the PEX RFC where to put the presentation_submission
|
|
141
|
+
throw new error_1.CredoError('Received SD-JWT VC in PEX proof format. This is not supported yet.');
|
|
142
|
+
}
|
|
143
|
+
else if (typeof presentation === 'string') {
|
|
144
|
+
// If it's a string, we expect it to be a JWT VP
|
|
137
145
|
parsedPresentation = vc_1.W3cJwtVerifiablePresentation.fromSerializedJwt(presentation);
|
|
138
146
|
jsonPresentation = parsedPresentation.presentation.toJSON();
|
|
139
147
|
}
|
|
140
148
|
else {
|
|
149
|
+
// Otherwise we expect it to be a JSON-LD VP
|
|
141
150
|
parsedPresentation = utils_1.JsonTransformer.fromJSON(presentation, vc_1.W3cJsonLdVerifiablePresentation);
|
|
142
151
|
jsonPresentation = parsedPresentation.toJSON();
|
|
143
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DifPresentationExchangeProofFormatService.js","sourceRoot":"","sources":["../../../../../src/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.ts"],"names":[],"mappings":";;;AA2BA,6EAAyF;AACzF,6CAA8C;AAC9C,6CAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"DifPresentationExchangeProofFormatService.js","sourceRoot":"","sources":["../../../../../src/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.ts"],"names":[],"mappings":";;;AA2BA,6EAAyF;AACzF,6CAA8C;AAC9C,6CAAiE;AACjE,kFAG2C;AAC3C,oCAKoB;AACpB,yCAA8C;AAE9C,MAAM,2CAA2C,GAAG,4CAA4C,CAAA;AAChG,MAAM,0CAA0C,GAAG,4CAA4C,CAAA;AAC/F,MAAM,kCAAkC,GAAG,2CAA2C,CAAA;AAEtF,MAAa,sCAAsC;IAAnD;QACkB,cAAS,GAAG,sBAA+B,CAAA;IAuU7D,CAAC;IArUS,2BAA2B,CAAC,YAA0B;QAC5D,OAAO,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,0DAA8B,CAAC,CAAA;IAC/E,CAAC;IAEM,cAAc,CAAC,gBA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AM,WAAW,GAAG,iBAAiB,CAAC,aAAa,EAAkC,CAAA;QAErF,OAAO,IAAA,oBAAY,EAAC,WAAW,CAAC,uBAAuB,EAAE,YAAY,CAAC,CAAA;IACxE,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,+BAA+B;IAC1C,6DAA6D;IAC7D,aAA2B;IAC3B,6DAA6D;IAC7D,QAAmD;QAEnD,OAAO,IAAI,CAAA;IACb,CAAC;IAEO,aAAa,CAAC,IAAa,EAAE,EAAU;QAC7C,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC;YAChC,EAAE;YACF,QAAQ,EAAE,kBAAkB;YAC5B,IAAI,EAAE,IAAI,2BAAc,CAAC;gBACvB,IAAI,EAAE,IAAiB;aACxB,CAAC;SACH,CAAC,CAAA;QAEF,OAAO,UAAU,CAAA;IACnB,CAAC;CACF;AAxUD,wFAwUC"}
|
|
@@ -16,8 +16,6 @@ class MediationRecipientModule {
|
|
|
16
16
|
* Registers the dependencies of the mediator recipient module on the dependency manager.
|
|
17
17
|
*/
|
|
18
18
|
register(dependencyManager, featureRegistry) {
|
|
19
|
-
// Api
|
|
20
|
-
dependencyManager.registerContextScoped(MediationRecipientApi_1.MediationRecipientApi);
|
|
21
19
|
// Config
|
|
22
20
|
dependencyManager.registerInstance(MediationRecipientModuleConfig_1.MediationRecipientModuleConfig, this.config);
|
|
23
21
|
// Services
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediationRecipientModule.js","sourceRoot":"","sources":["../../../src/modules/routing/MediationRecipientModule.ts"],"names":[],"mappings":";;;AAIA,+CAA6C;AAE7C,mEAA+D;AAC/D,qFAAiF;AACjF,qCAAwC;AACxC,6CAAkD;AAClD,yCAAsE;AAEtE,MAAa,wBAAwB;IAInC,YAAmB,MAA8C;QAFjD,QAAG,GAAG,6CAAqB,CAAA;QAGzC,IAAI,CAAC,MAAM,GAAG,IAAI,+DAA8B,CAAC,MAAM,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,
|
|
1
|
+
{"version":3,"file":"MediationRecipientModule.js","sourceRoot":"","sources":["../../../src/modules/routing/MediationRecipientModule.ts"],"names":[],"mappings":";;;AAIA,+CAA6C;AAE7C,mEAA+D;AAC/D,qFAAiF;AACjF,qCAAwC;AACxC,6CAAkD;AAClD,yCAAsE;AAEtE,MAAa,wBAAwB;IAInC,YAAmB,MAA8C;QAFjD,QAAG,GAAG,6CAAqB,CAAA;QAGzC,IAAI,CAAC,MAAM,GAAG,IAAI,+DAA8B,CAAC,MAAM,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,+DAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE/E,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,oCAAyB,CAAC,CAAA;QAC9D,iBAAiB,CAAC,iBAAiB,CAAC,yBAAc,CAAC,CAAA;QAEnD,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,gCAAmB,CAAC,CAAA;QAExD,WAAW;QACX,eAAe,CAAC,QAAQ,CACtB,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,8CAA8C;YAClD,KAAK,EAAE,CAAC,sBAAa,CAAC,SAAS,CAAC;SACjC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA9BD,4DA8BC"}
|
|
@@ -16,8 +16,6 @@ class MediatorModule {
|
|
|
16
16
|
* Registers the dependencies of the question answer module on the dependency manager.
|
|
17
17
|
*/
|
|
18
18
|
register(dependencyManager, featureRegistry) {
|
|
19
|
-
// Api
|
|
20
|
-
dependencyManager.registerContextScoped(MediatorApi_1.MediatorApi);
|
|
21
19
|
// Config
|
|
22
20
|
dependencyManager.registerInstance(MediatorModuleConfig_1.MediatorModuleConfig, this.config);
|
|
23
21
|
// Services
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediatorModule.js","sourceRoot":"","sources":["../../../src/modules/routing/MediatorModule.ts"],"names":[],"mappings":";;;AAIA,+CAA6C;AAE7C,+CAA2C;AAC3C,iEAA6D;AAC7D,qCAAwC;AACxC,6CAA6E;AAC7E,yCAA4C;AAE5C,MAAa,cAAc;IAIzB,YAAmB,MAAoC;QAFvC,QAAG,GAAG,yBAAW,CAAA;QAG/B,IAAI,CAAC,MAAM,GAAG,IAAI,2CAAoB,CAAC,MAAM,CAAC,CAAA;IAChD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,
|
|
1
|
+
{"version":3,"file":"MediatorModule.js","sourceRoot":"","sources":["../../../src/modules/routing/MediatorModule.ts"],"names":[],"mappings":";;;AAIA,+CAA6C;AAE7C,+CAA2C;AAC3C,iEAA6D;AAC7D,qCAAwC;AACxC,6CAA6E;AAC7E,yCAA4C;AAE5C,MAAa,cAAc;IAIzB,YAAmB,MAAoC;QAFvC,QAAG,GAAG,yBAAW,CAAA;QAG/B,IAAI,CAAC,MAAM,GAAG,IAAI,2CAAoB,CAAC,MAAM,CAAC,CAAA;IAChD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,2CAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAErE,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,0BAAe,CAAC,CAAA;QAEpD,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,gCAAmB,CAAC,CAAA;QACxD,iBAAiB,CAAC,iBAAiB,CAAC,sCAAyB,CAAC,CAAA;QAE9D,WAAW;QACX,eAAe,CAAC,QAAQ,CACtB,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,8CAA8C;YAClD,KAAK,EAAE,CAAC,sBAAa,CAAC,QAAQ,CAAC;SAChC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA9BD,wCA8BC"}
|