@trustvc/trustvc 1.0.0-alpha.9 → 1.0.0
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 +13 -32
- 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 +11 -30
- package/dist/esm/dnsprove/index.js +1 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/open-attestation/index.js +3 -2
- package/dist/esm/open-attestation/sign.js +10 -5
- package/dist/esm/open-attestation/types.js +1 -1
- package/dist/esm/open-attestation/utils.js +19 -0
- package/dist/esm/open-attestation/verify.js +2 -2
- package/dist/esm/open-attestation/wrap.js +28 -5
- 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/transferableRecordVerifier.js +2 -6
- package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/utils.js +2 -2
- 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 +40 -8
- package/dist/index.d.ts +40 -8
- package/dist/index.js +70 -14
- package/dist/open-attestation/index.d.mts +10 -3
- package/dist/open-attestation/index.d.ts +10 -3
- package/dist/open-attestation/index.js +15 -8
- package/dist/open-attestation/sign.d.mts +5 -3
- package/dist/open-attestation/sign.d.ts +5 -3
- package/dist/open-attestation/sign.js +10 -5
- 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 -0
- package/dist/open-attestation/utils.d.ts +41 -0
- package/dist/open-attestation/utils.js +55 -0
- package/dist/open-attestation/verify.d.mts +2 -2
- package/dist/open-attestation/verify.d.ts +2 -2
- package/dist/open-attestation/verify.js +3 -3
- package/dist/open-attestation/wrap.d.mts +7 -3
- package/dist/open-attestation/wrap.d.ts +7 -3
- package/dist/open-attestation/wrap.js +39 -6
- 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-integrity/w3cSignatureIntegrity.d.mts +1 -1
- package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.ts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +14 -18
- package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.mts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.ts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.mts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.ts +1 -1
- package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.js +9 -9
- package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.mts +1 -1
- package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.ts +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/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.mts +1 -1
- package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.ts +1 -1
- 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 +100 -10
- /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.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.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VerifierType } from './transferableRecordVerifier.types.js';
|
|
2
|
-
import '@
|
|
2
|
+
import '@tradetrust-tt/tt-verify';
|
|
3
3
|
|
|
4
4
|
declare const TRANSFERABLE_RECORDS_TYPE = "TransferableRecords";
|
|
5
5
|
declare const credentialStatusTransferableRecordVerifier: VerifierType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var openAttestation = require('@govtechsg/open-attestation');
|
|
3
|
+
var ttVerify = require('@tradetrust-tt/tt-verify');
|
|
5
4
|
var w3cVC = require('@trustvc/w3c-vc');
|
|
6
5
|
var utils = require('./utils');
|
|
7
6
|
|
|
@@ -33,26 +32,23 @@ const name = TRANSFERABLE_RECORDS_TYPE;
|
|
|
33
32
|
const verify = /* @__PURE__ */ __name(async (document, options) => {
|
|
34
33
|
let signedDocument;
|
|
35
34
|
let tokenId;
|
|
36
|
-
if (
|
|
37
|
-
signedDocument = document;
|
|
38
|
-
tokenId = "0x" + signedDocument?.proof?.targetHash;
|
|
39
|
-
} else if (w3cVC__namespace.isSignedDocument(document)) {
|
|
35
|
+
if (w3cVC__namespace.isSignedDocument(document)) {
|
|
40
36
|
signedDocument = document;
|
|
41
37
|
tokenId = "0x" + signedDocument?.credentialStatus?.tokenId;
|
|
42
38
|
}
|
|
43
39
|
const credentialStatus = signedDocument?.credentialStatus;
|
|
44
40
|
if (!credentialStatus?.tokenRegistry) {
|
|
45
|
-
throw new
|
|
41
|
+
throw new ttVerify.CodedError(
|
|
46
42
|
"Document's credentialStatus does not have tokenRegistry",
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT,
|
|
44
|
+
ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT]
|
|
49
45
|
);
|
|
50
46
|
}
|
|
51
47
|
if (!credentialStatus?.tokenNetwork || !credentialStatus?.tokenNetwork?.chainId) {
|
|
52
|
-
throw new
|
|
48
|
+
throw new ttVerify.CodedError(
|
|
53
49
|
"Document's credentialStatus does not have tokenNetwork.chainId",
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT,
|
|
51
|
+
ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT]
|
|
56
52
|
);
|
|
57
53
|
}
|
|
58
54
|
const { provider } = options;
|
|
@@ -69,7 +65,7 @@ const verify = /* @__PURE__ */ __name(async (document, options) => {
|
|
|
69
65
|
tokenRegistry: credentialStatus.tokenRegistry
|
|
70
66
|
}
|
|
71
67
|
};
|
|
72
|
-
if (
|
|
68
|
+
if (ttVerify.ValidTokenRegistryStatus.guard(mintStatus)) {
|
|
73
69
|
result.status = "VALID";
|
|
74
70
|
} else {
|
|
75
71
|
result.reason = mintStatus.reason;
|
|
@@ -82,8 +78,8 @@ const skip = /* @__PURE__ */ __name(async () => {
|
|
|
82
78
|
type,
|
|
83
79
|
name,
|
|
84
80
|
reason: {
|
|
85
|
-
code:
|
|
86
|
-
codeString:
|
|
81
|
+
code: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.SKIPPED,
|
|
82
|
+
codeString: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.SKIPPED],
|
|
87
83
|
message: `Document does not have TransferableRecords status`
|
|
88
84
|
}
|
|
89
85
|
};
|
|
@@ -101,7 +97,7 @@ const credentialStatusTransferableRecordVerifier = {
|
|
|
101
97
|
try {
|
|
102
98
|
return await verify(...args);
|
|
103
99
|
} catch (e) {
|
|
104
|
-
if (e instanceof
|
|
100
|
+
if (e instanceof ttVerify.CodedError) {
|
|
105
101
|
const err = {
|
|
106
102
|
name,
|
|
107
103
|
type,
|
|
@@ -119,8 +115,8 @@ const credentialStatusTransferableRecordVerifier = {
|
|
|
119
115
|
type,
|
|
120
116
|
status: "ERROR",
|
|
121
117
|
reason: {
|
|
122
|
-
code:
|
|
123
|
-
codeString:
|
|
118
|
+
code: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNEXPECTED_ERROR,
|
|
119
|
+
codeString: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNEXPECTED_ERROR],
|
|
124
120
|
message: e instanceof Error ? e.message : "An unexpected error occurred"
|
|
125
121
|
}
|
|
126
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenAttestationEthereumTokenRegistryStatusCode, VerificationFragment, ErrorVerificationFragment, Verifier } from '@
|
|
1
|
+
import { OpenAttestationEthereumTokenRegistryStatusCode, VerificationFragment, ErrorVerificationFragment, Verifier } from '@tradetrust-tt/tt-verify';
|
|
2
2
|
|
|
3
3
|
type TransferableRecordsErrorReason = {
|
|
4
4
|
code: OpenAttestationEthereumTokenRegistryStatusCode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenAttestationEthereumTokenRegistryStatusCode, VerificationFragment, ErrorVerificationFragment, Verifier } from '@
|
|
1
|
+
import { OpenAttestationEthereumTokenRegistryStatusCode, VerificationFragment, ErrorVerificationFragment, Verifier } from '@tradetrust-tt/tt-verify';
|
|
2
2
|
|
|
3
3
|
type TransferableRecordsErrorReason = {
|
|
4
4
|
code: OpenAttestationEthereumTokenRegistryStatusCode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var contracts = require('@tradetrust-tt/token-registry-v5/dist/contracts');
|
|
4
|
+
var ttVerify = require('@tradetrust-tt/tt-verify');
|
|
5
5
|
var ethers = require('ethers');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -31,10 +31,10 @@ const decodeError = /* @__PURE__ */ __name((error) => {
|
|
|
31
31
|
return `Invalid contract arguments`;
|
|
32
32
|
case error.code === ethers.errors.SERVER_ERROR:
|
|
33
33
|
case error.code === ethers.errors.NETWORK_ERROR:
|
|
34
|
-
throw new
|
|
34
|
+
throw new ttVerify.CodedError(
|
|
35
35
|
"Unable to connect to the network, please try again later",
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.SERVER_ERROR,
|
|
37
|
+
ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.SERVER_ERROR]
|
|
38
38
|
);
|
|
39
39
|
default:
|
|
40
40
|
throw error;
|
|
@@ -52,8 +52,8 @@ const isTokenMintedOnRegistry = /* @__PURE__ */ __name(async ({
|
|
|
52
52
|
minted,
|
|
53
53
|
address: tokenRegistryAddress,
|
|
54
54
|
reason: {
|
|
55
|
-
code:
|
|
56
|
-
codeString:
|
|
55
|
+
code: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED,
|
|
56
|
+
codeString: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED],
|
|
57
57
|
message: `Document ${tokenId} has not been issued under contract ${tokenRegistryAddress}`
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -64,8 +64,8 @@ const isTokenMintedOnRegistry = /* @__PURE__ */ __name(async ({
|
|
|
64
64
|
reason: {
|
|
65
65
|
message: decodeError(error),
|
|
66
66
|
// message: (error as Error).message,
|
|
67
|
-
code:
|
|
68
|
-
codeString:
|
|
67
|
+
code: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED,
|
|
68
|
+
codeString: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED]
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { openAttestationDidIdentityProof, openAttestationDidSignedDocumentStatus, openAttestationDnsDidIdentityProof, openAttestationDnsTxtIdentityProof, openAttestationEthereumDocumentStoreStatus, openAttestationEthereumTokenRegistryStatus, openAttestationHash } from '@tradetrust-tt/tt-verify';
|
|
2
|
+
export { w3cSignatureIntegrity } from './document-integrity/w3cSignatureIntegrity.mjs';
|
|
3
|
+
export { credentialStatusTransferableRecordVerifier } from './document-status/transferableRecords/transferableRecordVerifier.mjs';
|
|
4
|
+
export { w3cCredentialStatus } from './document-status/w3cCredentialStatus.mjs';
|
|
5
|
+
export { w3cIssuerIdentity } from './issuer-identity/w3cIssuerIdentity.mjs';
|
|
6
|
+
import './document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { openAttestationDidIdentityProof, openAttestationDidSignedDocumentStatus, openAttestationDnsDidIdentityProof, openAttestationDnsTxtIdentityProof, openAttestationEthereumDocumentStoreStatus, openAttestationEthereumTokenRegistryStatus, openAttestationHash } from '@tradetrust-tt/tt-verify';
|
|
2
|
+
export { w3cSignatureIntegrity } from './document-integrity/w3cSignatureIntegrity.js';
|
|
3
|
+
export { credentialStatusTransferableRecordVerifier } from './document-status/transferableRecords/transferableRecordVerifier.js';
|
|
4
|
+
export { w3cCredentialStatus } from './document-status/w3cCredentialStatus.js';
|
|
5
|
+
export { w3cIssuerIdentity } from './issuer-identity/w3cIssuerIdentity.js';
|
|
6
|
+
import './document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ttVerify = require('@tradetrust-tt/tt-verify');
|
|
4
|
+
var w3cSignatureIntegrity = require('./document-integrity/w3cSignatureIntegrity');
|
|
5
|
+
var transferableRecordVerifier = require('./document-status/transferableRecords/transferableRecordVerifier');
|
|
6
|
+
var w3cCredentialStatus = require('./document-status/w3cCredentialStatus');
|
|
7
|
+
var w3cIssuerIdentity = require('./issuer-identity/w3cIssuerIdentity');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "openAttestationDidIdentityProof", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return ttVerify.openAttestationDidIdentityProof; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "openAttestationDidSignedDocumentStatus", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return ttVerify.openAttestationDidSignedDocumentStatus; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "openAttestationDnsDidIdentityProof", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return ttVerify.openAttestationDnsDidIdentityProof; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "openAttestationDnsTxtIdentityProof", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return ttVerify.openAttestationDnsTxtIdentityProof; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "openAttestationEthereumDocumentStoreStatus", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return ttVerify.openAttestationEthereumDocumentStoreStatus; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "openAttestationEthereumTokenRegistryStatus", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return ttVerify.openAttestationEthereumTokenRegistryStatus; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "openAttestationHash", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return ttVerify.openAttestationHash; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "w3cSignatureIntegrity", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return w3cSignatureIntegrity.w3cSignatureIntegrity; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "credentialStatusTransferableRecordVerifier", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return transferableRecordVerifier.credentialStatusTransferableRecordVerifier; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "w3cCredentialStatus", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return w3cCredentialStatus.w3cCredentialStatus; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "w3cIssuerIdentity", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return w3cIssuerIdentity.w3cIssuerIdentity; }
|
|
54
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.mjs';
|
|
2
|
+
export { i as fragments } from '../index-CUw8WpjA.mjs';
|
|
3
|
+
export { isValid, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
+
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';
|
|
5
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
6
|
+
import './fragments/document-integrity/w3cSignatureIntegrity.mjs';
|
|
7
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.mjs';
|
|
8
|
+
import './fragments/document-status/w3cCredentialStatus.mjs';
|
|
9
|
+
import './fragments/issuer-identity/w3cIssuerIdentity.mjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.js';
|
|
2
|
+
export { i as fragments } from '../index-DK8Em_TZ.js';
|
|
3
|
+
export { isValid, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
+
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';
|
|
5
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
6
|
+
import './fragments/document-integrity/w3cSignatureIntegrity.js';
|
|
7
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.js';
|
|
8
|
+
import './fragments/document-status/w3cCredentialStatus.js';
|
|
9
|
+
import './fragments/issuer-identity/w3cIssuerIdentity.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var verify = require('./verify');
|
|
4
|
+
var fragments = require('./fragments');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var fragments__namespace = /*#__PURE__*/_interopNamespace(fragments);
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.fragments = fragments__namespace;
|
|
29
|
+
Object.keys(verify).forEach(function (k) {
|
|
30
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return verify[k]; }
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VerifierType } from './fragments/document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
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,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';
|