@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.
Files changed (169) hide show
  1. package/dist/contracts-BsBT1cT2.d.mts +22 -0
  2. package/dist/contracts-BsBT1cT2.d.ts +22 -0
  3. package/dist/contracts-Cbud3a4b.d.mts +22 -0
  4. package/dist/contracts-Cbud3a4b.d.ts +22 -0
  5. package/dist/core/decrypt.js +2 -2
  6. package/dist/core/documentBuilder.d.mts +6 -0
  7. package/dist/core/documentBuilder.d.ts +6 -0
  8. package/dist/core/documentBuilder.js +13 -0
  9. package/dist/core/encrypt.js +2 -2
  10. package/dist/core/index.d.mts +3 -3
  11. package/dist/core/index.d.ts +3 -3
  12. package/dist/core/index.js +6 -6
  13. package/dist/core/verify.d.mts +1 -1
  14. package/dist/core/verify.d.ts +1 -1
  15. package/dist/core/verify.js +13 -32
  16. package/dist/dnsprove/index.d.mts +1 -0
  17. package/dist/dnsprove/index.d.ts +1 -0
  18. package/dist/dnsprove/index.js +12 -0
  19. package/dist/esm/core/decrypt.js +1 -1
  20. package/dist/esm/core/documentBuilder.js +11 -0
  21. package/dist/esm/core/encrypt.js +1 -1
  22. package/dist/esm/core/index.js +2 -2
  23. package/dist/esm/core/verify.js +11 -30
  24. package/dist/esm/dnsprove/index.js +1 -0
  25. package/dist/esm/index.js +10 -1
  26. package/dist/esm/open-attestation/index.js +3 -2
  27. package/dist/esm/open-attestation/sign.js +10 -5
  28. package/dist/esm/open-attestation/types.js +1 -1
  29. package/dist/esm/open-attestation/utils.js +19 -0
  30. package/dist/esm/open-attestation/verify.js +2 -2
  31. package/dist/esm/open-attestation/wrap.js +28 -5
  32. package/dist/esm/token-registry-v4/contracts.js +1 -0
  33. package/dist/esm/token-registry-v4/index.js +1 -0
  34. package/dist/esm/token-registry-v4/supportInterfaceIds.js +5 -0
  35. package/dist/esm/token-registry-v5/contracts.js +1 -0
  36. package/dist/esm/token-registry-v5/index.js +1 -0
  37. package/dist/esm/token-registry-v5/supportInterfaceIds.js +5 -0
  38. package/dist/esm/utils/fragment/index.js +1 -0
  39. package/dist/esm/utils/index.js +4 -0
  40. package/dist/esm/utils/network/index.js +1 -0
  41. package/dist/esm/utils/supportedChains/index.js +1 -0
  42. package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +2 -6
  43. package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/utils.js +2 -2
  44. package/dist/esm/verify/fragments/index.js +5 -0
  45. package/dist/esm/verify/index.js +3 -0
  46. package/dist/esm/verify/verify.js +38 -0
  47. package/dist/esm/w3c/context/index.js +1 -0
  48. package/dist/esm/w3c/credential-status/index.js +1 -0
  49. package/dist/esm/w3c/index.js +9 -1
  50. package/dist/esm/w3c/issuer/index.js +1 -0
  51. package/dist/esm/w3c/vc/index.js +1 -0
  52. package/dist/index-1ws_BWZW.d.mts +22 -0
  53. package/dist/index-1ws_BWZW.d.ts +22 -0
  54. package/dist/index-CUw8WpjA.d.mts +22 -0
  55. package/dist/index-CjwEVGoM.d.mts +22 -0
  56. package/dist/index-CjwEVGoM.d.ts +22 -0
  57. package/dist/index-ClF4_Nqk.d.mts +22 -0
  58. package/dist/index-ClF4_Nqk.d.ts +22 -0
  59. package/dist/index-DK8Em_TZ.d.ts +22 -0
  60. package/dist/index-DwAYXQn2.d.mts +22 -0
  61. package/dist/index-DwAYXQn2.d.ts +22 -0
  62. package/dist/index.d.mts +40 -8
  63. package/dist/index.d.ts +40 -8
  64. package/dist/index.js +70 -14
  65. package/dist/open-attestation/index.d.mts +10 -3
  66. package/dist/open-attestation/index.d.ts +10 -3
  67. package/dist/open-attestation/index.js +15 -8
  68. package/dist/open-attestation/sign.d.mts +5 -3
  69. package/dist/open-attestation/sign.d.ts +5 -3
  70. package/dist/open-attestation/sign.js +10 -5
  71. package/dist/open-attestation/types.d.mts +2 -1
  72. package/dist/open-attestation/types.d.ts +2 -1
  73. package/dist/open-attestation/types.js +0 -16
  74. package/dist/open-attestation/utils.d.mts +41 -0
  75. package/dist/open-attestation/utils.d.ts +41 -0
  76. package/dist/open-attestation/utils.js +55 -0
  77. package/dist/open-attestation/verify.d.mts +2 -2
  78. package/dist/open-attestation/verify.d.ts +2 -2
  79. package/dist/open-attestation/verify.js +3 -3
  80. package/dist/open-attestation/wrap.d.mts +7 -3
  81. package/dist/open-attestation/wrap.d.ts +7 -3
  82. package/dist/open-attestation/wrap.js +39 -6
  83. package/dist/token-registry-v4/contracts.d.mts +1 -0
  84. package/dist/token-registry-v4/contracts.d.ts +1 -0
  85. package/dist/token-registry-v4/contracts.js +12 -0
  86. package/dist/token-registry-v4/index.d.mts +1 -0
  87. package/dist/token-registry-v4/index.d.ts +1 -0
  88. package/dist/token-registry-v4/index.js +12 -0
  89. package/dist/token-registry-v4/supportInterfaceIds.d.mts +12 -0
  90. package/dist/token-registry-v4/supportInterfaceIds.d.ts +12 -0
  91. package/dist/token-registry-v4/supportInterfaceIds.js +7 -0
  92. package/dist/token-registry-v5/contracts.d.mts +1 -0
  93. package/dist/token-registry-v5/contracts.d.ts +1 -0
  94. package/dist/token-registry-v5/contracts.js +12 -0
  95. package/dist/token-registry-v5/index.d.mts +1 -0
  96. package/dist/token-registry-v5/index.d.ts +1 -0
  97. package/dist/token-registry-v5/index.js +12 -0
  98. package/dist/token-registry-v5/supportInterfaceIds.d.mts +12 -0
  99. package/dist/token-registry-v5/supportInterfaceIds.d.ts +12 -0
  100. package/dist/token-registry-v5/supportInterfaceIds.js +7 -0
  101. package/dist/utils/fragment/index.d.mts +1 -0
  102. package/dist/utils/fragment/index.d.ts +1 -0
  103. package/dist/utils/fragment/index.js +14 -0
  104. package/dist/utils/index.d.mts +4 -0
  105. package/dist/utils/index.d.ts +4 -0
  106. package/dist/utils/index.js +33 -0
  107. package/dist/utils/network/index.d.mts +1 -0
  108. package/dist/utils/network/index.d.ts +1 -0
  109. package/dist/utils/network/index.js +12 -0
  110. package/dist/utils/{stringUtils.d.ts → stringUtils/index.d.mts} +4 -0
  111. package/dist/utils/{stringUtils.d.mts → stringUtils/index.d.ts} +4 -0
  112. package/dist/utils/supportedChains/index.d.mts +1 -0
  113. package/dist/utils/supportedChains/index.d.ts +1 -0
  114. package/dist/utils/supportedChains/index.js +12 -0
  115. package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.mts +1 -1
  116. package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts +1 -1
  117. package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts +1 -1
  118. package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.ts +1 -1
  119. package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +14 -18
  120. package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.mts +1 -1
  121. package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.ts +1 -1
  122. package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.mts +1 -1
  123. package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.ts +1 -1
  124. package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.js +9 -9
  125. package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.mts +1 -1
  126. package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.ts +1 -1
  127. package/dist/verify/fragments/index.d.mts +6 -0
  128. package/dist/verify/fragments/index.d.ts +6 -0
  129. package/dist/verify/fragments/index.js +54 -0
  130. package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.mts +1 -1
  131. package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.ts +1 -1
  132. package/dist/verify/index.d.mts +9 -0
  133. package/dist/verify/index.d.ts +9 -0
  134. package/dist/verify/index.js +34 -0
  135. package/dist/verify/verify.d.mts +29 -0
  136. package/dist/verify/verify.d.ts +29 -0
  137. package/dist/verify/verify.js +53 -0
  138. package/dist/w3c/context/index.d.mts +1 -0
  139. package/dist/w3c/context/index.d.ts +1 -0
  140. package/dist/w3c/context/index.js +12 -0
  141. package/dist/w3c/credential-status/index.d.mts +1 -0
  142. package/dist/w3c/credential-status/index.d.ts +1 -0
  143. package/dist/w3c/credential-status/index.js +12 -0
  144. package/dist/w3c/index.d.mts +7 -1
  145. package/dist/w3c/index.d.ts +7 -1
  146. package/dist/w3c/index.js +46 -15
  147. package/dist/w3c/issuer/index.d.mts +1 -0
  148. package/dist/w3c/issuer/index.d.ts +1 -0
  149. package/dist/w3c/issuer/index.js +12 -0
  150. package/dist/w3c/types.d.mts +6 -0
  151. package/dist/w3c/types.d.ts +6 -0
  152. package/dist/w3c/vc/index.d.mts +1 -0
  153. package/dist/w3c/vc/index.d.ts +1 -0
  154. package/dist/w3c/vc/index.js +12 -0
  155. package/package.json +100 -10
  156. /package/dist/{config.d.mts → constants.d.mts} +0 -0
  157. /package/dist/{config.d.ts → constants.d.ts} +0 -0
  158. /package/dist/{config.js → constants.js} +0 -0
  159. /package/dist/esm/{config.js → constants.js} +0 -0
  160. /package/dist/esm/utils/{stringUtils.js → stringUtils/index.js} +0 -0
  161. /package/dist/esm/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
  162. /package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
  163. /package/dist/esm/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
  164. /package/dist/esm/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
  165. /package/dist/utils/{stringUtils.js → stringUtils/index.js} +0 -0
  166. /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
  167. /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
  168. /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
  169. /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 '@govtechsg/oa-verify';
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 oaVerify = require('@govtechsg/oa-verify');
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 (openAttestation.v4.isSignedWrappedDocument(document)) {
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 oaVerify.CodedError(
41
+ throw new ttVerify.CodedError(
46
42
  "Document's credentialStatus does not have tokenRegistry",
47
- oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT,
48
- oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT]
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 oaVerify.CodedError(
48
+ throw new ttVerify.CodedError(
53
49
  "Document's credentialStatus does not have tokenNetwork.chainId",
54
- oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT,
55
- oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNRECOGNIZED_DOCUMENT]
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 (oaVerify.ValidTokenRegistryStatus.guard(mintStatus)) {
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: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.SKIPPED,
86
- codeString: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.SKIPPED],
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 oaVerify.CodedError) {
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: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNEXPECTED_ERROR,
123
- codeString: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.UNEXPECTED_ERROR],
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 '@govtechsg/oa-verify';
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 '@govtechsg/oa-verify';
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 { ValidTokenRegistryStatus, InvalidTokenRegistryStatus } from '@govtechsg/oa-verify';
1
+ import { ValidTokenRegistryStatus, InvalidTokenRegistryStatus } from '@tradetrust-tt/tt-verify';
2
2
  import { providers, errors } from 'ethers';
3
3
 
4
4
  type EthersError = {
@@ -1,4 +1,4 @@
1
- import { ValidTokenRegistryStatus, InvalidTokenRegistryStatus } from '@govtechsg/oa-verify';
1
+ import { ValidTokenRegistryStatus, InvalidTokenRegistryStatus } from '@tradetrust-tt/tt-verify';
2
2
  import { providers, errors } from 'ethers';
3
3
 
4
4
  type EthersError = {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var oaVerify = require('@govtechsg/oa-verify');
4
- var contracts = require('@tradetrust-tt/token-registry/dist/contracts');
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 oaVerify.CodedError(
34
+ throw new ttVerify.CodedError(
35
35
  "Unable to connect to the network, please try again later",
36
- oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.SERVER_ERROR,
37
- oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.SERVER_ERROR]
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: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED,
56
- codeString: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED],
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: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED,
68
- codeString: oaVerify.OpenAttestationEthereumTokenRegistryStatusCode[oaVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED]
67
+ code: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED,
68
+ codeString: ttVerify.OpenAttestationEthereumTokenRegistryStatusCode[ttVerify.OpenAttestationEthereumTokenRegistryStatusCode.DOCUMENT_NOT_MINTED]
69
69
  }
70
70
  };
71
71
  }
@@ -1,4 +1,4 @@
1
- import { Verifier, VerificationFragment } from '@govtechsg/oa-verify';
1
+ import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
2
 
3
3
  declare const w3cCredentialStatus: Verifier<VerificationFragment>;
4
4
 
@@ -1,4 +1,4 @@
1
- import { Verifier, VerificationFragment } from '@govtechsg/oa-verify';
1
+ import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
2
 
3
3
  declare const w3cCredentialStatus: Verifier<VerificationFragment>;
4
4
 
@@ -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
+ });
@@ -1,4 +1,4 @@
1
- import { Verifier, VerificationFragment } from '@govtechsg/oa-verify';
1
+ import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
2
 
3
3
  declare const w3cIssuerIdentity: Verifier<VerificationFragment>;
4
4
 
@@ -1,4 +1,4 @@
1
- import { Verifier, VerificationFragment } from '@govtechsg/oa-verify';
1
+ import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
2
 
3
3
  declare const w3cIssuerIdentity: Verifier<VerificationFragment>;
4
4
 
@@ -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
+ });
@@ -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';
@@ -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
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
11
- enumerable: true,
12
- get: function () { return sign[k]; }
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
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
23
- enumerable: true,
24
- get: function () { return types[k]; }
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
+ });
@@ -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';
@@ -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';