@trustvc/trustvc 1.0.0-alpha.10 → 1.0.0-alpha.11
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/contracts-BsBT1cT2.d.mts +22 -0
- package/dist/contracts-BsBT1cT2.d.ts +22 -0
- package/dist/contracts-Cbud3a4b.d.mts +22 -0
- package/dist/contracts-Cbud3a4b.d.ts +22 -0
- package/dist/core/decrypt.js +2 -2
- package/dist/core/documentBuilder.d.mts +6 -0
- package/dist/core/documentBuilder.d.ts +6 -0
- package/dist/core/documentBuilder.js +13 -0
- package/dist/core/encrypt.js +2 -2
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +6 -6
- package/dist/core/verify.d.mts +1 -1
- package/dist/core/verify.d.ts +1 -1
- package/dist/core/verify.js +11 -26
- package/dist/dnsprove/index.d.mts +1 -0
- package/dist/dnsprove/index.d.ts +1 -0
- package/dist/dnsprove/index.js +12 -0
- package/dist/esm/core/decrypt.js +1 -1
- package/dist/esm/core/documentBuilder.js +11 -0
- package/dist/esm/core/encrypt.js +1 -1
- package/dist/esm/core/index.js +2 -2
- package/dist/esm/core/verify.js +9 -24
- package/dist/esm/dnsprove/index.js +1 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/open-attestation/types.js +1 -1
- package/dist/esm/open-attestation/utils.js +19 -1
- package/dist/esm/open-attestation/wrap.js +15 -15
- package/dist/esm/token-registry-v4/contracts.js +1 -0
- package/dist/esm/token-registry-v4/index.js +1 -0
- package/dist/esm/token-registry-v4/supportInterfaceIds.js +5 -0
- package/dist/esm/token-registry-v5/contracts.js +1 -0
- package/dist/esm/token-registry-v5/index.js +1 -0
- package/dist/esm/token-registry-v5/supportInterfaceIds.js +5 -0
- package/dist/esm/utils/fragment/index.js +1 -0
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/utils/network/index.js +1 -0
- package/dist/esm/utils/supportedChains/index.js +1 -0
- package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/utils.js +1 -1
- package/dist/esm/verify/fragments/index.js +5 -0
- package/dist/esm/verify/index.js +3 -0
- package/dist/esm/verify/verify.js +38 -0
- package/dist/esm/w3c/context/index.js +1 -0
- package/dist/esm/w3c/credential-status/index.js +1 -0
- package/dist/esm/w3c/index.js +9 -1
- package/dist/esm/w3c/issuer/index.js +1 -0
- package/dist/esm/w3c/vc/index.js +1 -0
- package/dist/index-1ws_BWZW.d.mts +22 -0
- package/dist/index-1ws_BWZW.d.ts +22 -0
- package/dist/index-CUw8WpjA.d.mts +22 -0
- package/dist/index-CjwEVGoM.d.mts +22 -0
- package/dist/index-CjwEVGoM.d.ts +22 -0
- package/dist/index-ClF4_Nqk.d.mts +22 -0
- package/dist/index-ClF4_Nqk.d.ts +22 -0
- package/dist/index-DK8Em_TZ.d.ts +22 -0
- package/dist/index-DwAYXQn2.d.mts +22 -0
- package/dist/index-DwAYXQn2.d.ts +22 -0
- package/dist/index.d.mts +39 -7
- package/dist/index.d.ts +39 -7
- package/dist/index.js +70 -14
- package/dist/open-attestation/index.d.mts +9 -2
- package/dist/open-attestation/index.d.ts +9 -2
- package/dist/open-attestation/sign.d.mts +1 -0
- package/dist/open-attestation/sign.d.ts +1 -0
- package/dist/open-attestation/types.d.mts +2 -1
- package/dist/open-attestation/types.d.ts +2 -1
- package/dist/open-attestation/types.js +0 -16
- package/dist/open-attestation/utils.d.mts +41 -3
- package/dist/open-attestation/utils.d.ts +41 -3
- package/dist/open-attestation/utils.js +48 -3
- package/dist/open-attestation/wrap.d.mts +6 -6
- package/dist/open-attestation/wrap.d.ts +6 -6
- package/dist/open-attestation/wrap.js +18 -18
- package/dist/token-registry-v4/contracts.d.mts +1 -0
- package/dist/token-registry-v4/contracts.d.ts +1 -0
- package/dist/token-registry-v4/contracts.js +12 -0
- package/dist/token-registry-v4/index.d.mts +1 -0
- package/dist/token-registry-v4/index.d.ts +1 -0
- package/dist/token-registry-v4/index.js +12 -0
- package/dist/token-registry-v4/supportInterfaceIds.d.mts +12 -0
- package/dist/token-registry-v4/supportInterfaceIds.d.ts +12 -0
- package/dist/token-registry-v4/supportInterfaceIds.js +7 -0
- package/dist/token-registry-v5/contracts.d.mts +1 -0
- package/dist/token-registry-v5/contracts.d.ts +1 -0
- package/dist/token-registry-v5/contracts.js +12 -0
- package/dist/token-registry-v5/index.d.mts +1 -0
- package/dist/token-registry-v5/index.d.ts +1 -0
- package/dist/token-registry-v5/index.js +12 -0
- package/dist/token-registry-v5/supportInterfaceIds.d.mts +12 -0
- package/dist/token-registry-v5/supportInterfaceIds.d.ts +12 -0
- package/dist/token-registry-v5/supportInterfaceIds.js +7 -0
- package/dist/utils/fragment/index.d.mts +1 -0
- package/dist/utils/fragment/index.d.ts +1 -0
- package/dist/utils/fragment/index.js +14 -0
- package/dist/utils/index.d.mts +4 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +33 -0
- package/dist/utils/network/index.d.mts +1 -0
- package/dist/utils/network/index.d.ts +1 -0
- package/dist/utils/network/index.js +12 -0
- package/dist/utils/{stringUtils.d.ts → stringUtils/index.d.mts} +4 -0
- package/dist/utils/{stringUtils.d.mts → stringUtils/index.d.ts} +4 -0
- package/dist/utils/supportedChains/index.d.mts +1 -0
- package/dist/utils/supportedChains/index.d.ts +1 -0
- package/dist/utils/supportedChains/index.js +12 -0
- package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.js +1 -1
- package/dist/verify/fragments/index.d.mts +6 -0
- package/dist/verify/fragments/index.d.ts +6 -0
- package/dist/verify/fragments/index.js +54 -0
- package/dist/verify/index.d.mts +9 -0
- package/dist/verify/index.d.ts +9 -0
- package/dist/verify/index.js +34 -0
- package/dist/verify/verify.d.mts +29 -0
- package/dist/verify/verify.d.ts +29 -0
- package/dist/verify/verify.js +53 -0
- package/dist/w3c/context/index.d.mts +1 -0
- package/dist/w3c/context/index.d.ts +1 -0
- package/dist/w3c/context/index.js +12 -0
- package/dist/w3c/credential-status/index.d.mts +1 -0
- package/dist/w3c/credential-status/index.d.ts +1 -0
- package/dist/w3c/credential-status/index.js +12 -0
- package/dist/w3c/index.d.mts +7 -1
- package/dist/w3c/index.d.ts +7 -1
- package/dist/w3c/index.js +46 -15
- package/dist/w3c/issuer/index.d.mts +1 -0
- package/dist/w3c/issuer/index.d.ts +1 -0
- package/dist/w3c/issuer/index.js +12 -0
- package/dist/w3c/types.d.mts +6 -0
- package/dist/w3c/types.d.ts +6 -0
- package/dist/w3c/vc/index.d.mts +1 -0
- package/dist/w3c/vc/index.d.ts +1 -0
- package/dist/w3c/vc/index.js +12 -0
- package/package.json +90 -3
- /package/dist/{config.d.mts → constants.d.mts} +0 -0
- /package/dist/{config.d.ts → constants.d.ts} +0 -0
- /package/dist/{config.js → constants.js} +0 -0
- /package/dist/esm/{config.js → constants.js} +0 -0
- /package/dist/esm/utils/{stringUtils.js → stringUtils/index.js} +0 -0
- /package/dist/esm/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
- /package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +0 -0
- /package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
- /package/dist/esm/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
- /package/dist/esm/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
- /package/dist/utils/{stringUtils.js → stringUtils/index.js} +0 -0
- /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.mts +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.ts +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VerifierType } from './fragments/document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
2
|
+
import * as _tradetrust_tt_tt_verify from '@tradetrust-tt/tt-verify';
|
|
3
|
+
export { isValid, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
+
import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
5
|
+
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
6
|
+
|
|
7
|
+
declare const verifiers: {
|
|
8
|
+
documentIntegrity: {
|
|
9
|
+
openAttestationHash: Verifier<_tradetrust_tt_tt_verify.OpenAttestationHashVerificationFragment>;
|
|
10
|
+
w3cSignatureIntegrity: Verifier<VerificationFragment>;
|
|
11
|
+
};
|
|
12
|
+
documentStatus: {
|
|
13
|
+
openAttestationDidSignedDocumentStatus: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidSignedDocumentStatusVerificationFragment>;
|
|
14
|
+
openAttestationEthereumDocumentStoreStatus: Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumDocumentStoreStatusFragment>;
|
|
15
|
+
openAttestationEthereumTokenRegistryStatus: Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumTokenRegistryStatusFragment>;
|
|
16
|
+
w3cCredentialStatus: Verifier<VerificationFragment>;
|
|
17
|
+
credentialStatusTransferableRecordVerifier: VerifierType;
|
|
18
|
+
};
|
|
19
|
+
issuerIdentity: {
|
|
20
|
+
openAttestationDidIdentityProof: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidIdentityProofVerificationFragment>;
|
|
21
|
+
openAttestationDnsDidIdentityProof: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsDidIdentityProofVerificationFragment>;
|
|
22
|
+
openAttestationDnsTxtIdentityProof: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsTxtIdentityProofVerificationFragment>;
|
|
23
|
+
w3cIssuerIdentity: Verifier<VerificationFragment>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare const openAttestationVerifiers: (Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumTokenRegistryStatusFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidIdentityProofVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsTxtIdentityProofVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationHashVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumDocumentStoreStatusFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidSignedDocumentStatusVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsDidIdentityProofVerificationFragment>)[];
|
|
27
|
+
declare const w3cVerifiers: Verifier<VerificationFragment>[];
|
|
28
|
+
|
|
29
|
+
export { openAttestationVerifiers, verifiers, w3cVerifiers };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ttVerify = require('@tradetrust-tt/tt-verify');
|
|
4
|
+
var w3cSignatureIntegrity = require('./fragments/document-integrity/w3cSignatureIntegrity');
|
|
5
|
+
var transferableRecordVerifier = require('./fragments/document-status/transferableRecords/transferableRecordVerifier');
|
|
6
|
+
var w3cCredentialStatus = require('./fragments/document-status/w3cCredentialStatus');
|
|
7
|
+
var w3cIssuerIdentity = require('./fragments/issuer-identity/w3cIssuerIdentity');
|
|
8
|
+
|
|
9
|
+
const verifiers = {
|
|
10
|
+
documentIntegrity: {
|
|
11
|
+
openAttestationHash: ttVerify.openAttestationHash,
|
|
12
|
+
w3cSignatureIntegrity: w3cSignatureIntegrity.w3cSignatureIntegrity
|
|
13
|
+
},
|
|
14
|
+
documentStatus: {
|
|
15
|
+
openAttestationDidSignedDocumentStatus: ttVerify.openAttestationDidSignedDocumentStatus,
|
|
16
|
+
openAttestationEthereumDocumentStoreStatus: ttVerify.openAttestationEthereumDocumentStoreStatus,
|
|
17
|
+
openAttestationEthereumTokenRegistryStatus: ttVerify.openAttestationEthereumTokenRegistryStatus,
|
|
18
|
+
w3cCredentialStatus: w3cCredentialStatus.w3cCredentialStatus,
|
|
19
|
+
credentialStatusTransferableRecordVerifier: transferableRecordVerifier.credentialStatusTransferableRecordVerifier
|
|
20
|
+
},
|
|
21
|
+
issuerIdentity: {
|
|
22
|
+
openAttestationDidIdentityProof: ttVerify.openAttestationDidIdentityProof,
|
|
23
|
+
openAttestationDnsDidIdentityProof: ttVerify.openAttestationDnsDidIdentityProof,
|
|
24
|
+
openAttestationDnsTxtIdentityProof: ttVerify.openAttestationDnsTxtIdentityProof,
|
|
25
|
+
w3cIssuerIdentity: w3cIssuerIdentity.w3cIssuerIdentity
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const openAttestationVerifiers = [
|
|
29
|
+
...ttVerify.openAttestationVerifiers,
|
|
30
|
+
ttVerify.openAttestationDidIdentityProof
|
|
31
|
+
];
|
|
32
|
+
const w3cVerifiers = [
|
|
33
|
+
w3cSignatureIntegrity.w3cSignatureIntegrity,
|
|
34
|
+
w3cCredentialStatus.w3cCredentialStatus,
|
|
35
|
+
transferableRecordVerifier.credentialStatusTransferableRecordVerifier,
|
|
36
|
+
w3cIssuerIdentity.w3cIssuerIdentity
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
Object.defineProperty(exports, "isValid", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return ttVerify.isValid; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "verificationBuilder", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return ttVerify.verificationBuilder; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "verify", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return ttVerify.verify; }
|
|
50
|
+
});
|
|
51
|
+
exports.openAttestationVerifiers = openAttestationVerifiers;
|
|
52
|
+
exports.verifiers = verifiers;
|
|
53
|
+
exports.w3cVerifiers = w3cVerifiers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-context';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-context';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var w3cContext = require('@trustvc/w3c-context');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(w3cContext).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return w3cContext[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-credential-status';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-credential-status';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var w3cCredentialStatus = require('@trustvc/w3c-credential-status');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(w3cCredentialStatus).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return w3cCredentialStatus[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
package/dist/w3c/index.d.mts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
export { i as context } from '../index-DwAYXQn2.mjs';
|
|
2
|
+
export { i as credentialStatus } from '../index-CjwEVGoM.mjs';
|
|
3
|
+
export { i as isser } from '../index-ClF4_Nqk.mjs';
|
|
1
4
|
export { signW3C } from './sign.mjs';
|
|
2
|
-
export { verifyW3CSignature } from './verify.mjs';
|
|
3
5
|
export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, VerificationResult } from '@trustvc/w3c-vc';
|
|
4
6
|
export { PrivateKeyPair } from '@trustvc/w3c-issuer';
|
|
7
|
+
export { i as vc } from '../index-1ws_BWZW.mjs';
|
|
8
|
+
export { verifyW3CSignature } from './verify.mjs';
|
|
9
|
+
import '@trustvc/w3c-context';
|
|
10
|
+
import '@trustvc/w3c-credential-status';
|
package/dist/w3c/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
export { i as context } from '../index-DwAYXQn2.js';
|
|
2
|
+
export { i as credentialStatus } from '../index-CjwEVGoM.js';
|
|
3
|
+
export { i as isser } from '../index-ClF4_Nqk.js';
|
|
1
4
|
export { signW3C } from './sign.js';
|
|
2
|
-
export { verifyW3CSignature } from './verify.js';
|
|
3
5
|
export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, VerificationResult } from '@trustvc/w3c-vc';
|
|
4
6
|
export { PrivateKeyPair } from '@trustvc/w3c-issuer';
|
|
7
|
+
export { i as vc } from '../index-1ws_BWZW.js';
|
|
8
|
+
export { verifyW3CSignature } from './verify.js';
|
|
9
|
+
import '@trustvc/w3c-context';
|
|
10
|
+
import '@trustvc/w3c-credential-status';
|
package/dist/w3c/index.js
CHANGED
|
@@ -1,26 +1,57 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var context = require('./context');
|
|
4
|
+
var credentialStatus = require('./credential-status');
|
|
5
|
+
var issuer = require('./issuer');
|
|
3
6
|
var sign = require('./sign');
|
|
4
|
-
var verify = require('./verify');
|
|
5
7
|
var types = require('./types');
|
|
8
|
+
var vc = require('./vc');
|
|
9
|
+
var verify = require('./verify');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var context__namespace = /*#__PURE__*/_interopNamespace(context);
|
|
30
|
+
var credentialStatus__namespace = /*#__PURE__*/_interopNamespace(credentialStatus);
|
|
31
|
+
var issuer__namespace = /*#__PURE__*/_interopNamespace(issuer);
|
|
32
|
+
var vc__namespace = /*#__PURE__*/_interopNamespace(vc);
|
|
6
33
|
|
|
7
34
|
|
|
8
35
|
|
|
36
|
+
exports.context = context__namespace;
|
|
37
|
+
exports.credentialStatus = credentialStatus__namespace;
|
|
38
|
+
exports.isser = issuer__namespace;
|
|
39
|
+
exports.vc = vc__namespace;
|
|
9
40
|
Object.keys(sign).forEach(function (k) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
Object.keys(verify).forEach(function (k) {
|
|
16
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return verify[k]; }
|
|
19
|
-
});
|
|
41
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return sign[k]; }
|
|
44
|
+
});
|
|
20
45
|
});
|
|
21
46
|
Object.keys(types).forEach(function (k) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
47
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return types[k]; }
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
Object.keys(verify).forEach(function (k) {
|
|
53
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return verify[k]; }
|
|
56
|
+
});
|
|
26
57
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-issuer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-issuer';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var w3cIssuer = require('@trustvc/w3c-issuer');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(w3cIssuer).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return w3cIssuer[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
package/dist/w3c/types.d.mts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, VerificationResult } from '@trustvc/w3c-vc';
|
|
2
2
|
export { PrivateKeyPair } from '@trustvc/w3c-issuer';
|
|
3
|
+
import '@tradetrust-tt/tradetrust-utils';
|
|
4
|
+
import '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
5
|
+
import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
6
|
+
import '@tradetrust-tt/dnsprove';
|
|
7
|
+
import '@tradetrust-tt/token-registry-v4';
|
|
8
|
+
import '@tradetrust-tt/token-registry-v5';
|
package/dist/w3c/types.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, VerificationResult } from '@trustvc/w3c-vc';
|
|
2
2
|
export { PrivateKeyPair } from '@trustvc/w3c-issuer';
|
|
3
|
+
import '@tradetrust-tt/tradetrust-utils';
|
|
4
|
+
import '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
5
|
+
import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
6
|
+
import '@tradetrust-tt/dnsprove';
|
|
7
|
+
import '@tradetrust-tt/token-registry-v4';
|
|
8
|
+
import '@tradetrust-tt/token-registry-v5';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-vc';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@trustvc/w3c-vc';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var w3cVc = require('@trustvc/w3c-vc');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(w3cVc).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return w3cVc[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustvc/trustvc",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.11",
|
|
4
4
|
"description": "TrustVC library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "npx vitest --run --test-timeout=15000",
|
|
13
|
-
"
|
|
13
|
+
"type-check": "tsc --noEmit",
|
|
14
|
+
"lint": "npx eslint . --color --format=table --max-warnings=0",
|
|
14
15
|
"build": "npm run clean && tsup",
|
|
15
16
|
"clean": "rm -rf dist/",
|
|
16
17
|
"precommit": "lint-staged",
|
|
@@ -30,13 +31,92 @@
|
|
|
30
31
|
"types": "./dist/index.d.ts",
|
|
31
32
|
"import": "./dist/esm/index.js",
|
|
32
33
|
"require": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./core": {
|
|
36
|
+
"types": "./dist/core/index.d.ts",
|
|
37
|
+
"import": "./dist/esm/core/index.js",
|
|
38
|
+
"require": "./dist/core/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./dnsprove": {
|
|
41
|
+
"types": "./dist/dnsprove/index.d.ts",
|
|
42
|
+
"import": "./dist/esm/dnsprove/index.js",
|
|
43
|
+
"require": "./dist/dnsprove/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./open-attestation": {
|
|
46
|
+
"types": "./dist/open-attestation/index.d.ts",
|
|
47
|
+
"import": "./dist/esm/open-attestation/index.js",
|
|
48
|
+
"require": "./dist/open-attestation/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./token-registry-v4": {
|
|
51
|
+
"types": "./dist/token-registry-v4/index.d.ts",
|
|
52
|
+
"import": "./dist/esm/token-registry-v4/index.js",
|
|
53
|
+
"require": "./dist/token-registry-v4/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./token-registry-v4/contracts": {
|
|
56
|
+
"types": "./dist/token-registry-v4/contracts.d.ts",
|
|
57
|
+
"import": "./dist/esm/token-registry-v4/contracts.js",
|
|
58
|
+
"require": "./dist/token-registry-v4/contracts.js"
|
|
59
|
+
},
|
|
60
|
+
"./token-registry-v5": {
|
|
61
|
+
"types": "./dist/token-registry-v5/index.d.ts",
|
|
62
|
+
"import": "./dist/esm/token-registry-v5/index.js",
|
|
63
|
+
"require": "./dist/token-registry-v5/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./token-registry-v5/contracts": {
|
|
66
|
+
"import": "./dist/esm/token-registry-v5/contracts.js",
|
|
67
|
+
"types": "./dist/token-registry-v5/contracts.d.ts",
|
|
68
|
+
"require": "./dist/token-registry-v5/contracts.js"
|
|
69
|
+
},
|
|
70
|
+
"./utils": {
|
|
71
|
+
"types": "./dist/utils/index.d.ts",
|
|
72
|
+
"import": "./dist/esm/utils/index.js",
|
|
73
|
+
"require": "./dist/utils/index.js"
|
|
74
|
+
},
|
|
75
|
+
"./verify": {
|
|
76
|
+
"types": "./dist/verify/index.d.ts",
|
|
77
|
+
"import": "./dist/esm/verify/index.js",
|
|
78
|
+
"require": "./dist/verify/index.js"
|
|
79
|
+
},
|
|
80
|
+
"./verify/fragments": {
|
|
81
|
+
"types": "./dist/verify/fragments.d.ts",
|
|
82
|
+
"import": "./dist/esm/verify/fragments.js",
|
|
83
|
+
"require": "./dist/verify/fragments.js"
|
|
84
|
+
},
|
|
85
|
+
"./w3c": {
|
|
86
|
+
"types": "./dist/w3c/index.d.ts",
|
|
87
|
+
"import": "./dist/esm/w3c/index.js",
|
|
88
|
+
"require": "./dist/w3c/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./w3c/issuer": {
|
|
91
|
+
"types": "./dist/w3c/issuer/index.d.ts",
|
|
92
|
+
"import": "./dist/esm/w3c/issuer/index.js",
|
|
93
|
+
"require": "./dist/w3c/issuer/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./w3c/vc": {
|
|
96
|
+
"types": "./dist/w3c/vc/index.d.ts",
|
|
97
|
+
"import": "./dist/esm/w3c/vc/index.js",
|
|
98
|
+
"require": "./dist/w3c/vc/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./w3c/context": {
|
|
101
|
+
"types": "./dist/w3c/context/index.d.ts",
|
|
102
|
+
"import": "./dist/esm/w3c/context/index.js",
|
|
103
|
+
"require": "./dist/w3c/context/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./w3c/credential-status": {
|
|
106
|
+
"types": "./dist/w3c/credential-status/index.d.ts",
|
|
107
|
+
"import": "./dist/esm/w3c/credential-status/index.js",
|
|
108
|
+
"require": "./dist/w3c/credential-status/index.js"
|
|
33
109
|
}
|
|
34
110
|
},
|
|
35
111
|
"dependencies": {
|
|
36
|
-
"@tradetrust-tt/
|
|
112
|
+
"@tradetrust-tt/dnsprove": "^2.14.2",
|
|
113
|
+
"@tradetrust-tt/token-registry-v4": "npm:@tradetrust-tt/token-registry@^4.12.1",
|
|
114
|
+
"@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.0.0-alpha.5",
|
|
37
115
|
"@tradetrust-tt/tradetrust": "^6.9.7",
|
|
116
|
+
"@tradetrust-tt/tradetrust-utils": "^1.14.2",
|
|
38
117
|
"@tradetrust-tt/tt-verify": "^8.10.1",
|
|
39
118
|
"@trustvc/w3c-context": "^1.0.0-alpha",
|
|
119
|
+
"@trustvc/w3c-credential-status": "^1.0.0-alpha",
|
|
40
120
|
"@trustvc/w3c-issuer": "^1.0.0-alpha",
|
|
41
121
|
"@trustvc/w3c-vc": "^1.0.0-alpha",
|
|
42
122
|
"did-resolver": "^4.1.0",
|
|
@@ -58,6 +138,7 @@
|
|
|
58
138
|
"@types/node": "^18.17.0",
|
|
59
139
|
"@vitest/coverage-v8": "^1.6.0",
|
|
60
140
|
"cpy": "^11.1.0",
|
|
141
|
+
"dotenv": "^16.4.5",
|
|
61
142
|
"eslint": "^9.11.1",
|
|
62
143
|
"eslint-config-prettier": "^9.1.0",
|
|
63
144
|
"eslint-formatter-table": "^7.32.1",
|
|
@@ -77,9 +158,15 @@
|
|
|
77
158
|
"vite-plugin-dts": "^3.9.1",
|
|
78
159
|
"vitest": "^1.6.0"
|
|
79
160
|
},
|
|
161
|
+
"overrides": {
|
|
162
|
+
"ethers": "^5.7.2"
|
|
163
|
+
},
|
|
80
164
|
"optionalDependencies": {
|
|
81
165
|
"@rollup/rollup-linux-x64-gnu": "~4.25.0"
|
|
82
166
|
},
|
|
167
|
+
"peerDependencies": {
|
|
168
|
+
"ethers": "^5.7.2"
|
|
169
|
+
},
|
|
83
170
|
"lint-staged": {
|
|
84
171
|
"*.{js,ts}": [
|
|
85
172
|
"eslint --fix",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|