@veramo/credential-ld 3.1.6-next.139 → 3.1.6-next.142
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/ld-default-contexts.d.ts +1 -2
- package/build/ld-default-contexts.d.ts.map +1 -1
- package/build/ld-default-contexts.js +17 -54
- package/build/ld-default-contexts.js.map +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js.map +1 -1
- package/package.json +6 -6
- package/src/ld-default-contexts.ts +17 -21
- package/src/module-types/jsonld/index.d.ts +2 -2
- package/src/suites/EcdsaSecp256k1RecoverySignature2020.ts +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ContextDoc } from './types';
|
|
2
1
|
/**
|
|
3
2
|
* Provides a hardcoded map of common Linked Data `@context` definitions.
|
|
4
3
|
*
|
|
@@ -7,5 +6,5 @@ import { ContextDoc } from './types';
|
|
|
7
6
|
*
|
|
8
7
|
* @beta This API may change without a BREAKING CHANGE notice.
|
|
9
8
|
*/
|
|
10
|
-
export declare const LdDefaultContexts: Map<string,
|
|
9
|
+
export declare const LdDefaultContexts: Map<string, any>;
|
|
11
10
|
//# sourceMappingURL=ld-default-contexts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-default-contexts.d.ts","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ld-default-contexts.d.ts","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,kBAkB5B,CAAA"}
|
|
@@ -1,43 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
3
|
exports.LdDefaultContexts = void 0;
|
|
36
|
-
function _read(_path) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
return yield Promise.resolve().then(() => __importStar(require('./contexts/' + _path)));
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
4
|
/**
|
|
42
5
|
* Provides a hardcoded map of common Linked Data `@context` definitions.
|
|
43
6
|
*
|
|
@@ -47,22 +10,22 @@ function _read(_path) {
|
|
|
47
10
|
* @beta This API may change without a BREAKING CHANGE notice.
|
|
48
11
|
*/
|
|
49
12
|
exports.LdDefaultContexts = new Map([
|
|
50
|
-
['https://www.w3.org/2018/credentials/v1',
|
|
51
|
-
['https://www.w3.org/ns/did/v1',
|
|
52
|
-
['https://w3id.org/security/v1',
|
|
53
|
-
['https://w3id.org/security/v2',
|
|
54
|
-
['https://w3id.org/security/v3-unstable',
|
|
55
|
-
['https://w3id.org/security/suites/ed25519-2018/v1',
|
|
56
|
-
['https://w3id.org/security/suites/x25519-2019/v1',
|
|
57
|
-
// ['https://w3id.org/did/v0.11',
|
|
58
|
-
// ['https://veramo.io/contexts/socialmedia/v1',
|
|
59
|
-
// ['https://veramo.io/contexts/kyc/v1',
|
|
60
|
-
['https://veramo.io/contexts/profile/v1',
|
|
61
|
-
// ['https://ns.did.ai/transmute/v1',
|
|
62
|
-
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld',
|
|
63
|
-
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld',
|
|
64
|
-
['https://w3id.org/security/suites/secp256k1recovery-2020/v2',
|
|
65
|
-
// ['https://w3id.org/security/suites/ed25519-2018/v1',
|
|
66
|
-
// ['https://w3id.org/security/suites/x25519-2019/v1',
|
|
13
|
+
['https://www.w3.org/2018/credentials/v1', require('./contexts/www.w3.org_2018_credentials_v1')],
|
|
14
|
+
['https://www.w3.org/ns/did/v1', require('./contexts/www.w3.org_ns_did_v1')],
|
|
15
|
+
['https://w3id.org/security/v1', require('./contexts/w3id.org_security_v1')],
|
|
16
|
+
['https://w3id.org/security/v2', require('./contexts/w3id.org_security_v2.json')],
|
|
17
|
+
['https://w3id.org/security/v3-unstable', require('./contexts/w3id.org_security_v3-unstable.json')],
|
|
18
|
+
['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/w3id.org_security_suites_ed25519-2018_v1.json')],
|
|
19
|
+
['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/w3id.org_security_suites_x25519-2019_v1.json')],
|
|
20
|
+
// ['https://w3id.org/did/v0.11', require('./contexts/did_v0.11.json')],
|
|
21
|
+
// ['https://veramo.io/contexts/socialmedia/v1', require('./contexts/socialmedia-v1.json')],
|
|
22
|
+
// ['https://veramo.io/contexts/kyc/v1', require('./contexts/kyc-v1.json')],
|
|
23
|
+
['https://veramo.io/contexts/profile/v1', require('./contexts/veramo.io_contexts_profile_v1.json')],
|
|
24
|
+
// ['https://ns.did.ai/transmute/v1', require('./contexts/transmute_v1.json')],
|
|
25
|
+
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', require('./contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json')],
|
|
26
|
+
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld', require('./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json')],
|
|
27
|
+
['https://w3id.org/security/suites/secp256k1recovery-2020/v2', require('./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json')],
|
|
28
|
+
// ['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/ed25519-signature-2018-v1.json')],
|
|
29
|
+
// ['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/X25519KeyAgreementKey2019.json')],
|
|
67
30
|
]);
|
|
68
31
|
//# sourceMappingURL=ld-default-contexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-default-contexts.js","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ld-default-contexts.js","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACU,QAAA,iBAAiB,GAAG,IAAI,GAAG,CAAC;IACvC,CAAC,wCAAwC,EAAE,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAChG,CAAC,8BAA8B,EAAE,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC5E,CAAC,8BAA8B,EAAE,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC5E,CAAC,8BAA8B,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACjF,CAAC,uCAAuC,EAAE,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACnG,CAAC,kDAAkD,EAAE,OAAO,CAAC,0DAA0D,CAAC,CAAC;IACzH,CAAC,iDAAiD,EAAE,OAAO,CAAC,yDAAyD,CAAC,CAAC;IACvH,wEAAwE;IACxE,4FAA4F;IAC5F,4EAA4E;IAC5E,CAAC,uCAAuC,EAAE,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACnG,+EAA+E;IAC/E,CAAC,6GAA6G,EAAE,OAAO,CAAC,sDAAsD,CAAC,CAAC;IAChL,CAAC,6GAA6G,EAAE,OAAO,CAAC,oEAAoE,CAAC,CAAC;IAC9L,CAAC,4DAA4D,EAAE,OAAO,CAAC,oEAAoE,CAAC,CAAC;IAC7I,8GAA8G;IAC9G,6GAA6G;CAC9G,CAAC,CAAA"}
|
|
@@ -34,7 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.VeramoEcdsaSecp256k1RecoverySignature2020 = void 0;
|
|
36
36
|
const ld_suites_1 = require("../ld-suites");
|
|
37
|
-
const lds_ecdsa_secp256k1_recovery2020_1 = require("@
|
|
37
|
+
const lds_ecdsa_secp256k1_recovery2020_1 = require("@veramo-community/lds-ecdsa-secp256k1-recovery2020");
|
|
38
38
|
const u8a = __importStar(require("uint8arrays"));
|
|
39
39
|
const utils_1 = require("@veramo/utils");
|
|
40
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EcdsaSecp256k1RecoverySignature2020.js","sourceRoot":"","sources":["../../src/suites/EcdsaSecp256k1RecoverySignature2020.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAsE;AAEtE,
|
|
1
|
+
{"version":3,"file":"EcdsaSecp256k1RecoverySignature2020.js","sourceRoot":"","sources":["../../src/suites/EcdsaSecp256k1RecoverySignature2020.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veramo/credential-ld",
|
|
3
3
|
"description": "Veramo plugin for working with W3C JSON-LD Verifiable Credentials & Presentations.",
|
|
4
|
-
"version": "3.1.6-next.
|
|
4
|
+
"version": "3.1.6-next.142+e57edb34",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"@digitalcredentials/vc": "^1.1.2",
|
|
20
20
|
"@transmute/credentials-context": "^0.7.0-unstable.60",
|
|
21
21
|
"@transmute/ed25519-signature-2018": "^0.7.0-unstable.60",
|
|
22
|
-
"@
|
|
23
|
-
"@veramo/core": "^3.1.6-next.
|
|
24
|
-
"@veramo/did-resolver": "^3.1.6-next.
|
|
25
|
-
"@veramo/utils": "^3.1.6-next.
|
|
22
|
+
"@veramo-community/lds-ecdsa-secp256k1-recovery2020": "uport-project/EcdsaSecp256k1RecoverySignature2020",
|
|
23
|
+
"@veramo/core": "^3.1.6-next.142+e57edb34",
|
|
24
|
+
"@veramo/did-resolver": "^3.1.6-next.142+e57edb34",
|
|
25
|
+
"@veramo/utils": "^3.1.6-next.142+e57edb34",
|
|
26
26
|
"debug": "^4.3.3",
|
|
27
27
|
"did-resolver": "^3.2.2",
|
|
28
28
|
"uint8arrays": "^3.0.0"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"author": "Mircea Nistor <mircea.nistor@mesh.xyz>",
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"keywords": [],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "e57edb34cfbaee6bba1d944497d688104f32c698"
|
|
55
55
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ContextDoc } from './types'
|
|
2
2
|
|
|
3
|
-
async function _read(_path: string): Promise<ContextDoc> {
|
|
4
|
-
return await import('./contexts/' + _path);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
3
|
/**
|
|
8
4
|
* Provides a hardcoded map of common Linked Data `@context` definitions.
|
|
9
5
|
*
|
|
@@ -13,21 +9,21 @@ async function _read(_path: string): Promise<ContextDoc> {
|
|
|
13
9
|
* @beta This API may change without a BREAKING CHANGE notice.
|
|
14
10
|
*/
|
|
15
11
|
export const LdDefaultContexts = new Map([
|
|
16
|
-
['https://www.w3.org/2018/credentials/v1',
|
|
17
|
-
['https://www.w3.org/ns/did/v1',
|
|
18
|
-
['https://w3id.org/security/v1',
|
|
19
|
-
['https://w3id.org/security/v2',
|
|
20
|
-
['https://w3id.org/security/v3-unstable',
|
|
21
|
-
['https://w3id.org/security/suites/ed25519-2018/v1',
|
|
22
|
-
['https://w3id.org/security/suites/x25519-2019/v1',
|
|
23
|
-
// ['https://w3id.org/did/v0.11',
|
|
24
|
-
// ['https://veramo.io/contexts/socialmedia/v1',
|
|
25
|
-
// ['https://veramo.io/contexts/kyc/v1',
|
|
26
|
-
['https://veramo.io/contexts/profile/v1',
|
|
27
|
-
// ['https://ns.did.ai/transmute/v1',
|
|
28
|
-
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld',
|
|
29
|
-
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld',
|
|
30
|
-
['https://w3id.org/security/suites/secp256k1recovery-2020/v2',
|
|
31
|
-
// ['https://w3id.org/security/suites/ed25519-2018/v1',
|
|
32
|
-
// ['https://w3id.org/security/suites/x25519-2019/v1',
|
|
12
|
+
['https://www.w3.org/2018/credentials/v1', require('./contexts/www.w3.org_2018_credentials_v1')],
|
|
13
|
+
['https://www.w3.org/ns/did/v1', require('./contexts/www.w3.org_ns_did_v1')],
|
|
14
|
+
['https://w3id.org/security/v1', require('./contexts/w3id.org_security_v1')],
|
|
15
|
+
['https://w3id.org/security/v2', require('./contexts/w3id.org_security_v2.json')],
|
|
16
|
+
['https://w3id.org/security/v3-unstable', require('./contexts/w3id.org_security_v3-unstable.json')],
|
|
17
|
+
['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/w3id.org_security_suites_ed25519-2018_v1.json')],
|
|
18
|
+
['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/w3id.org_security_suites_x25519-2019_v1.json')],
|
|
19
|
+
// ['https://w3id.org/did/v0.11', require('./contexts/did_v0.11.json')],
|
|
20
|
+
// ['https://veramo.io/contexts/socialmedia/v1', require('./contexts/socialmedia-v1.json')],
|
|
21
|
+
// ['https://veramo.io/contexts/kyc/v1', require('./contexts/kyc-v1.json')],
|
|
22
|
+
['https://veramo.io/contexts/profile/v1', require('./contexts/veramo.io_contexts_profile_v1.json')],
|
|
23
|
+
// ['https://ns.did.ai/transmute/v1', require('./contexts/transmute_v1.json')],
|
|
24
|
+
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', require('./contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json')],
|
|
25
|
+
['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld', require('./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json')],
|
|
26
|
+
['https://w3id.org/security/suites/secp256k1recovery-2020/v2', require('./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json')],
|
|
27
|
+
// ['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/ed25519-signature-2018-v1.json')],
|
|
28
|
+
// ['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/X25519KeyAgreementKey2019.json')],
|
|
33
29
|
])
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module '@digitalcredentials/jsonld'
|
|
2
2
|
declare module '@digitalcredentials/jsonld-signatures'
|
|
3
3
|
declare module '@digitalcredentials/vc'
|
|
4
|
-
declare module '@
|
|
4
|
+
declare module '@veramo-community/lds-ecdsa-secp256k1-recovery2020'
|
|
5
5
|
|
|
6
6
|
declare module "*.json" {
|
|
7
7
|
const content: any;
|
|
8
8
|
export default content;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
@@ -3,7 +3,7 @@ import { CredentialPayload, DIDDocument, IAgentContext, IKey, TKeyType } from '@
|
|
|
3
3
|
import {
|
|
4
4
|
EcdsaSecp256k1RecoveryMethod2020,
|
|
5
5
|
EcdsaSecp256k1RecoverySignature2020,
|
|
6
|
-
} from '@
|
|
6
|
+
} from '@veramo-community/lds-ecdsa-secp256k1-recovery2020'
|
|
7
7
|
|
|
8
8
|
import * as u8a from 'uint8arrays'
|
|
9
9
|
import { asArray, encodeJoseBlob } from '@veramo/utils'
|