@sphereon/ssi-types 0.9.1-next.118 → 0.9.1-next.120
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-types",
|
|
3
3
|
"description": "SSI Common Types",
|
|
4
|
-
"version": "0.9.1-next.
|
|
4
|
+
"version": "0.9.1-next.120+198701d",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"Verifiable Credentials",
|
|
39
39
|
"DIDs"
|
|
40
40
|
],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "198701dd4319c030608df1fc33ce25d62870dc43"
|
|
42
42
|
}
|
|
@@ -100,7 +100,7 @@ export class CredentialMapper {
|
|
|
100
100
|
|
|
101
101
|
const presentation = {
|
|
102
102
|
...vp,
|
|
103
|
-
verifiableCredential: vcs, // We overwrite the
|
|
103
|
+
verifiableCredential: vcs, // We overwrite the verifiableCredentials with wrapped versions, making it an InternalVerifiablePresentation. Note: we keep the singular key name of the vc data model
|
|
104
104
|
} as UniformVerifiablePresentation
|
|
105
105
|
return {
|
|
106
106
|
type,
|
package/src/types/vc.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface ICredential {
|
|
|
9
9
|
'@context': ICredentialContextType | ICredentialContextType[]
|
|
10
10
|
type: string[]
|
|
11
11
|
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[]
|
|
12
|
-
// If iss is present, the value MUST be used to set the issuer property of the new credential JSON object or the
|
|
12
|
+
// If iss is present, the value MUST be used to set the issuer property of the new credential JSON object or the holderDID property of the new presentation JSON object.
|
|
13
13
|
issuer: IIssuerId | IIssuer
|
|
14
14
|
// If nbf is present, the UNIX timestamp MUST be converted to an [XMLSCHEMA11-2] date-time, and MUST be used to set the value of the issuanceDate property of the new JSON object.
|
|
15
15
|
issuanceDate: string
|