@trustvc/trustvc 1.0.5 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/{core → cjs/core}/documentBuilder.js +7 -5
  2. package/dist/cjs/core/endorsement-chain/fetchEscrowTransfer.js +167 -0
  3. package/dist/cjs/core/endorsement-chain/fetchTokenTransfer.js +58 -0
  4. package/dist/cjs/core/endorsement-chain/helpers.js +99 -0
  5. package/dist/cjs/core/endorsement-chain/index.js +47 -0
  6. package/dist/cjs/core/endorsement-chain/retrieveEndorsementChain.js +43 -0
  7. package/dist/cjs/core/endorsement-chain/useEndorsementChain.js +103 -0
  8. package/dist/{core → cjs/core}/index.js +7 -0
  9. package/dist/cjs/token-registry-v5/typedContractMethod.js +2 -0
  10. package/dist/cjs/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +2 -0
  11. package/dist/cjs/w3c/types.js +2 -0
  12. package/dist/esm/core/documentBuilder.js +7 -5
  13. package/dist/esm/core/endorsement-chain/fetchEscrowTransfer.js +164 -0
  14. package/dist/esm/core/endorsement-chain/fetchTokenTransfer.js +56 -0
  15. package/dist/esm/core/endorsement-chain/helpers.js +94 -0
  16. package/dist/esm/core/endorsement-chain/index.js +6 -0
  17. package/dist/esm/core/endorsement-chain/retrieveEndorsementChain.js +41 -0
  18. package/dist/esm/core/endorsement-chain/types.js +1 -0
  19. package/dist/esm/core/endorsement-chain/useEndorsementChain.js +98 -0
  20. package/dist/esm/core/index.js +1 -0
  21. package/dist/esm/token-registry-v5/index.js +1 -1
  22. package/dist/esm/token-registry-v5/typedContractMethod.js +1 -1
  23. package/dist/esm/w3c/types.js +1 -2
  24. package/dist/types/core/endorsement-chain/fetchEscrowTransfer.d.ts +8 -0
  25. package/dist/types/core/endorsement-chain/fetchTokenTransfer.d.ts +8 -0
  26. package/dist/types/core/endorsement-chain/helpers.d.ts +11 -0
  27. package/dist/types/core/endorsement-chain/index.d.ts +11 -0
  28. package/dist/types/core/endorsement-chain/retrieveEndorsementChain.d.ts +8 -0
  29. package/dist/types/core/endorsement-chain/types.d.ts +50 -0
  30. package/dist/types/core/endorsement-chain/useEndorsementChain.d.ts +14 -0
  31. package/dist/types/core/index.d.ts +16 -0
  32. package/dist/{index-DK8Em_TZ.d.ts → types/index-BVNDN0vp.d.ts} +3 -2
  33. package/dist/{index.d.ts → types/index.d.ts} +13 -3
  34. package/dist/{token-registry-v5 → types/token-registry-v5}/index.d.ts +2 -1
  35. package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.ts +10 -1
  36. package/dist/{verify → types/verify}/fragments/index.d.ts +1 -1
  37. package/dist/{verify → types/verify}/index.d.ts +1 -1
  38. package/package.json +36 -36
  39. package/dist/constants.d.mts +0 -3
  40. package/dist/core/decrypt.d.mts +0 -3
  41. package/dist/core/documentBuilder.d.mts +0 -6
  42. package/dist/core/encrypt.d.mts +0 -3
  43. package/dist/core/index.d.mts +0 -5
  44. package/dist/core/index.d.ts +0 -5
  45. package/dist/core/verify.d.mts +0 -6
  46. package/dist/dnsprove/index.d.mts +0 -1
  47. package/dist/index-1ws_BWZW.d.mts +0 -22
  48. package/dist/index-CUw8WpjA.d.mts +0 -22
  49. package/dist/index-CjwEVGoM.d.mts +0 -22
  50. package/dist/index-ClF4_Nqk.d.mts +0 -22
  51. package/dist/index-DwAYXQn2.d.mts +0 -22
  52. package/dist/index.d.mts +0 -51
  53. package/dist/open-attestation/index.d.mts +0 -13
  54. package/dist/open-attestation/sign.d.mts +0 -9
  55. package/dist/open-attestation/types.d.mts +0 -9
  56. package/dist/open-attestation/utils.d.mts +0 -42
  57. package/dist/open-attestation/verify.d.mts +0 -5
  58. package/dist/open-attestation/wrap.d.mts +0 -9
  59. package/dist/token-registry-v4/contractAddress.d.mts +0 -13
  60. package/dist/token-registry-v4/contracts.d.mts +0 -1
  61. package/dist/token-registry-v4/index.d.mts +0 -3
  62. package/dist/token-registry-v4/roleHash.d.mts +0 -11
  63. package/dist/token-registry-v4/supportInterfaceIds.d.mts +0 -12
  64. package/dist/token-registry-v5/contractAddress.d.mts +0 -13
  65. package/dist/token-registry-v5/contracts.d.mts +0 -1
  66. package/dist/token-registry-v5/index.d.mts +0 -3
  67. package/dist/token-registry-v5/roleHash.d.mts +0 -11
  68. package/dist/token-registry-v5/supportInterfaceIds.d.mts +0 -12
  69. package/dist/token-registry-v5/typedContractMethod.d.mts +0 -9
  70. package/dist/token-registry-v5/typedContractMethod.js +0 -10
  71. package/dist/utils/errorMessages/index.d.mts +0 -1
  72. package/dist/utils/fragment/index.d.mts +0 -1
  73. package/dist/utils/index.d.mts +0 -4
  74. package/dist/utils/network/index.d.mts +0 -1
  75. package/dist/utils/stringUtils/index.d.mts +0 -9
  76. package/dist/utils/supportedChains/index.d.mts +0 -1
  77. package/dist/verify/fragments/document-integrity/w3cSignatureIntegrity.d.mts +0 -5
  78. package/dist/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts +0 -7
  79. package/dist/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.mts +0 -22
  80. package/dist/verify/fragments/document-status/transferableRecords/utils.d.mts +0 -18
  81. package/dist/verify/fragments/document-status/w3cCredentialStatus.d.mts +0 -5
  82. package/dist/verify/fragments/index.d.mts +0 -6
  83. package/dist/verify/fragments/issuer-identity/w3cIssuerIdentity.d.mts +0 -5
  84. package/dist/verify/index.d.mts +0 -9
  85. package/dist/verify/verify.d.mts +0 -29
  86. package/dist/w3c/context/index.d.mts +0 -1
  87. package/dist/w3c/credential-status/index.d.mts +0 -1
  88. package/dist/w3c/index.d.mts +0 -10
  89. package/dist/w3c/issuer/index.d.mts +0 -1
  90. package/dist/w3c/sign.d.mts +0 -6
  91. package/dist/w3c/types.d.mts +0 -2
  92. package/dist/w3c/types.js +0 -27
  93. package/dist/w3c/vc/index.d.mts +0 -1
  94. package/dist/w3c/verify.d.mts +0 -5
  95. package/dist/{constants.js → cjs/constants.js} +0 -0
  96. package/dist/{core → cjs/core}/decrypt.js +0 -0
  97. package/dist/{core → cjs/core}/encrypt.js +0 -0
  98. package/dist/{verify/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js → cjs/core/endorsement-chain/types.js} +0 -0
  99. package/dist/{core → cjs/core}/verify.js +0 -0
  100. package/dist/{dnsprove → cjs/dnsprove}/index.js +0 -0
  101. package/dist/{index.js → cjs/index.js} +0 -0
  102. package/dist/{open-attestation → cjs/open-attestation}/index.js +0 -0
  103. package/dist/{open-attestation → cjs/open-attestation}/sign.js +0 -0
  104. package/dist/{open-attestation → cjs/open-attestation}/types.js +0 -0
  105. package/dist/{open-attestation → cjs/open-attestation}/utils.js +0 -0
  106. package/dist/{open-attestation → cjs/open-attestation}/verify.js +0 -0
  107. package/dist/{open-attestation → cjs/open-attestation}/wrap.js +0 -0
  108. package/dist/{token-registry-v4 → cjs/token-registry-v4}/contractAddress.js +0 -0
  109. package/dist/{token-registry-v4 → cjs/token-registry-v4}/contracts.js +0 -0
  110. package/dist/{token-registry-v4 → cjs/token-registry-v4}/index.js +0 -0
  111. package/dist/{token-registry-v4 → cjs/token-registry-v4}/roleHash.js +0 -0
  112. package/dist/{token-registry-v4 → cjs/token-registry-v4}/supportInterfaceIds.js +0 -0
  113. package/dist/{token-registry-v5 → cjs/token-registry-v5}/contractAddress.js +0 -0
  114. package/dist/{token-registry-v5 → cjs/token-registry-v5}/contracts.js +0 -0
  115. package/dist/{token-registry-v5 → cjs/token-registry-v5}/index.js +5 -5
  116. package/dist/{token-registry-v5 → cjs/token-registry-v5}/roleHash.js +0 -0
  117. package/dist/{token-registry-v5 → cjs/token-registry-v5}/supportInterfaceIds.js +0 -0
  118. package/dist/{utils → cjs/utils}/errorMessages/index.js +0 -0
  119. package/dist/{utils → cjs/utils}/fragment/index.js +0 -0
  120. package/dist/{utils → cjs/utils}/index.js +0 -0
  121. package/dist/{utils → cjs/utils}/network/index.js +0 -0
  122. package/dist/{utils → cjs/utils}/stringUtils/index.js +0 -0
  123. package/dist/{utils → cjs/utils}/supportedChains/index.js +0 -0
  124. package/dist/{verify → cjs/verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
  125. package/dist/{verify → cjs/verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +0 -0
  126. package/dist/{verify → cjs/verify}/fragments/document-status/transferableRecords/utils.js +0 -0
  127. package/dist/{verify → cjs/verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
  128. package/dist/{verify → cjs/verify}/fragments/index.js +0 -0
  129. package/dist/{verify → cjs/verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
  130. package/dist/{verify → cjs/verify}/index.js +0 -0
  131. package/dist/{verify → cjs/verify}/verify.js +0 -0
  132. package/dist/{w3c → cjs/w3c}/context/index.js +0 -0
  133. package/dist/{w3c → cjs/w3c}/credential-status/index.js +0 -0
  134. package/dist/{w3c → cjs/w3c}/index.js +0 -0
  135. package/dist/{w3c → cjs/w3c}/issuer/index.js +0 -0
  136. package/dist/{w3c → cjs/w3c}/sign.js +0 -0
  137. package/dist/{w3c → cjs/w3c}/vc/index.js +0 -0
  138. package/dist/{w3c → cjs/w3c}/verify.js +0 -0
  139. package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
  140. package/dist/{core → types/core}/decrypt.d.ts +0 -0
  141. package/dist/{core → types/core}/documentBuilder.d.ts +0 -0
  142. package/dist/{core → types/core}/encrypt.d.ts +0 -0
  143. package/dist/{core → types/core}/verify.d.ts +0 -0
  144. package/dist/{dnsprove → types/dnsprove}/index.d.ts +0 -0
  145. package/dist/{index-1ws_BWZW.d.ts → types/index-1ws_BWZW.d.ts} +0 -0
  146. package/dist/{index-CjwEVGoM.d.ts → types/index-CjwEVGoM.d.ts} +0 -0
  147. package/dist/{index-ClF4_Nqk.d.ts → types/index-ClF4_Nqk.d.ts} +0 -0
  148. package/dist/{index-DwAYXQn2.d.ts → types/index-DwAYXQn2.d.ts} +0 -0
  149. package/dist/{open-attestation → types/open-attestation}/index.d.ts +0 -0
  150. package/dist/{open-attestation → types/open-attestation}/sign.d.ts +0 -0
  151. package/dist/{open-attestation → types/open-attestation}/types.d.ts +0 -0
  152. package/dist/{open-attestation → types/open-attestation}/utils.d.ts +0 -0
  153. package/dist/{open-attestation → types/open-attestation}/verify.d.ts +0 -0
  154. package/dist/{open-attestation → types/open-attestation}/wrap.d.ts +0 -0
  155. package/dist/{token-registry-v4 → types/token-registry-v4}/contractAddress.d.ts +0 -0
  156. package/dist/{token-registry-v4 → types/token-registry-v4}/contracts.d.ts +0 -0
  157. package/dist/{token-registry-v4 → types/token-registry-v4}/index.d.ts +0 -0
  158. package/dist/{token-registry-v4 → types/token-registry-v4}/roleHash.d.ts +0 -0
  159. package/dist/{token-registry-v4 → types/token-registry-v4}/supportInterfaceIds.d.ts +0 -0
  160. package/dist/{token-registry-v5 → types/token-registry-v5}/contractAddress.d.ts +0 -0
  161. package/dist/{token-registry-v5 → types/token-registry-v5}/contracts.d.ts +0 -0
  162. package/dist/{token-registry-v5 → types/token-registry-v5}/roleHash.d.ts +0 -0
  163. package/dist/{token-registry-v5 → types/token-registry-v5}/supportInterfaceIds.d.ts +0 -0
  164. package/dist/{token-registry-v5 → types/token-registry-v5}/typedContractMethod.d.ts +1 -1
  165. /package/dist/{utils → types/utils}/errorMessages/index.d.ts +0 -0
  166. /package/dist/{utils → types/utils}/fragment/index.d.ts +0 -0
  167. /package/dist/{utils → types/utils}/index.d.ts +0 -0
  168. /package/dist/{utils → types/utils}/network/index.d.ts +0 -0
  169. /package/dist/{utils → types/utils}/stringUtils/index.d.ts +0 -0
  170. /package/dist/{utils → types/utils}/supportedChains/index.d.ts +0 -0
  171. /package/dist/{verify → types/verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts +0 -0
  172. /package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.ts +0 -0
  173. /package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/utils.d.ts +0 -0
  174. /package/dist/{verify → types/verify}/fragments/document-status/w3cCredentialStatus.d.ts +0 -0
  175. /package/dist/{verify → types/verify}/fragments/issuer-identity/w3cIssuerIdentity.d.ts +0 -0
  176. /package/dist/{verify → types/verify}/verify.d.ts +0 -0
  177. /package/dist/{w3c → types/w3c}/context/index.d.ts +0 -0
  178. /package/dist/{w3c → types/w3c}/credential-status/index.d.ts +0 -0
  179. /package/dist/{w3c → types/w3c}/index.d.ts +0 -0
  180. /package/dist/{w3c → types/w3c}/issuer/index.d.ts +0 -0
  181. /package/dist/{w3c → types/w3c}/sign.d.ts +0 -0
  182. /package/dist/{w3c → types/w3c}/types.d.ts +0 -0
  183. /package/dist/{w3c → types/w3c}/vc/index.d.ts +0 -0
  184. /package/dist/{w3c → types/w3c}/verify.d.ts +0 -0
@@ -1,11 +0,0 @@
1
- declare const roleHash: {
2
- DefaultAdmin: any;
3
- MinterRole: any;
4
- AccepterRole: any;
5
- RestorerRole: any;
6
- MinterAdminRole: any;
7
- AccepterAdminRole: any;
8
- RestorerAdminRole: any;
9
- };
10
-
11
- export { roleHash };
@@ -1,12 +0,0 @@
1
- declare const supportInterfaceIds: {
2
- TradeTrustTokenMintable: string;
3
- TradeTrustTokenBurnable: string;
4
- TradeTrustTokenRestorable: string;
5
- TitleEscrow: string;
6
- TitleEscrowSignable: string;
7
- TitleEscrowFactory: string;
8
- AccessControl: string;
9
- SBT: string;
10
- };
11
-
12
- export { supportInterfaceIds };
@@ -1,9 +0,0 @@
1
- export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/dist/contracts/common';
2
- import '@trustvc/w3c-vc';
3
- import '@trustvc/w3c-issuer';
4
- import '@tradetrust-tt/tradetrust-utils';
5
- import '@tradetrust-tt/tradetrust-utils/constants/network';
6
- import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
7
- import '@tradetrust-tt/dnsprove';
8
- import '@tradetrust-tt/token-registry-v4/contracts';
9
- import '@tradetrust-tt/token-registry-v5/contracts';
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var common = require('@tradetrust-tt/token-registry-v5/dist/contracts/common');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "TypedContractMethod", {
8
- enumerable: true,
9
- get: function () { return common.TypedContractMethod; }
10
- });
@@ -1 +0,0 @@
1
- export { CONSTANTS as errorMessages } from '@tradetrust-tt/tradetrust-utils';
@@ -1 +0,0 @@
1
- export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
@@ -1,4 +0,0 @@
1
- export { errorMessageHandling, CONSTANTS as errorMessages, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
2
- export * from '@tradetrust-tt/tradetrust-utils/constants/network';
3
- export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './stringUtils/index.mjs';
4
- export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
@@ -1 +0,0 @@
1
- export * from '@tradetrust-tt/tradetrust-utils/constants/network';
@@ -1,9 +0,0 @@
1
- import '@tradetrust-tt/tradetrust-utils';
2
- import '@tradetrust-tt/tradetrust-utils/constants/network';
3
- import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
4
-
5
- declare function stringToUint8Array(str: string): Uint8Array;
6
- declare function generate32ByteKey(input: string): string;
7
- declare function generate12ByteNonce(input: string): string;
8
-
9
- export { generate12ByteNonce, generate32ByteKey, stringToUint8Array };
@@ -1 +0,0 @@
1
- export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
@@ -1,5 +0,0 @@
1
- import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
-
3
- declare const w3cSignatureIntegrity: Verifier<VerificationFragment>;
4
-
5
- export { w3cSignatureIntegrity };
@@ -1,7 +0,0 @@
1
- import { VerifierType } from './transferableRecordVerifier.types.mjs';
2
- import '@tradetrust-tt/tt-verify';
3
-
4
- declare const TRANSFERABLE_RECORDS_TYPE = "TransferableRecords";
5
- declare const credentialStatusTransferableRecordVerifier: VerifierType;
6
-
7
- export { TRANSFERABLE_RECORDS_TYPE, credentialStatusTransferableRecordVerifier };
@@ -1,22 +0,0 @@
1
- import { OpenAttestationEthereumTokenRegistryStatusCode, VerificationFragment, ErrorVerificationFragment, Verifier } from '@tradetrust-tt/tt-verify';
2
-
3
- type TransferableRecordsErrorReason = {
4
- code: OpenAttestationEthereumTokenRegistryStatusCode;
5
- codeString: string;
6
- message: string;
7
- };
8
- type TransferableRecordsResultFragment = VerificationFragment & {
9
- status: 'VALID' | 'INVALID';
10
- data: {
11
- tokenRegistry: string;
12
- };
13
- reason?: TransferableRecordsErrorReason;
14
- };
15
- type TransferableRecordsErrorFragment = Omit<ErrorVerificationFragment<never>, 'data'> & {
16
- data?: never;
17
- reason: TransferableRecordsErrorReason;
18
- };
19
- type TransferableRecordsVerificationFragment = TransferableRecordsResultFragment | TransferableRecordsErrorFragment;
20
- type VerifierType = Verifier<TransferableRecordsVerificationFragment>;
21
-
22
- export type { TransferableRecordsErrorFragment, TransferableRecordsErrorReason, TransferableRecordsResultFragment, TransferableRecordsVerificationFragment, VerifierType };
@@ -1,18 +0,0 @@
1
- import { ValidTokenRegistryStatus, InvalidTokenRegistryStatus } from '@tradetrust-tt/tt-verify';
2
- import { providers, errors } from 'ethers';
3
-
4
- type EthersError = {
5
- message?: string;
6
- data?: string;
7
- method?: string;
8
- reason?: string;
9
- code?: errors;
10
- };
11
- declare const decodeError: (error: EthersError) => "Document has not been issued under token registry" | "Token registry is not found" | "ENS name is not configured" | "Invalid token registry address" | "Invalid contract arguments";
12
- declare const isTokenMintedOnRegistry: ({ tokenRegistryAddress, tokenId, provider, }: {
13
- tokenRegistryAddress: string;
14
- tokenId: string;
15
- provider: providers.Provider;
16
- }) => Promise<ValidTokenRegistryStatus | InvalidTokenRegistryStatus>;
17
-
18
- export { decodeError, isTokenMintedOnRegistry };
@@ -1,5 +0,0 @@
1
- import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
-
3
- declare const w3cCredentialStatus: Verifier<VerificationFragment>;
4
-
5
- export { w3cCredentialStatus };
@@ -1,6 +0,0 @@
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';
@@ -1,5 +0,0 @@
1
- import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify';
2
-
3
- declare const w3cIssuerIdentity: Verifier<VerificationFragment>;
4
-
5
- export { w3cIssuerIdentity };
@@ -1,9 +0,0 @@
1
- export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.mjs';
2
- export { i as fragments } from '../index-CUw8WpjA.mjs';
3
- export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
4
- export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerificationFragmentWithData, Verifier, 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';
@@ -1,29 +0,0 @@
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 { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, 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, VerificationFragmentWithData, Verifier, 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 };
@@ -1 +0,0 @@
1
- export * from '@trustvc/w3c-context';
@@ -1 +0,0 @@
1
- export * from '@trustvc/w3c-credential-status';
@@ -1,10 +0,0 @@
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';
4
- export { signW3C } from './sign.mjs';
5
- export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, VerificationResult } from '@trustvc/w3c-vc';
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 +0,0 @@
1
- export * from '@trustvc/w3c-issuer';
@@ -1,6 +0,0 @@
1
- import { RawVerifiableCredential, SigningResult } from '@trustvc/w3c-vc';
2
- import { PrivateKeyPair } from '@trustvc/w3c-issuer';
3
-
4
- declare const signW3C: (credential: RawVerifiableCredential, keyPair: PrivateKeyPair, cryptoSuite?: string) => Promise<SigningResult>;
5
-
6
- export { signW3C };
@@ -1,2 +0,0 @@
1
- export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, VerificationResult } from '@trustvc/w3c-vc';
2
- export { PrivateKeyPair } from '@trustvc/w3c-issuer';
package/dist/w3c/types.js DELETED
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- var w3cVc = require('@trustvc/w3c-vc');
4
- var w3cIssuer = require('@trustvc/w3c-issuer');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "RawVerifiableCredential", {
9
- enumerable: true,
10
- get: function () { return w3cVc.RawVerifiableCredential; }
11
- });
12
- Object.defineProperty(exports, "SignedVerifiableCredential", {
13
- enumerable: true,
14
- get: function () { return w3cVc.SignedVerifiableCredential; }
15
- });
16
- Object.defineProperty(exports, "SigningResult", {
17
- enumerable: true,
18
- get: function () { return w3cVc.SigningResult; }
19
- });
20
- Object.defineProperty(exports, "VerificationResult", {
21
- enumerable: true,
22
- get: function () { return w3cVc.VerificationResult; }
23
- });
24
- Object.defineProperty(exports, "PrivateKeyPair", {
25
- enumerable: true,
26
- get: function () { return w3cIssuer.PrivateKeyPair; }
27
- });
@@ -1 +0,0 @@
1
- export * from '@trustvc/w3c-vc';
@@ -1,5 +0,0 @@
1
- import { SignedVerifiableCredential, VerificationResult } from '@trustvc/w3c-vc';
2
-
3
- declare const verifyW3CSignature: (credential: SignedVerifiableCredential) => Promise<VerificationResult>;
4
-
5
- export { verifyW3CSignature };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var roleHash = require('./roleHash');
4
3
  var contractAddress = require('./contractAddress');
4
+ var roleHash = require('./roleHash');
5
5
  var tokenRegistryV5 = require('@tradetrust-tt/token-registry-v5');
6
6
 
7
7
 
8
8
 
9
- Object.defineProperty(exports, "v5RoleHash", {
10
- enumerable: true,
11
- get: function () { return roleHash.roleHash; }
12
- });
13
9
  Object.defineProperty(exports, "v5ContractAddress", {
14
10
  enumerable: true,
15
11
  get: function () { return contractAddress.contractAddress; }
16
12
  });
13
+ Object.defineProperty(exports, "v5RoleHash", {
14
+ enumerable: true,
15
+ get: function () { return roleHash.roleHash; }
16
+ });
17
17
  Object.keys(tokenRegistryV5).forEach(function (k) {
18
18
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
19
  enumerable: true,
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
@@ -1,9 +1,9 @@
1
1
  export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/dist/contracts/common';
2
+ import '@tradetrust-tt/token-registry-v4/contracts';
2
3
  import '@trustvc/w3c-vc';
3
4
  import '@trustvc/w3c-issuer';
4
5
  import '@tradetrust-tt/tradetrust-utils';
5
6
  import '@tradetrust-tt/tradetrust-utils/constants/network';
6
7
  import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
7
8
  import '@tradetrust-tt/dnsprove';
8
- import '@tradetrust-tt/token-registry-v4/contracts';
9
9
  import '@tradetrust-tt/token-registry-v5/contracts';
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