@twin.org/standards-w3c-did 0.0.3-next.3 → 0.0.3-next.30
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/dist/es/dataTypes/didDataTypes.js +40 -0
- package/dist/es/dataTypes/didDataTypes.js.map +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/didContexts.js +60 -8
- package/dist/es/models/didContexts.js.map +1 -1
- package/dist/es/models/didTypes.js +4 -0
- package/dist/es/models/didTypes.js.map +1 -1
- package/dist/es/schemas/DidDocument.json +158 -0
- package/dist/es/schemas/DidVerifiableCredential.json +13 -0
- package/dist/es/schemas/DidVerifiablePresentation.json +13 -0
- package/dist/types/dataTypes/didDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/didContexts.d.ts +60 -8
- package/dist/types/models/didTypes.d.ts +4 -0
- package/docs/changelog.md +189 -0
- package/docs/reference/classes/DidDataTypes.md +25 -0
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IDidDocumentVerificationMethod.md +1 -1
- package/docs/reference/variables/DidContexts.md +78 -8
- package/docs/reference/variables/DidTypes.md +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { DataTypeHelper } from "@twin.org/data-core";
|
|
4
|
+
import { DidContexts } from "../models/didContexts.js";
|
|
5
|
+
import { DidTypes } from "../models/didTypes.js";
|
|
6
|
+
import DidDocumentSchema from "../schemas/DidDocument.json" with { type: "json" };
|
|
7
|
+
import DidVerifiableCredentialSchema from "../schemas/DidVerifiableCredential.json" with { type: "json" };
|
|
8
|
+
import DidVerifiablePresentationSchema from "../schemas/DidVerifiablePresentation.json" with { type: "json" };
|
|
9
|
+
/**
|
|
10
|
+
* Data Type registration for DID.
|
|
11
|
+
*/
|
|
12
|
+
export class DidDataTypes {
|
|
13
|
+
/**
|
|
14
|
+
* Register all the data types.
|
|
15
|
+
*/
|
|
16
|
+
static registerTypes() {
|
|
17
|
+
const types = [
|
|
18
|
+
{
|
|
19
|
+
type: DidTypes.Document,
|
|
20
|
+
schema: DidDocumentSchema
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
DataTypeHelper.registerTypes(DidContexts.Namespace, undefined, types);
|
|
24
|
+
DataTypeHelper.registerTypes(DidContexts.JsonSchemaNamespace, undefined, types);
|
|
25
|
+
const typesCredentials = [
|
|
26
|
+
{
|
|
27
|
+
type: DidTypes.VerifiableCredential,
|
|
28
|
+
schema: DidVerifiableCredentialSchema
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: DidTypes.VerifiablePresentation,
|
|
32
|
+
schema: DidVerifiablePresentationSchema
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
DataTypeHelper.registerTypes(DidContexts.NamespaceVCv1, undefined, typesCredentials);
|
|
36
|
+
DataTypeHelper.registerTypes(DidContexts.NamespaceVCv2, undefined, typesCredentials);
|
|
37
|
+
DataTypeHelper.registerTypes(DidContexts.JsonSchemaNamespace, undefined, typesCredentials);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=didDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"didDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/didDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,iBAAiB,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClF,OAAO,6BAA6B,MAAM,yCAAyC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1G,OAAO,+BAA+B,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAE9G;;GAEG;AACH,MAAM,OAAgB,YAAY;IACjC;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,QAAQ,CAAC,QAAQ;gBACvB,MAAM,EAAE,iBAAiB;aACzB;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACtE,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,mBAAmB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAEhF,MAAM,gBAAgB,GAAG;YACxB;gBACC,IAAI,EAAE,QAAQ,CAAC,oBAAoB;gBACnC,MAAM,EAAE,6BAA6B;aACrC;YACD;gBACC,IAAI,EAAE,QAAQ,CAAC,sBAAsB;gBACrC,MAAM,EAAE,+BAA+B;aACvC;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;QACrF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;QACrF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,mBAAmB,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAC5F,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DidContexts } from \"../models/didContexts.js\";\nimport { DidTypes } from \"../models/didTypes.js\";\nimport DidDocumentSchema from \"../schemas/DidDocument.json\" with { type: \"json\" };\nimport DidVerifiableCredentialSchema from \"../schemas/DidVerifiableCredential.json\" with { type: \"json\" };\nimport DidVerifiablePresentationSchema from \"../schemas/DidVerifiablePresentation.json\" with { type: \"json\" };\n\n/**\n * Data Type registration for DID.\n */\nexport abstract class DidDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DidTypes.Document,\n\t\t\t\tschema: DidDocumentSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DidContexts.Namespace, undefined, types);\n\t\tDataTypeHelper.registerTypes(DidContexts.JsonSchemaNamespace, undefined, types);\n\n\t\tconst typesCredentials = [\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredential,\n\t\t\t\tschema: DidVerifiableCredentialSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentation,\n\t\t\t\tschema: DidVerifiablePresentationSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DidContexts.NamespaceVCv1, undefined, typesCredentials);\n\t\tDataTypeHelper.registerTypes(DidContexts.NamespaceVCv2, undefined, typesCredentials);\n\t\tDataTypeHelper.registerTypes(DidContexts.JsonSchemaNamespace, undefined, typesCredentials);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/didContexts.js\";\nexport * from \"./models/didCryptoSuites.js\";\nexport * from \"./models/didTypes.js\";\nexport * from \"./models/didVerificationMethodType.js\";\nexport * from \"./models/IDataIntegrityProof.js\";\nexport * from \"./models/IDidCredentialSchema.js\";\nexport * from \"./models/IDidCredentialStatus.js\";\nexport * from \"./models/IDidDocument.js\";\nexport * from \"./models/IDidDocumentVerificationMethod.js\";\nexport * from \"./models/IDidLabel.js\";\nexport * from \"./models/IDidPresentationVerification.js\";\nexport * from \"./models/IDidService.js\";\nexport * from \"./models/IDidVerifiableCredential.js\";\nexport * from \"./models/IDidVerifiableCredentialCommon.js\";\nexport * from \"./models/IDidVerifiableCredentialV1.js\";\nexport * from \"./models/IDidVerifiableCredentialV2.js\";\nexport * from \"./models/IDidVerifiablePresentation.js\";\nexport * from \"./models/IDidVerifiablePresentationCommon.js\";\nexport * from \"./models/IDidVerifiablePresentationV1.js\";\nexport * from \"./models/IDidVerifiablePresentationV2.js\";\nexport * from \"./models/IJsonWebSignature2020Proof.js\";\nexport * from \"./models/IMultikey.js\";\nexport * from \"./models/IProof.js\";\nexport * from \"./models/IProofSignerVerifier.js\";\nexport * from \"./models/proofTypes.js\";\nexport * from \"./signerVerifiers/dataIntegrityProofSignerVerifier.js\";\nexport * from \"./signerVerifiers/jsonWebSignature2020SignerVerifier.js\";\nexport * from \"./utils/multikeyHelper.js\";\nexport * from \"./utils/proofHelper.js\";\nexport * from \"./utils/verifiableCredentialHelper.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/didDataTypes.js\";\nexport * from \"./models/didContexts.js\";\nexport * from \"./models/didCryptoSuites.js\";\nexport * from \"./models/didTypes.js\";\nexport * from \"./models/didVerificationMethodType.js\";\nexport * from \"./models/IDataIntegrityProof.js\";\nexport * from \"./models/IDidCredentialSchema.js\";\nexport * from \"./models/IDidCredentialStatus.js\";\nexport * from \"./models/IDidDocument.js\";\nexport * from \"./models/IDidDocumentVerificationMethod.js\";\nexport * from \"./models/IDidLabel.js\";\nexport * from \"./models/IDidPresentationVerification.js\";\nexport * from \"./models/IDidService.js\";\nexport * from \"./models/IDidVerifiableCredential.js\";\nexport * from \"./models/IDidVerifiableCredentialCommon.js\";\nexport * from \"./models/IDidVerifiableCredentialV1.js\";\nexport * from \"./models/IDidVerifiableCredentialV2.js\";\nexport * from \"./models/IDidVerifiablePresentation.js\";\nexport * from \"./models/IDidVerifiablePresentationCommon.js\";\nexport * from \"./models/IDidVerifiablePresentationV1.js\";\nexport * from \"./models/IDidVerifiablePresentationV2.js\";\nexport * from \"./models/IJsonWebSignature2020Proof.js\";\nexport * from \"./models/IMultikey.js\";\nexport * from \"./models/IProof.js\";\nexport * from \"./models/IProofSignerVerifier.js\";\nexport * from \"./models/proofTypes.js\";\nexport * from \"./signerVerifiers/dataIntegrityProofSignerVerifier.js\";\nexport * from \"./signerVerifiers/jsonWebSignature2020SignerVerifier.js\";\nexport * from \"./utils/multikeyHelper.js\";\nexport * from \"./utils/proofHelper.js\";\nexport * from \"./utils/verifiableCredentialHelper.js\";\n"]}
|
|
@@ -6,35 +6,87 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const DidContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The canonical RDF namespace URI for DID.
|
|
10
|
+
*/
|
|
11
|
+
Namespace: "https://www.w3.org/ns/did/v1",
|
|
12
|
+
/**
|
|
13
|
+
* The value to use in JSON-LD context for DID.
|
|
14
|
+
* Note: Context matches Namespace (no trailing slash) as per W3C DID specification.
|
|
15
|
+
* The W3C DID JSON-LD context URL format does not include a trailing slash.
|
|
10
16
|
*/
|
|
11
17
|
Context: "https://www.w3.org/ns/did/v1",
|
|
12
18
|
/**
|
|
13
|
-
* The
|
|
19
|
+
* The namespace location of the hosted version of the JSON Schema.
|
|
20
|
+
*/
|
|
21
|
+
JsonSchemaNamespace: "https://schema.twindev.org/w3c-did/",
|
|
22
|
+
/**
|
|
23
|
+
* The canonical RDF namespace URI for DID VC v1.
|
|
24
|
+
*/
|
|
25
|
+
NamespaceVCv1: "https://www.w3.org/2018/credentials/v1",
|
|
26
|
+
/**
|
|
27
|
+
* The value to use in JSON-LD context for DID VC v1.
|
|
28
|
+
* Note: ContextVCv1 matches NamespaceVCv1 (no trailing slash) as per W3C Verifiable Credentials v1 specification.
|
|
29
|
+
* The W3C VC v1 JSON-LD context URL format does not include a trailing slash.
|
|
14
30
|
*/
|
|
15
31
|
ContextVCv1: "https://www.w3.org/2018/credentials/v1",
|
|
16
32
|
/**
|
|
17
|
-
* The
|
|
33
|
+
* The canonical RDF namespace URI for DID VC v2.
|
|
34
|
+
*/
|
|
35
|
+
NamespaceVCv2: "https://www.w3.org/ns/credentials/v2",
|
|
36
|
+
/**
|
|
37
|
+
* The value to use in JSON-LD context for DID VC v2.
|
|
38
|
+
* Note: ContextVCv2 matches NamespaceVCv2 (no trailing slash) as per W3C Verifiable Credentials v2 specification.
|
|
39
|
+
* The W3C VC v2 JSON-LD context URL format does not include a trailing slash.
|
|
18
40
|
*/
|
|
19
41
|
ContextVCv2: "https://www.w3.org/ns/credentials/v2",
|
|
20
42
|
/**
|
|
21
|
-
* The
|
|
43
|
+
* The canonical RDF namespace URI for security ed25519 suites.
|
|
44
|
+
*/
|
|
45
|
+
NamespaceSecurityEd25519: "https://w3id.org/security/suites/ed25519-2020/v1",
|
|
46
|
+
/**
|
|
47
|
+
* The value to use in JSON-LD context for security ed25519 suites.
|
|
48
|
+
* Note: ContextSecurityEd25519 matches NamespaceSecurityEd25519 (no trailing slash) as per W3C Security Suites specification.
|
|
49
|
+
* The ed25519-2020 JSON-LD context URL format does not include a trailing slash.
|
|
22
50
|
*/
|
|
23
51
|
ContextSecurityEd25519: "https://w3id.org/security/suites/ed25519-2020/v1",
|
|
24
52
|
/**
|
|
25
|
-
* The
|
|
53
|
+
* The canonical RDF namespace URI for security jws-2020 suites.
|
|
54
|
+
*/
|
|
55
|
+
NamespaceSecurityJws2020: "https://w3id.org/security/suites/jws-2020/v1",
|
|
56
|
+
/**
|
|
57
|
+
* The value to use in JSON-LD context for security jws-2020 suites.
|
|
58
|
+
* Note: ContextSecurityJws2020 matches NamespaceSecurityJws2020 (no trailing slash) as per W3C Security Suites specification.
|
|
59
|
+
* The jws-2020 JSON-LD context URL format does not include a trailing slash.
|
|
26
60
|
*/
|
|
27
61
|
ContextSecurityJws2020: "https://w3id.org/security/suites/jws-2020/v1",
|
|
28
62
|
/**
|
|
29
|
-
* The
|
|
63
|
+
* The canonical RDF namespace URI for VC Data Integrity.
|
|
64
|
+
*/
|
|
65
|
+
NamespaceDataIntegrity: "https://www.w3.org/ns/credentials/v2",
|
|
66
|
+
/**
|
|
67
|
+
* The value to use in JSON-LD context for VC Data Integrity.
|
|
68
|
+
* Note: ContextDataIntegrity matches NamespaceDataIntegrity (no trailing slash) as per W3C Data Integrity specification.
|
|
69
|
+
* The Data Integrity JSON-LD context URL format does not include a trailing slash.
|
|
30
70
|
*/
|
|
31
71
|
ContextDataIntegrity: "https://www.w3.org/ns/credentials/v2",
|
|
32
72
|
/**
|
|
33
|
-
* The
|
|
73
|
+
* The canonical RDF namespace URI for controller identifiers.
|
|
74
|
+
*/
|
|
75
|
+
NamespaceControllerIdentifiers: "https://www.w3.org/ns/cid/v1",
|
|
76
|
+
/**
|
|
77
|
+
* The value to use in JSON-LD context for controller identifiers.
|
|
78
|
+
* Note: ContextControllerIdentifiers matches NamespaceControllerIdentifiers (no trailing slash) as per W3C Controller Identifiers specification.
|
|
79
|
+
* The Controller Identifiers JSON-LD context URL format does not include a trailing slash.
|
|
34
80
|
*/
|
|
35
81
|
ContextControllerIdentifiers: "https://www.w3.org/ns/cid/v1",
|
|
36
82
|
/**
|
|
37
|
-
* The
|
|
83
|
+
* The canonical RDF namespace URI for security multikey suites.
|
|
84
|
+
*/
|
|
85
|
+
NamespaceSecurityMultikey: "https://w3id.org/security/multikey/v1",
|
|
86
|
+
/**
|
|
87
|
+
* The value to use in JSON-LD context for security multikey suites.
|
|
88
|
+
* Note: ContextSecurityMultikey matches NamespaceSecurityMultikey (no trailing slash) as per W3C Security Suites specification.
|
|
89
|
+
* The multikey JSON-LD context URL format does not include a trailing slash.
|
|
38
90
|
*/
|
|
39
91
|
ContextSecurityMultikey: "https://w3id.org/security/multikey/v1"
|
|
40
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"didContexts.js","sourceRoot":"","sources":["../../../src/models/didContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,8BAA8B;IAEvC;;OAEG;IACH,WAAW,EAAE,wCAAwC;IAErD;;OAEG;IACH,WAAW,EAAE,sCAAsC;IAEnD;;OAEG;IACH,sBAAsB,EAAE,kDAAkD;IAE1E;;OAEG;IACH,sBAAsB,EAAE,8CAA8C;IAEtE;;OAEG;IACH,oBAAoB,EAAE,sCAAsC;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,uBAAuB,EAAE,uCAAuC;CACvD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for DIDs.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DidContexts = {\n\t/**\n\t * The
|
|
1
|
+
{"version":3,"file":"didContexts.js","sourceRoot":"","sources":["../../../src/models/didContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,8BAA8B;IAEzC;;;;OAIG;IACH,OAAO,EAAE,8BAA8B;IAEvC;;OAEG;IACH,mBAAmB,EAAE,qCAAqC;IAE1D;;OAEG;IACH,aAAa,EAAE,wCAAwC;IAEvD;;;;OAIG;IACH,WAAW,EAAE,wCAAwC;IAErD;;OAEG;IACH,aAAa,EAAE,sCAAsC;IAErD;;;;OAIG;IACH,WAAW,EAAE,sCAAsC;IAEnD;;OAEG;IACH,wBAAwB,EAAE,kDAAkD;IAE5E;;;;OAIG;IACH,sBAAsB,EAAE,kDAAkD;IAE1E;;OAEG;IACH,wBAAwB,EAAE,8CAA8C;IAExE;;;;OAIG;IACH,sBAAsB,EAAE,8CAA8C;IAEtE;;OAEG;IACH,sBAAsB,EAAE,sCAAsC;IAE9D;;;;OAIG;IACH,oBAAoB,EAAE,sCAAsC;IAE5D;;OAEG;IACH,8BAA8B,EAAE,8BAA8B;IAE9D;;;;OAIG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,yBAAyB,EAAE,uCAAuC;IAElE;;;;OAIG;IACH,uBAAuB,EAAE,uCAAuC;CACvD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for DIDs.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DidContexts = {\n\t/**\n\t * The canonical RDF namespace URI for DID.\n\t */\n\tNamespace: \"https://www.w3.org/ns/did/v1\",\n\n\t/**\n\t * The value to use in JSON-LD context for DID.\n\t * Note: Context matches Namespace (no trailing slash) as per W3C DID specification.\n\t * The W3C DID JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContext: \"https://www.w3.org/ns/did/v1\",\n\n\t/**\n\t * The namespace location of the hosted version of the JSON Schema.\n\t */\n\tJsonSchemaNamespace: \"https://schema.twindev.org/w3c-did/\",\n\n\t/**\n\t * The canonical RDF namespace URI for DID VC v1.\n\t */\n\tNamespaceVCv1: \"https://www.w3.org/2018/credentials/v1\",\n\n\t/**\n\t * The value to use in JSON-LD context for DID VC v1.\n\t * Note: ContextVCv1 matches NamespaceVCv1 (no trailing slash) as per W3C Verifiable Credentials v1 specification.\n\t * The W3C VC v1 JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextVCv1: \"https://www.w3.org/2018/credentials/v1\",\n\n\t/**\n\t * The canonical RDF namespace URI for DID VC v2.\n\t */\n\tNamespaceVCv2: \"https://www.w3.org/ns/credentials/v2\",\n\n\t/**\n\t * The value to use in JSON-LD context for DID VC v2.\n\t * Note: ContextVCv2 matches NamespaceVCv2 (no trailing slash) as per W3C Verifiable Credentials v2 specification.\n\t * The W3C VC v2 JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextVCv2: \"https://www.w3.org/ns/credentials/v2\",\n\n\t/**\n\t * The canonical RDF namespace URI for security ed25519 suites.\n\t */\n\tNamespaceSecurityEd25519: \"https://w3id.org/security/suites/ed25519-2020/v1\",\n\n\t/**\n\t * The value to use in JSON-LD context for security ed25519 suites.\n\t * Note: ContextSecurityEd25519 matches NamespaceSecurityEd25519 (no trailing slash) as per W3C Security Suites specification.\n\t * The ed25519-2020 JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextSecurityEd25519: \"https://w3id.org/security/suites/ed25519-2020/v1\",\n\n\t/**\n\t * The canonical RDF namespace URI for security jws-2020 suites.\n\t */\n\tNamespaceSecurityJws2020: \"https://w3id.org/security/suites/jws-2020/v1\",\n\n\t/**\n\t * The value to use in JSON-LD context for security jws-2020 suites.\n\t * Note: ContextSecurityJws2020 matches NamespaceSecurityJws2020 (no trailing slash) as per W3C Security Suites specification.\n\t * The jws-2020 JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextSecurityJws2020: \"https://w3id.org/security/suites/jws-2020/v1\",\n\n\t/**\n\t * The canonical RDF namespace URI for VC Data Integrity.\n\t */\n\tNamespaceDataIntegrity: \"https://www.w3.org/ns/credentials/v2\",\n\n\t/**\n\t * The value to use in JSON-LD context for VC Data Integrity.\n\t * Note: ContextDataIntegrity matches NamespaceDataIntegrity (no trailing slash) as per W3C Data Integrity specification.\n\t * The Data Integrity JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextDataIntegrity: \"https://www.w3.org/ns/credentials/v2\",\n\n\t/**\n\t * The canonical RDF namespace URI for controller identifiers.\n\t */\n\tNamespaceControllerIdentifiers: \"https://www.w3.org/ns/cid/v1\",\n\n\t/**\n\t * The value to use in JSON-LD context for controller identifiers.\n\t * Note: ContextControllerIdentifiers matches NamespaceControllerIdentifiers (no trailing slash) as per W3C Controller Identifiers specification.\n\t * The Controller Identifiers JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextControllerIdentifiers: \"https://www.w3.org/ns/cid/v1\",\n\n\t/**\n\t * The canonical RDF namespace URI for security multikey suites.\n\t */\n\tNamespaceSecurityMultikey: \"https://w3id.org/security/multikey/v1\",\n\n\t/**\n\t * The value to use in JSON-LD context for security multikey suites.\n\t * Note: ContextSecurityMultikey matches NamespaceSecurityMultikey (no trailing slash) as per W3C Security Suites specification.\n\t * The multikey JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContextSecurityMultikey: \"https://w3id.org/security/multikey/v1\"\n} as const;\n\n/**\n * The contexts for DIDs.\n */\nexport type DidContexts = (typeof DidContexts)[keyof typeof DidContexts];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"didTypes.js","sourceRoot":"","sources":["../../../src/models/didTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,0BAA0B,EAAE,4BAA4B;IAExD;;OAEG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,QAAQ,EAAE,UAAU;CACX,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for DIDs.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DidTypes = {\n\t/**\n\t * The type for Verifiable Credential.\n\t */\n\tVerifiableCredential: \"VerifiableCredential\",\n\n\t/**\n\t * The type for Verifiable Presentation.\n\t */\n\tVerifiablePresentation: \"VerifiablePresentation\",\n\n\t/**\n\t * The type for Ed25519VerificationKey2020.\n\t */\n\tEd25519VerificationKey2020: \"Ed25519VerificationKey2020\",\n\n\t/**\n\t * The type for JsonWebKey2020.\n\t */\n\tJsonWebKey2020: \"JsonWebKey2020\",\n\n\t/**\n\t * The type for LinkedDomains.\n\t */\n\tLinkedDomains: \"LinkedDomains\",\n\n\t/**\n\t * The type for Multikey.\n\t */\n\tMultikey: \"Multikey\"\n} as const;\n\n/**\n * The types for DIDs.\n */\nexport type DidTypes = (typeof DidTypes)[keyof typeof DidTypes];\n"]}
|
|
1
|
+
{"version":3,"file":"didTypes.js","sourceRoot":"","sources":["../../../src/models/didTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,0BAA0B,EAAE,4BAA4B;IAExD;;OAEG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,QAAQ,EAAE,UAAU;CACX,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for DIDs.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DidTypes = {\n\t/**\n\t * The type for Document.\n\t */\n\tDocument: \"Document\",\n\n\t/**\n\t * The type for Verifiable Credential.\n\t */\n\tVerifiableCredential: \"VerifiableCredential\",\n\n\t/**\n\t * The type for Verifiable Presentation.\n\t */\n\tVerifiablePresentation: \"VerifiablePresentation\",\n\n\t/**\n\t * The type for Ed25519VerificationKey2020.\n\t */\n\tEd25519VerificationKey2020: \"Ed25519VerificationKey2020\",\n\n\t/**\n\t * The type for JsonWebKey2020.\n\t */\n\tJsonWebKey2020: \"JsonWebKey2020\",\n\n\t/**\n\t * The type for LinkedDomains.\n\t */\n\tLinkedDomains: \"LinkedDomains\",\n\n\t/**\n\t * The type for Multikey.\n\t */\n\tMultikey: \"Multikey\"\n} as const;\n\n/**\n * The types for DIDs.\n */\nexport type DidTypes = (typeof DidTypes)[keyof typeof DidTypes];\n"]}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-did/DidDocument",
|
|
4
|
+
"description": "Interface describing a DID Document. Spec https://www.w3.org/TR/did-core/#did-document-properties.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "https://www.w3.org/ns/did/v1"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "array",
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"prefixItems": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "https://www.w3.org/ns/did/v1"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"items": {
|
|
23
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"description": "The context for the document."
|
|
28
|
+
},
|
|
29
|
+
"id": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "The id for the document."
|
|
32
|
+
},
|
|
33
|
+
"alsoKnownAs": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"description": "Aliases for the document."
|
|
46
|
+
},
|
|
47
|
+
"controller": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"description": "The controller for the document."
|
|
60
|
+
},
|
|
61
|
+
"verificationMethod": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidDocumentVerificationMethod"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"description": "The verification methods."
|
|
74
|
+
},
|
|
75
|
+
"authentication": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"anyOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidDocumentVerificationMethod"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"description": "The authentication methods."
|
|
88
|
+
},
|
|
89
|
+
"assertionMethod": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidDocumentVerificationMethod"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"description": "The assertion methods."
|
|
102
|
+
},
|
|
103
|
+
"keyAgreement": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"anyOf": [
|
|
107
|
+
{
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidDocumentVerificationMethod"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"description": "The key agreements."
|
|
116
|
+
},
|
|
117
|
+
"capabilityInvocation": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"anyOf": [
|
|
121
|
+
{
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidDocumentVerificationMethod"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"description": "The capability invocations."
|
|
130
|
+
},
|
|
131
|
+
"capabilityDelegation": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"anyOf": [
|
|
135
|
+
{
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidDocumentVerificationMethod"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"description": "The capability delegations."
|
|
144
|
+
},
|
|
145
|
+
"service": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidService"
|
|
149
|
+
},
|
|
150
|
+
"description": "The services."
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"@context",
|
|
155
|
+
"id"
|
|
156
|
+
],
|
|
157
|
+
"additionalProperties": false
|
|
158
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-did/DidVerifiableCredential",
|
|
4
|
+
"description": "Interface describing a verifiable credential.",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredentialV1"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredentialV2"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-did/DidVerifiablePresentation",
|
|
4
|
+
"description": "Interface describing a verifiable presentation.",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiablePresentationV1"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiablePresentationV2"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,35 +3,87 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const DidContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The canonical RDF namespace URI for DID.
|
|
7
|
+
*/
|
|
8
|
+
readonly Namespace: "https://www.w3.org/ns/did/v1";
|
|
9
|
+
/**
|
|
10
|
+
* The value to use in JSON-LD context for DID.
|
|
11
|
+
* Note: Context matches Namespace (no trailing slash) as per W3C DID specification.
|
|
12
|
+
* The W3C DID JSON-LD context URL format does not include a trailing slash.
|
|
7
13
|
*/
|
|
8
14
|
readonly Context: "https://www.w3.org/ns/did/v1";
|
|
9
15
|
/**
|
|
10
|
-
* The
|
|
16
|
+
* The namespace location of the hosted version of the JSON Schema.
|
|
17
|
+
*/
|
|
18
|
+
readonly JsonSchemaNamespace: "https://schema.twindev.org/w3c-did/";
|
|
19
|
+
/**
|
|
20
|
+
* The canonical RDF namespace URI for DID VC v1.
|
|
21
|
+
*/
|
|
22
|
+
readonly NamespaceVCv1: "https://www.w3.org/2018/credentials/v1";
|
|
23
|
+
/**
|
|
24
|
+
* The value to use in JSON-LD context for DID VC v1.
|
|
25
|
+
* Note: ContextVCv1 matches NamespaceVCv1 (no trailing slash) as per W3C Verifiable Credentials v1 specification.
|
|
26
|
+
* The W3C VC v1 JSON-LD context URL format does not include a trailing slash.
|
|
11
27
|
*/
|
|
12
28
|
readonly ContextVCv1: "https://www.w3.org/2018/credentials/v1";
|
|
13
29
|
/**
|
|
14
|
-
* The
|
|
30
|
+
* The canonical RDF namespace URI for DID VC v2.
|
|
31
|
+
*/
|
|
32
|
+
readonly NamespaceVCv2: "https://www.w3.org/ns/credentials/v2";
|
|
33
|
+
/**
|
|
34
|
+
* The value to use in JSON-LD context for DID VC v2.
|
|
35
|
+
* Note: ContextVCv2 matches NamespaceVCv2 (no trailing slash) as per W3C Verifiable Credentials v2 specification.
|
|
36
|
+
* The W3C VC v2 JSON-LD context URL format does not include a trailing slash.
|
|
15
37
|
*/
|
|
16
38
|
readonly ContextVCv2: "https://www.w3.org/ns/credentials/v2";
|
|
17
39
|
/**
|
|
18
|
-
* The
|
|
40
|
+
* The canonical RDF namespace URI for security ed25519 suites.
|
|
41
|
+
*/
|
|
42
|
+
readonly NamespaceSecurityEd25519: "https://w3id.org/security/suites/ed25519-2020/v1";
|
|
43
|
+
/**
|
|
44
|
+
* The value to use in JSON-LD context for security ed25519 suites.
|
|
45
|
+
* Note: ContextSecurityEd25519 matches NamespaceSecurityEd25519 (no trailing slash) as per W3C Security Suites specification.
|
|
46
|
+
* The ed25519-2020 JSON-LD context URL format does not include a trailing slash.
|
|
19
47
|
*/
|
|
20
48
|
readonly ContextSecurityEd25519: "https://w3id.org/security/suites/ed25519-2020/v1";
|
|
21
49
|
/**
|
|
22
|
-
* The
|
|
50
|
+
* The canonical RDF namespace URI for security jws-2020 suites.
|
|
51
|
+
*/
|
|
52
|
+
readonly NamespaceSecurityJws2020: "https://w3id.org/security/suites/jws-2020/v1";
|
|
53
|
+
/**
|
|
54
|
+
* The value to use in JSON-LD context for security jws-2020 suites.
|
|
55
|
+
* Note: ContextSecurityJws2020 matches NamespaceSecurityJws2020 (no trailing slash) as per W3C Security Suites specification.
|
|
56
|
+
* The jws-2020 JSON-LD context URL format does not include a trailing slash.
|
|
23
57
|
*/
|
|
24
58
|
readonly ContextSecurityJws2020: "https://w3id.org/security/suites/jws-2020/v1";
|
|
25
59
|
/**
|
|
26
|
-
* The
|
|
60
|
+
* The canonical RDF namespace URI for VC Data Integrity.
|
|
61
|
+
*/
|
|
62
|
+
readonly NamespaceDataIntegrity: "https://www.w3.org/ns/credentials/v2";
|
|
63
|
+
/**
|
|
64
|
+
* The value to use in JSON-LD context for VC Data Integrity.
|
|
65
|
+
* Note: ContextDataIntegrity matches NamespaceDataIntegrity (no trailing slash) as per W3C Data Integrity specification.
|
|
66
|
+
* The Data Integrity JSON-LD context URL format does not include a trailing slash.
|
|
27
67
|
*/
|
|
28
68
|
readonly ContextDataIntegrity: "https://www.w3.org/ns/credentials/v2";
|
|
29
69
|
/**
|
|
30
|
-
* The
|
|
70
|
+
* The canonical RDF namespace URI for controller identifiers.
|
|
71
|
+
*/
|
|
72
|
+
readonly NamespaceControllerIdentifiers: "https://www.w3.org/ns/cid/v1";
|
|
73
|
+
/**
|
|
74
|
+
* The value to use in JSON-LD context for controller identifiers.
|
|
75
|
+
* Note: ContextControllerIdentifiers matches NamespaceControllerIdentifiers (no trailing slash) as per W3C Controller Identifiers specification.
|
|
76
|
+
* The Controller Identifiers JSON-LD context URL format does not include a trailing slash.
|
|
31
77
|
*/
|
|
32
78
|
readonly ContextControllerIdentifiers: "https://www.w3.org/ns/cid/v1";
|
|
33
79
|
/**
|
|
34
|
-
* The
|
|
80
|
+
* The canonical RDF namespace URI for security multikey suites.
|
|
81
|
+
*/
|
|
82
|
+
readonly NamespaceSecurityMultikey: "https://w3id.org/security/multikey/v1";
|
|
83
|
+
/**
|
|
84
|
+
* The value to use in JSON-LD context for security multikey suites.
|
|
85
|
+
* Note: ContextSecurityMultikey matches NamespaceSecurityMultikey (no trailing slash) as per W3C Security Suites specification.
|
|
86
|
+
* The multikey JSON-LD context URL format does not include a trailing slash.
|
|
35
87
|
*/
|
|
36
88
|
readonly ContextSecurityMultikey: "https://w3id.org/security/multikey/v1";
|
|
37
89
|
};
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,194 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-did - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.30](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.29...standards-w3c-did-v0.0.3-next.30) (2026-02-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.29](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.28...standards-w3c-did-v0.0.3-next.29) (2026-02-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.28](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.27...standards-w3c-did-v0.0.3-next.28) (2026-02-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
## [0.0.3-next.27](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.26...standards-w3c-did-v0.0.3-next.27) (2026-02-03)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Miscellaneous Chores
|
|
28
|
+
|
|
29
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
30
|
+
|
|
31
|
+
## [0.0.3-next.26](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.25...standards-w3c-did-v0.0.3-next.26) (2026-02-02)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Miscellaneous Chores
|
|
35
|
+
|
|
36
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
37
|
+
|
|
38
|
+
## [0.0.3-next.25](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.24...standards-w3c-did-v0.0.3-next.25) (2026-02-02)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* register schemas at hosted location ([#128](https://github.com/twinfoundation/standards/issues/128)) ([ab35298](https://github.com/twinfoundation/standards/commit/ab35298c812d69f043f69c35ab5aa1ac4a6aaa90))
|
|
44
|
+
|
|
45
|
+
## [0.0.3-next.24](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.23...standards-w3c-did-v0.0.3-next.24) (2026-01-30)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Miscellaneous Chores
|
|
49
|
+
|
|
50
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
51
|
+
|
|
52
|
+
## [0.0.3-next.23](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.22...standards-w3c-did-v0.0.3-next.23) (2026-01-30)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Miscellaneous Chores
|
|
56
|
+
|
|
57
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
58
|
+
|
|
59
|
+
## [0.0.3-next.22](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.21...standards-w3c-did-v0.0.3-next.22) (2026-01-29)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Miscellaneous Chores
|
|
63
|
+
|
|
64
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
65
|
+
|
|
66
|
+
## [0.0.3-next.21](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.20...standards-w3c-did-v0.0.3-next.21) (2026-01-23)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Miscellaneous Chores
|
|
70
|
+
|
|
71
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
72
|
+
|
|
73
|
+
## [0.0.3-next.20](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.19...standards-w3c-did-v0.0.3-next.20) (2026-01-21)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Miscellaneous Chores
|
|
77
|
+
|
|
78
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
79
|
+
|
|
80
|
+
## [0.0.3-next.19](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.18...standards-w3c-did-v0.0.3-next.19) (2026-01-21)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Miscellaneous Chores
|
|
84
|
+
|
|
85
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
86
|
+
|
|
87
|
+
## [0.0.3-next.18](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.17...standards-w3c-did-v0.0.3-next.18) (2026-01-21)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Miscellaneous Chores
|
|
91
|
+
|
|
92
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
93
|
+
|
|
94
|
+
## [0.0.3-next.17](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.16...standards-w3c-did-v0.0.3-next.17) (2026-01-21)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Bug Fixes
|
|
98
|
+
|
|
99
|
+
* updating the missing packages ([#114](https://github.com/twinfoundation/standards/issues/114)) ([90b03f8](https://github.com/twinfoundation/standards/commit/90b03f8bdcd81506284d74a445840386c2da2d35))
|
|
100
|
+
|
|
101
|
+
## [0.0.3-next.16](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.15...standards-w3c-did-v0.0.3-next.16) (2026-01-19)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Miscellaneous Chores
|
|
105
|
+
|
|
106
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
107
|
+
|
|
108
|
+
## [0.0.3-next.15](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.14...standards-w3c-did-v0.0.3-next.15) (2026-01-16)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Miscellaneous Chores
|
|
112
|
+
|
|
113
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
114
|
+
|
|
115
|
+
## [0.0.3-next.14](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.13...standards-w3c-did-v0.0.3-next.14) (2026-01-15)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Miscellaneous Chores
|
|
119
|
+
|
|
120
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
121
|
+
|
|
122
|
+
## [0.0.3-next.13](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.12...standards-w3c-did-v0.0.3-next.13) (2026-01-14)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Miscellaneous Chores
|
|
126
|
+
|
|
127
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
128
|
+
|
|
129
|
+
## [0.0.3-next.12](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.11...standards-w3c-did-v0.0.3-next.12) (2026-01-14)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Miscellaneous Chores
|
|
133
|
+
|
|
134
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
135
|
+
|
|
136
|
+
## [0.0.3-next.11](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.10...standards-w3c-did-v0.0.3-next.11) (2026-01-14)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Features
|
|
140
|
+
|
|
141
|
+
* improved namespaces and contexts ([#102](https://github.com/twinfoundation/standards/issues/102)) ([c74c370](https://github.com/twinfoundation/standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
|
|
142
|
+
|
|
143
|
+
## [0.0.3-next.10](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.9...standards-w3c-did-v0.0.3-next.10) (2026-01-13)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Miscellaneous Chores
|
|
147
|
+
|
|
148
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
149
|
+
|
|
150
|
+
## [0.0.3-next.9](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.8...standards-w3c-did-v0.0.3-next.9) (2026-01-09)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Miscellaneous Chores
|
|
154
|
+
|
|
155
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
156
|
+
|
|
157
|
+
## [0.0.3-next.8](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.7...standards-w3c-did-v0.0.3-next.8) (2026-01-08)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Miscellaneous Chores
|
|
161
|
+
|
|
162
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
163
|
+
|
|
164
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.6...standards-w3c-did-v0.0.3-next.7) (2026-01-06)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Miscellaneous Chores
|
|
168
|
+
|
|
169
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
170
|
+
|
|
171
|
+
## [0.0.3-next.6](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.5...standards-w3c-did-v0.0.3-next.6) (2025-12-03)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Miscellaneous Chores
|
|
175
|
+
|
|
176
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
177
|
+
|
|
178
|
+
## [0.0.3-next.5](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.4...standards-w3c-did-v0.0.3-next.5) (2025-11-28)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Miscellaneous Chores
|
|
182
|
+
|
|
183
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
184
|
+
|
|
185
|
+
## [0.0.3-next.4](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.3...standards-w3c-did-v0.0.3-next.4) (2025-11-18)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Miscellaneous Chores
|
|
189
|
+
|
|
190
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
191
|
+
|
|
3
192
|
## [0.0.3-next.3](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.2...standards-w3c-did-v0.0.3-next.3) (2025-11-18)
|
|
4
193
|
|
|
5
194
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Abstract Class: DidDataTypes
|
|
2
|
+
|
|
3
|
+
Data Type registration for DID.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new DidDataTypes**(): `DidDataTypes`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`DidDataTypes`
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### registerTypes()
|
|
18
|
+
|
|
19
|
+
> `static` **registerTypes**(): `void`
|
|
20
|
+
|
|
21
|
+
Register all the data types.
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
`void`
|
package/docs/reference/index.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Classes
|
|
4
4
|
|
|
5
|
+
- [DidDataTypes](classes/DidDataTypes.md)
|
|
5
6
|
- [DataIntegrityProofSignerVerifier](classes/DataIntegrityProofSignerVerifier.md)
|
|
6
7
|
- [JsonWebSignature2020SignerVerifier](classes/JsonWebSignature2020SignerVerifier.md)
|
|
7
8
|
- [MultikeyHelper](classes/MultikeyHelper.md)
|
|
@@ -8,7 +8,7 @@ Interface describing a DID document verification method.
|
|
|
8
8
|
|
|
9
9
|
## Indexable
|
|
10
10
|
|
|
11
|
-
\[`key`: `string`\]: `string` \| `number` \| `boolean` \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `
|
|
11
|
+
\[`key`: `string`\]: `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{\[`key`: `string`\]: `string`; \} \| `null` \| `undefined`
|
|
12
12
|
|
|
13
13
|
## Properties
|
|
14
14
|
|
|
@@ -6,50 +6,120 @@ The contexts for DIDs.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
+
### Namespace
|
|
10
|
+
|
|
11
|
+
> `readonly` **Namespace**: `"https://www.w3.org/ns/did/v1"` = `"https://www.w3.org/ns/did/v1"`
|
|
12
|
+
|
|
13
|
+
The canonical RDF namespace URI for DID.
|
|
14
|
+
|
|
9
15
|
### Context
|
|
10
16
|
|
|
11
17
|
> `readonly` **Context**: `"https://www.w3.org/ns/did/v1"` = `"https://www.w3.org/ns/did/v1"`
|
|
12
18
|
|
|
13
|
-
The context
|
|
19
|
+
The value to use in JSON-LD context for DID.
|
|
20
|
+
Note: Context matches Namespace (no trailing slash) as per W3C DID specification.
|
|
21
|
+
The W3C DID JSON-LD context URL format does not include a trailing slash.
|
|
22
|
+
|
|
23
|
+
### JsonSchemaNamespace
|
|
24
|
+
|
|
25
|
+
> `readonly` **JsonSchemaNamespace**: `"https://schema.twindev.org/w3c-did/"` = `"https://schema.twindev.org/w3c-did/"`
|
|
26
|
+
|
|
27
|
+
The namespace location of the hosted version of the JSON Schema.
|
|
28
|
+
|
|
29
|
+
### NamespaceVCv1
|
|
30
|
+
|
|
31
|
+
> `readonly` **NamespaceVCv1**: `"https://www.w3.org/2018/credentials/v1"` = `"https://www.w3.org/2018/credentials/v1"`
|
|
32
|
+
|
|
33
|
+
The canonical RDF namespace URI for DID VC v1.
|
|
14
34
|
|
|
15
35
|
### ContextVCv1
|
|
16
36
|
|
|
17
37
|
> `readonly` **ContextVCv1**: `"https://www.w3.org/2018/credentials/v1"` = `"https://www.w3.org/2018/credentials/v1"`
|
|
18
38
|
|
|
19
|
-
The context
|
|
39
|
+
The value to use in JSON-LD context for DID VC v1.
|
|
40
|
+
Note: ContextVCv1 matches NamespaceVCv1 (no trailing slash) as per W3C Verifiable Credentials v1 specification.
|
|
41
|
+
The W3C VC v1 JSON-LD context URL format does not include a trailing slash.
|
|
42
|
+
|
|
43
|
+
### NamespaceVCv2
|
|
44
|
+
|
|
45
|
+
> `readonly` **NamespaceVCv2**: `"https://www.w3.org/ns/credentials/v2"` = `"https://www.w3.org/ns/credentials/v2"`
|
|
46
|
+
|
|
47
|
+
The canonical RDF namespace URI for DID VC v2.
|
|
20
48
|
|
|
21
49
|
### ContextVCv2
|
|
22
50
|
|
|
23
51
|
> `readonly` **ContextVCv2**: `"https://www.w3.org/ns/credentials/v2"` = `"https://www.w3.org/ns/credentials/v2"`
|
|
24
52
|
|
|
25
|
-
The context
|
|
53
|
+
The value to use in JSON-LD context for DID VC v2.
|
|
54
|
+
Note: ContextVCv2 matches NamespaceVCv2 (no trailing slash) as per W3C Verifiable Credentials v2 specification.
|
|
55
|
+
The W3C VC v2 JSON-LD context URL format does not include a trailing slash.
|
|
56
|
+
|
|
57
|
+
### NamespaceSecurityEd25519
|
|
58
|
+
|
|
59
|
+
> `readonly` **NamespaceSecurityEd25519**: `"https://w3id.org/security/suites/ed25519-2020/v1"` = `"https://w3id.org/security/suites/ed25519-2020/v1"`
|
|
60
|
+
|
|
61
|
+
The canonical RDF namespace URI for security ed25519 suites.
|
|
26
62
|
|
|
27
63
|
### ContextSecurityEd25519
|
|
28
64
|
|
|
29
65
|
> `readonly` **ContextSecurityEd25519**: `"https://w3id.org/security/suites/ed25519-2020/v1"` = `"https://w3id.org/security/suites/ed25519-2020/v1"`
|
|
30
66
|
|
|
31
|
-
The context
|
|
67
|
+
The value to use in JSON-LD context for security ed25519 suites.
|
|
68
|
+
Note: ContextSecurityEd25519 matches NamespaceSecurityEd25519 (no trailing slash) as per W3C Security Suites specification.
|
|
69
|
+
The ed25519-2020 JSON-LD context URL format does not include a trailing slash.
|
|
70
|
+
|
|
71
|
+
### NamespaceSecurityJws2020
|
|
72
|
+
|
|
73
|
+
> `readonly` **NamespaceSecurityJws2020**: `"https://w3id.org/security/suites/jws-2020/v1"` = `"https://w3id.org/security/suites/jws-2020/v1"`
|
|
74
|
+
|
|
75
|
+
The canonical RDF namespace URI for security jws-2020 suites.
|
|
32
76
|
|
|
33
77
|
### ContextSecurityJws2020
|
|
34
78
|
|
|
35
79
|
> `readonly` **ContextSecurityJws2020**: `"https://w3id.org/security/suites/jws-2020/v1"` = `"https://w3id.org/security/suites/jws-2020/v1"`
|
|
36
80
|
|
|
37
|
-
The context
|
|
81
|
+
The value to use in JSON-LD context for security jws-2020 suites.
|
|
82
|
+
Note: ContextSecurityJws2020 matches NamespaceSecurityJws2020 (no trailing slash) as per W3C Security Suites specification.
|
|
83
|
+
The jws-2020 JSON-LD context URL format does not include a trailing slash.
|
|
84
|
+
|
|
85
|
+
### NamespaceDataIntegrity
|
|
86
|
+
|
|
87
|
+
> `readonly` **NamespaceDataIntegrity**: `"https://www.w3.org/ns/credentials/v2"` = `"https://www.w3.org/ns/credentials/v2"`
|
|
88
|
+
|
|
89
|
+
The canonical RDF namespace URI for VC Data Integrity.
|
|
38
90
|
|
|
39
91
|
### ContextDataIntegrity
|
|
40
92
|
|
|
41
93
|
> `readonly` **ContextDataIntegrity**: `"https://www.w3.org/ns/credentials/v2"` = `"https://www.w3.org/ns/credentials/v2"`
|
|
42
94
|
|
|
43
|
-
The context
|
|
95
|
+
The value to use in JSON-LD context for VC Data Integrity.
|
|
96
|
+
Note: ContextDataIntegrity matches NamespaceDataIntegrity (no trailing slash) as per W3C Data Integrity specification.
|
|
97
|
+
The Data Integrity JSON-LD context URL format does not include a trailing slash.
|
|
98
|
+
|
|
99
|
+
### NamespaceControllerIdentifiers
|
|
100
|
+
|
|
101
|
+
> `readonly` **NamespaceControllerIdentifiers**: `"https://www.w3.org/ns/cid/v1"` = `"https://www.w3.org/ns/cid/v1"`
|
|
102
|
+
|
|
103
|
+
The canonical RDF namespace URI for controller identifiers.
|
|
44
104
|
|
|
45
105
|
### ContextControllerIdentifiers
|
|
46
106
|
|
|
47
107
|
> `readonly` **ContextControllerIdentifiers**: `"https://www.w3.org/ns/cid/v1"` = `"https://www.w3.org/ns/cid/v1"`
|
|
48
108
|
|
|
49
|
-
The context
|
|
109
|
+
The value to use in JSON-LD context for controller identifiers.
|
|
110
|
+
Note: ContextControllerIdentifiers matches NamespaceControllerIdentifiers (no trailing slash) as per W3C Controller Identifiers specification.
|
|
111
|
+
The Controller Identifiers JSON-LD context URL format does not include a trailing slash.
|
|
112
|
+
|
|
113
|
+
### NamespaceSecurityMultikey
|
|
114
|
+
|
|
115
|
+
> `readonly` **NamespaceSecurityMultikey**: `"https://w3id.org/security/multikey/v1"` = `"https://w3id.org/security/multikey/v1"`
|
|
116
|
+
|
|
117
|
+
The canonical RDF namespace URI for security multikey suites.
|
|
50
118
|
|
|
51
119
|
### ContextSecurityMultikey
|
|
52
120
|
|
|
53
121
|
> `readonly` **ContextSecurityMultikey**: `"https://w3id.org/security/multikey/v1"` = `"https://w3id.org/security/multikey/v1"`
|
|
54
122
|
|
|
55
|
-
The context
|
|
123
|
+
The value to use in JSON-LD context for security multikey suites.
|
|
124
|
+
Note: ContextSecurityMultikey matches NamespaceSecurityMultikey (no trailing slash) as per W3C Security Suites specification.
|
|
125
|
+
The multikey JSON-LD context URL format does not include a trailing slash.
|
|
@@ -6,6 +6,12 @@ The types for DIDs.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
+
### Document
|
|
10
|
+
|
|
11
|
+
> `readonly` **Document**: `"Document"` = `"Document"`
|
|
12
|
+
|
|
13
|
+
The type for Document.
|
|
14
|
+
|
|
9
15
|
### VerifiableCredential
|
|
10
16
|
|
|
11
17
|
> `readonly` **VerifiableCredential**: `"VerifiableCredential"` = `"VerifiableCredential"`
|