@enbox/dids 0.0.1
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/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/browser.js +77 -0
- package/dist/browser.js.map +7 -0
- package/dist/browser.mjs +77 -0
- package/dist/browser.mjs.map +7 -0
- package/dist/cjs/index.js +6303 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/utils.js +245 -0
- package/dist/cjs/utils.js.map +7 -0
- package/dist/esm/bearer-did.js +201 -0
- package/dist/esm/bearer-did.js.map +1 -0
- package/dist/esm/did-error.js +62 -0
- package/dist/esm/did-error.js.map +1 -0
- package/dist/esm/did.js +114 -0
- package/dist/esm/did.js.map +1 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/methods/did-dht.js +1241 -0
- package/dist/esm/methods/did-dht.js.map +1 -0
- package/dist/esm/methods/did-ion.js +570 -0
- package/dist/esm/methods/did-ion.js.map +1 -0
- package/dist/esm/methods/did-jwk.js +298 -0
- package/dist/esm/methods/did-jwk.js.map +1 -0
- package/dist/esm/methods/did-key.js +983 -0
- package/dist/esm/methods/did-key.js.map +1 -0
- package/dist/esm/methods/did-method.js +53 -0
- package/dist/esm/methods/did-method.js.map +1 -0
- package/dist/esm/methods/did-web.js +83 -0
- package/dist/esm/methods/did-web.js.map +1 -0
- package/dist/esm/resolver/resolver-cache-level.js +101 -0
- package/dist/esm/resolver/resolver-cache-level.js.map +1 -0
- package/dist/esm/resolver/resolver-cache-noop.js +24 -0
- package/dist/esm/resolver/resolver-cache-noop.js.map +1 -0
- package/dist/esm/resolver/universal-resolver.js +187 -0
- package/dist/esm/resolver/universal-resolver.js.map +1 -0
- package/dist/esm/types/did-core.js +51 -0
- package/dist/esm/types/did-core.js.map +1 -0
- package/dist/esm/types/did-resolution.js +12 -0
- package/dist/esm/types/did-resolution.js.map +1 -0
- package/dist/esm/types/multibase.js +2 -0
- package/dist/esm/types/multibase.js.map +1 -0
- package/dist/esm/types/portable-did.js +2 -0
- package/dist/esm/types/portable-did.js.map +1 -0
- package/dist/esm/utils.js +458 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/types/bearer-did.d.ts +143 -0
- package/dist/types/bearer-did.d.ts.map +1 -0
- package/dist/types/did-error.d.ts +50 -0
- package/dist/types/did-error.d.ts.map +1 -0
- package/dist/types/did.d.ts +125 -0
- package/dist/types/did.d.ts.map +1 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/methods/did-dht.d.ts +682 -0
- package/dist/types/methods/did-dht.d.ts.map +1 -0
- package/dist/types/methods/did-ion.d.ts +492 -0
- package/dist/types/methods/did-ion.d.ts.map +1 -0
- package/dist/types/methods/did-jwk.d.ts +236 -0
- package/dist/types/methods/did-jwk.d.ts.map +1 -0
- package/dist/types/methods/did-key.d.ts +499 -0
- package/dist/types/methods/did-key.d.ts.map +1 -0
- package/dist/types/methods/did-method.d.ts +238 -0
- package/dist/types/methods/did-method.d.ts.map +1 -0
- package/dist/types/methods/did-web.d.ts +37 -0
- package/dist/types/methods/did-web.d.ts.map +1 -0
- package/dist/types/resolver/resolver-cache-level.d.ts +86 -0
- package/dist/types/resolver/resolver-cache-level.d.ts.map +1 -0
- package/dist/types/resolver/resolver-cache-noop.d.ts +9 -0
- package/dist/types/resolver/resolver-cache-noop.d.ts.map +1 -0
- package/dist/types/resolver/universal-resolver.d.ts +109 -0
- package/dist/types/resolver/universal-resolver.d.ts.map +1 -0
- package/dist/types/types/did-core.d.ts +523 -0
- package/dist/types/types/did-core.d.ts.map +1 -0
- package/dist/types/types/did-resolution.d.ts +85 -0
- package/dist/types/types/did-resolution.d.ts.map +1 -0
- package/dist/types/types/multibase.d.ts +28 -0
- package/dist/types/types/multibase.d.ts.map +1 -0
- package/dist/types/types/portable-did.d.ts +59 -0
- package/dist/types/types/portable-did.d.ts.map +1 -0
- package/dist/types/utils.d.ts +378 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/utils.js +28 -0
- package/dist/utils.js.map +7 -0
- package/package.json +116 -0
- package/src/bearer-did.ts +287 -0
- package/src/did-error.ts +75 -0
- package/src/did.ts +186 -0
- package/src/index.ts +21 -0
- package/src/methods/did-dht.ts +1637 -0
- package/src/methods/did-ion.ts +887 -0
- package/src/methods/did-jwk.ts +410 -0
- package/src/methods/did-key.ts +1248 -0
- package/src/methods/did-method.ts +276 -0
- package/src/methods/did-web.ts +96 -0
- package/src/resolver/resolver-cache-level.ts +163 -0
- package/src/resolver/resolver-cache-noop.ts +26 -0
- package/src/resolver/universal-resolver.ts +238 -0
- package/src/types/did-core.ts +580 -0
- package/src/types/did-resolution.ts +93 -0
- package/src/types/multibase.ts +29 -0
- package/src/types/portable-did.ts +64 -0
- package/src/utils.ts +532 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A custom error class for DID-related errors.
|
|
3
|
+
*/
|
|
4
|
+
export class DidError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* Constructs an instance of DidError, a custom error class for handling DID-related errors.
|
|
7
|
+
*
|
|
8
|
+
* @param code - A {@link DidErrorCode} representing the specific type of error encountered.
|
|
9
|
+
* @param message - A human-readable description of the error.
|
|
10
|
+
*/
|
|
11
|
+
constructor(code, message) {
|
|
12
|
+
super(`${code}: ${message}`);
|
|
13
|
+
this.code = code;
|
|
14
|
+
this.name = 'DidError';
|
|
15
|
+
// Ensures that instanceof works properly, the correct prototype chain when using inheritance,
|
|
16
|
+
// and that V8 stack traces (like Chrome, Edge, and Node.js) are more readable and relevant.
|
|
17
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
18
|
+
// Captures the stack trace in V8 engines (like Chrome, Edge, and Node.js).
|
|
19
|
+
// In non-V8 environments, the stack trace will still be captured.
|
|
20
|
+
if (Error.captureStackTrace) {
|
|
21
|
+
Error.captureStackTrace(this, DidError);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* An enumeration of possible DID error codes.
|
|
27
|
+
*/
|
|
28
|
+
export var DidErrorCode;
|
|
29
|
+
(function (DidErrorCode) {
|
|
30
|
+
/** The DID supplied does not conform to valid syntax. */
|
|
31
|
+
DidErrorCode["InvalidDid"] = "invalidDid";
|
|
32
|
+
/** The supplied method name is not supported by the DID method and/or DID resolver implementation. */
|
|
33
|
+
DidErrorCode["MethodNotSupported"] = "methodNotSupported";
|
|
34
|
+
/** An unexpected error occurred during the requested DID operation. */
|
|
35
|
+
DidErrorCode["InternalError"] = "internalError";
|
|
36
|
+
/** The DID document supplied does not conform to valid syntax. */
|
|
37
|
+
DidErrorCode["InvalidDidDocument"] = "invalidDidDocument";
|
|
38
|
+
/** The byte length of a DID document does not match the expected value. */
|
|
39
|
+
DidErrorCode["InvalidDidDocumentLength"] = "invalidDidDocumentLength";
|
|
40
|
+
/** The DID URL supplied to the dereferencing function does not conform to valid syntax. */
|
|
41
|
+
DidErrorCode["InvalidDidUrl"] = "invalidDidUrl";
|
|
42
|
+
/** The given proof of a previous DID is invalid */
|
|
43
|
+
DidErrorCode["InvalidPreviousDidProof"] = "invalidPreviousDidProof";
|
|
44
|
+
/** An invalid public key is detected during a DID operation. */
|
|
45
|
+
DidErrorCode["InvalidPublicKey"] = "invalidPublicKey";
|
|
46
|
+
/** The byte length of a public key does not match the expected value. */
|
|
47
|
+
DidErrorCode["InvalidPublicKeyLength"] = "invalidPublicKeyLength";
|
|
48
|
+
/** An invalid public key type was detected during a DID operation. */
|
|
49
|
+
DidErrorCode["InvalidPublicKeyType"] = "invalidPublicKeyType";
|
|
50
|
+
/** Verification of a signature failed during a DID operation. */
|
|
51
|
+
DidErrorCode["InvalidSignature"] = "invalidSignature";
|
|
52
|
+
/** The DID resolver was unable to find the DID document resulting from the resolution request. */
|
|
53
|
+
DidErrorCode["NotFound"] = "notFound";
|
|
54
|
+
/**
|
|
55
|
+
* The representation requested via the `accept` input metadata property is not supported by the
|
|
56
|
+
* DID method and/or DID resolver implementation.
|
|
57
|
+
*/
|
|
58
|
+
DidErrorCode["RepresentationNotSupported"] = "representationNotSupported";
|
|
59
|
+
/** The type of a public key is not supported by the DID method and/or DID resolver implementation. */
|
|
60
|
+
DidErrorCode["UnsupportedPublicKeyType"] = "unsupportedPublicKeyType";
|
|
61
|
+
})(DidErrorCode || (DidErrorCode = {}));
|
|
62
|
+
//# sourceMappingURL=did-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"did-error.js","sourceRoot":"","sources":["../../src/did-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAK;IACjC;;;;;OAKG;IACH,YAAmB,IAAkB,EAAE,OAAe;QACpD,KAAK,CAAC,GAAG,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC;QADZ,SAAI,GAAJ,IAAI,CAAc;QAEnC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QAEvB,8FAA8F;QAC9F,4FAA4F;QAC5F,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAElD,2EAA2E;QAC3E,kEAAkE;QAClE,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,YA6CX;AA7CD,WAAY,YAAY;IACtB,yDAAyD;IACzD,yCAAyB,CAAA;IAEzB,sGAAsG;IACtG,yDAAyC,CAAA;IAEzC,uEAAuE;IACvE,+CAA+B,CAAA;IAE/B,kEAAkE;IAClE,yDAAyC,CAAA;IAEzC,2EAA2E;IAC3E,qEAAqD,CAAA;IAErD,2FAA2F;IAC3F,+CAA+B,CAAA;IAE/B,mDAAmD;IACnD,mEAAmD,CAAA;IAEnD,gEAAgE;IAChE,qDAAqC,CAAA;IAErC,yEAAyE;IACzE,iEAAiD,CAAA;IAEjD,sEAAsE;IACtE,6DAA6C,CAAA;IAE7C,iEAAiE;IACjE,qDAAqC,CAAA;IAErC,kGAAkG;IAClG,qCAAqB,CAAA;IAErB;;;OAGG;IACH,yEAAyD,CAAA;IAEzD,sGAAsG;IACtG,qEAAqD,CAAA;AACvD,CAAC,EA7CW,YAAY,KAAZ,YAAY,QA6CvB"}
|
package/dist/esm/did.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `Did` class represents a Decentralized Identifier (DID) Uniform Resource Identifier (URI).
|
|
3
|
+
*
|
|
4
|
+
* This class provides a method for parsing a DID URI string into its component parts, as well as a
|
|
5
|
+
* method for serializing a DID URI object into a string.
|
|
6
|
+
*
|
|
7
|
+
* A DID URI is composed of the following components:
|
|
8
|
+
* - scheme
|
|
9
|
+
* - method
|
|
10
|
+
* - id
|
|
11
|
+
* - path
|
|
12
|
+
* - query
|
|
13
|
+
* - fragment
|
|
14
|
+
* - params
|
|
15
|
+
*
|
|
16
|
+
* @see {@link https://www.w3.org/TR/did-core/#did-syntax | DID Core Specification, § DID Syntax}
|
|
17
|
+
*/
|
|
18
|
+
export class Did {
|
|
19
|
+
/**
|
|
20
|
+
* Constructs a new `Did` instance from individual components.
|
|
21
|
+
*
|
|
22
|
+
* @param params - An object containing the parameters to be included in the DID URI.
|
|
23
|
+
* @param params.method - The name of the DID method.
|
|
24
|
+
* @param params.id - The DID method identifier.
|
|
25
|
+
* @param params.path - Optional. The path component of the DID URI.
|
|
26
|
+
* @param params.query - Optional. The query component of the DID URI.
|
|
27
|
+
* @param params.fragment - Optional. The fragment component of the DID URI.
|
|
28
|
+
* @param params.params - Optional. The query parameters in the DID URI.
|
|
29
|
+
*/
|
|
30
|
+
constructor({ method, id, path, query, fragment, params }) {
|
|
31
|
+
this.uri = `did:${method}:${id}`;
|
|
32
|
+
this.method = method;
|
|
33
|
+
this.id = id;
|
|
34
|
+
this.path = path;
|
|
35
|
+
this.query = query;
|
|
36
|
+
this.fragment = fragment;
|
|
37
|
+
this.params = params;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Parses a DID URI string into its individual components.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const did = Did.parse('did:example:123?service=agent&relativeRef=/credentials#degree');
|
|
45
|
+
*
|
|
46
|
+
* console.log(did.uri) // Output: 'did:example:123'
|
|
47
|
+
* console.log(did.method) // Output: 'example'
|
|
48
|
+
* console.log(did.id) // Output: '123'
|
|
49
|
+
* console.log(did.query) // Output: 'service=agent&relativeRef=/credentials'
|
|
50
|
+
* console.log(did.fragment) // Output: 'degree'
|
|
51
|
+
* console.log(did.params) // Output: { service: 'agent', relativeRef: '/credentials' }
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @params didUri - The DID URI string to be parsed.
|
|
55
|
+
* @returns A `Did` object representing the parsed DID URI, or `null` if the input string is not a valid DID URI.
|
|
56
|
+
*/
|
|
57
|
+
static parse(didUri) {
|
|
58
|
+
// Return null if the input string is empty or not provided.
|
|
59
|
+
if (!didUri)
|
|
60
|
+
return null;
|
|
61
|
+
// Execute the regex pattern on the input string to extract URI components.
|
|
62
|
+
const match = Did.DID_URI_PATTERN.exec(didUri);
|
|
63
|
+
// If the pattern does not match, or if the required groups are not found, return null.
|
|
64
|
+
if (!match || !match.groups)
|
|
65
|
+
return null;
|
|
66
|
+
// Extract the method, id, params, path, query, and fragment from the regex match groups.
|
|
67
|
+
const { method, id, path, query, fragment } = match.groups;
|
|
68
|
+
// Initialize a new Did object with the uri, method and id.
|
|
69
|
+
const did = {
|
|
70
|
+
uri: `did:${method}:${id}`,
|
|
71
|
+
method,
|
|
72
|
+
id,
|
|
73
|
+
};
|
|
74
|
+
// If path is present, add it to the Did object.
|
|
75
|
+
if (path)
|
|
76
|
+
did.path = path;
|
|
77
|
+
// If query is present, add it to the Did object, removing the leading '?'.
|
|
78
|
+
if (query)
|
|
79
|
+
did.query = query.slice(1);
|
|
80
|
+
// If fragment is present, add it to the Did object, removing the leading '#'.
|
|
81
|
+
if (fragment)
|
|
82
|
+
did.fragment = fragment.slice(1);
|
|
83
|
+
// If query params are present, parse them into a key-value object and add to the Did object.
|
|
84
|
+
if (query) {
|
|
85
|
+
const parsedParams = {};
|
|
86
|
+
// Split the query string by '&' to get individual parameter strings.
|
|
87
|
+
const paramPairs = query.slice(1).split('&');
|
|
88
|
+
for (const pair of paramPairs) {
|
|
89
|
+
// Split each parameter string by '=' to separate keys and values.
|
|
90
|
+
const [key, value] = pair.split('=');
|
|
91
|
+
parsedParams[key] = value;
|
|
92
|
+
}
|
|
93
|
+
did.params = parsedParams;
|
|
94
|
+
}
|
|
95
|
+
return did;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** Regular expression pattern for matching the method component of a DID URI. */
|
|
99
|
+
Did.METHOD_PATTERN = '([a-z0-9]+)';
|
|
100
|
+
/** Regular expression pattern for matching percent-encoded characters in a method identifier. */
|
|
101
|
+
Did.PCT_ENCODED_PATTERN = '(?:%[0-9a-fA-F]{2})';
|
|
102
|
+
/** Regular expression pattern for matching the characters allowed in a method identifier. */
|
|
103
|
+
Did.ID_CHAR_PATTERN = `(?:[a-zA-Z0-9._-]|${Did.PCT_ENCODED_PATTERN})`;
|
|
104
|
+
/** Regular expression pattern for matching the method identifier component of a DID URI. */
|
|
105
|
+
Did.METHOD_ID_PATTERN = `((?:${Did.ID_CHAR_PATTERN}*:)*(${Did.ID_CHAR_PATTERN}+))`;
|
|
106
|
+
/** Regular expression pattern for matching the path component of a DID URI. */
|
|
107
|
+
Did.PATH_PATTERN = `(/[^#?]*)?`;
|
|
108
|
+
/** Regular expression pattern for matching the query component of a DID URI. */
|
|
109
|
+
Did.QUERY_PATTERN = `([?][^#]*)?`;
|
|
110
|
+
/** Regular expression pattern for matching the fragment component of a DID URI. */
|
|
111
|
+
Did.FRAGMENT_PATTERN = `(#.*)?`;
|
|
112
|
+
/** Regular expression pattern for matching all of the components of a DID URI. */
|
|
113
|
+
Did.DID_URI_PATTERN = new RegExp(`^did:(?<method>${Did.METHOD_PATTERN}):(?<id>${Did.METHOD_ID_PATTERN})(?<path>${Did.PATH_PATTERN})(?<query>${Did.QUERY_PATTERN})(?<fragment>${Did.FRAGMENT_PATTERN})$`);
|
|
114
|
+
//# sourceMappingURL=did.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"did.js","sourceRoot":"","sources":["../../src/did.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './types/did-core.js';
|
|
2
|
+
export * from './types/did-resolution.js';
|
|
3
|
+
export * from './did.js';
|
|
4
|
+
export * from './did-error.js';
|
|
5
|
+
export * from './bearer-did.js';
|
|
6
|
+
export * from './methods/did-dht.js';
|
|
7
|
+
export * from './methods/did-ion.js';
|
|
8
|
+
export * from './methods/did-jwk.js';
|
|
9
|
+
export * from './methods/did-key.js';
|
|
10
|
+
export * from './methods/did-method.js';
|
|
11
|
+
export * from './methods/did-web.js';
|
|
12
|
+
export * from './resolver/resolver-cache-level.js';
|
|
13
|
+
export * from './resolver/resolver-cache-noop.js';
|
|
14
|
+
export * from './resolver/universal-resolver.js';
|
|
15
|
+
export * as utils from './utils.js';
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAI1C,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AAErC,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|