@trustvc/trustvc 1.0.2 → 1.0.4
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/esm/index.js +5 -2
- package/dist/esm/open-attestation/types.js +1 -1
- package/dist/esm/open-attestation/utils.js +3 -2
- package/dist/esm/token-registry-v4/contractAddress.js +5 -0
- package/dist/esm/token-registry-v4/index.js +2 -0
- package/dist/esm/token-registry-v4/roleHash.js +5 -0
- package/dist/esm/token-registry-v5/contractAddress.js +5 -0
- package/dist/esm/token-registry-v5/index.js +2 -0
- package/dist/esm/token-registry-v5/roleHash.js +5 -0
- package/dist/esm/token-registry-v5/typedContractMethod.js +1 -0
- package/dist/esm/utils/errorMessages/index.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/verify/verify.js +1 -1
- package/dist/index.d.mts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +25 -2
- package/dist/open-attestation/index.d.mts +1 -1
- package/dist/open-attestation/index.d.ts +1 -1
- package/dist/open-attestation/types.js +12 -0
- package/dist/open-attestation/utils.d.mts +7 -6
- package/dist/open-attestation/utils.d.ts +7 -6
- package/dist/open-attestation/utils.js +3 -1
- package/dist/token-registry-v4/contractAddress.d.mts +13 -0
- package/dist/token-registry-v4/contractAddress.d.ts +13 -0
- package/dist/token-registry-v4/contractAddress.js +7 -0
- package/dist/token-registry-v4/index.d.mts +2 -0
- package/dist/token-registry-v4/index.d.ts +2 -0
- package/dist/token-registry-v4/index.js +14 -4
- package/dist/token-registry-v4/roleHash.d.mts +11 -0
- package/dist/token-registry-v4/roleHash.d.ts +11 -0
- package/dist/token-registry-v4/roleHash.js +7 -0
- package/dist/token-registry-v5/contractAddress.d.mts +13 -0
- package/dist/token-registry-v5/contractAddress.d.ts +13 -0
- package/dist/token-registry-v5/contractAddress.js +7 -0
- package/dist/token-registry-v5/index.d.mts +2 -0
- package/dist/token-registry-v5/index.d.ts +2 -0
- package/dist/token-registry-v5/index.js +14 -4
- package/dist/token-registry-v5/roleHash.d.mts +11 -0
- package/dist/token-registry-v5/roleHash.d.ts +11 -0
- package/dist/token-registry-v5/roleHash.js +7 -0
- package/dist/token-registry-v5/typedContractMethod.d.mts +9 -0
- package/dist/token-registry-v5/typedContractMethod.d.ts +9 -0
- package/dist/token-registry-v5/typedContractMethod.js +10 -0
- package/dist/utils/errorMessages/index.d.mts +1 -0
- package/dist/utils/errorMessages/index.d.ts +1 -0
- package/dist/utils/errorMessages/index.js +10 -0
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +7 -0
- package/dist/verify/index.d.mts +2 -2
- package/dist/verify/index.d.ts +2 -2
- package/dist/verify/verify.d.mts +2 -2
- package/dist/verify/verify.d.ts +2 -2
- package/dist/verify/verify.js +4 -0
- package/dist/w3c/types.d.mts +0 -6
- package/dist/w3c/types.d.ts +0 -6
- package/package.json +19 -19
- package/dist/contracts-BsBT1cT2.d.mts +0 -22
- package/dist/contracts-BsBT1cT2.d.ts +0 -22
- package/dist/contracts-Cbud3a4b.d.mts +0 -22
- package/dist/contracts-Cbud3a4b.d.ts +0 -22
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export { supportInterfaceIds as v4SupportInterfaceIds } from './token-registry-v4/supportInterfaceIds';
|
|
2
2
|
export { supportInterfaceIds as v5SupportInterfaceIds } from './token-registry-v5/supportInterfaceIds';
|
|
3
|
-
|
|
3
|
+
export { v4ContractAddress, v4RoleHash } from './token-registry-v4';
|
|
4
|
+
export { v5ContractAddress, v5RoleHash } from './token-registry-v5';
|
|
5
|
+
import * as contracts from '@tradetrust-tt/token-registry-v4/contracts';
|
|
4
6
|
export { contracts as v4Contracts };
|
|
5
|
-
import * as contracts$1 from '
|
|
7
|
+
import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
|
|
6
8
|
export { contracts$1 as v5Contracts };
|
|
9
|
+
export { TypedContractMethod } from './token-registry-v5/typedContractMethod';
|
|
7
10
|
export * from './core';
|
|
8
11
|
export * from './open-attestation';
|
|
9
12
|
export * from './verify';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { v2, v3 } from '@tradetrust-tt/tradetrust';
|
|
@@ -13,7 +13,8 @@ const {
|
|
|
13
13
|
isObfuscated,
|
|
14
14
|
getDocumentData,
|
|
15
15
|
getIssuerAddress,
|
|
16
|
-
diagnose
|
|
16
|
+
diagnose,
|
|
17
|
+
getTemplateURL
|
|
17
18
|
} = utils;
|
|
18
19
|
|
|
19
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document };
|
|
20
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/dist/contracts/common';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CONSTANTS as errorMessages } from '@tradetrust-tt/tradetrust-utils';
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openAttestationVerifiers as openAttestationVerifiers$1, openAttestationDidIdentityProof, openAttestationHash, openAttestationDidSignedDocumentStatus, openAttestationEthereumDocumentStoreStatus, openAttestationEthereumTokenRegistryStatus, openAttestationDnsDidIdentityProof, openAttestationDnsTxtIdentityProof } from '@tradetrust-tt/tt-verify';
|
|
2
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
2
|
+
export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
3
3
|
import { w3cSignatureIntegrity } from './fragments/document-integrity/w3cSignatureIntegrity';
|
|
4
4
|
import { credentialStatusTransferableRecordVerifier } from './fragments/document-status/transferableRecords/transferableRecordVerifier';
|
|
5
5
|
import { w3cCredentialStatus } from './fragments/document-status/w3cCredentialStatus';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export { supportInterfaceIds as v4SupportInterfaceIds } from './token-registry-v4/supportInterfaceIds.mjs';
|
|
2
2
|
export { supportInterfaceIds as v5SupportInterfaceIds } from './token-registry-v5/supportInterfaceIds.mjs';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { roleHash as v4RoleHash } from './token-registry-v4/roleHash.mjs';
|
|
4
|
+
export { contractAddress as v4ContractAddress } from './token-registry-v4/contractAddress.mjs';
|
|
5
|
+
export { roleHash as v5RoleHash } from './token-registry-v5/roleHash.mjs';
|
|
6
|
+
export { contractAddress as v5ContractAddress } from './token-registry-v5/contractAddress.mjs';
|
|
7
|
+
import * as contracts from '@tradetrust-tt/token-registry-v4/contracts';
|
|
8
|
+
export { contracts as v4Contracts };
|
|
9
|
+
import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
|
|
10
|
+
export { contracts$1 as v5Contracts };
|
|
11
|
+
export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/dist/contracts/common';
|
|
5
12
|
export { decrypt } from './core/decrypt.mjs';
|
|
6
13
|
export { encrypt } from './core/encrypt.mjs';
|
|
7
14
|
export { verifyDocument } from './core/verify.mjs';
|
|
8
15
|
export { signOA } from './open-attestation/sign.mjs';
|
|
9
16
|
export { KeyPair } from './open-attestation/types.mjs';
|
|
10
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './open-attestation/utils.mjs';
|
|
17
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './open-attestation/utils.mjs';
|
|
11
18
|
export { verifyOASignature } from './open-attestation/verify.mjs';
|
|
12
19
|
export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 } from './open-attestation/wrap.mjs';
|
|
13
20
|
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify/verify.mjs';
|
|
@@ -20,17 +27,15 @@ export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, Ver
|
|
|
20
27
|
export { PrivateKeyPair } from '@trustvc/w3c-issuer';
|
|
21
28
|
export { i as vc } from './index-1ws_BWZW.mjs';
|
|
22
29
|
export { verifyW3CSignature } from './w3c/verify.mjs';
|
|
23
|
-
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
30
|
+
export { errorMessageHandling, CONSTANTS as errorMessages, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
24
31
|
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
25
32
|
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './utils/stringUtils/index.mjs';
|
|
26
33
|
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
27
34
|
export * from '@tradetrust-tt/dnsprove';
|
|
28
35
|
export { OpenAttestationDocument, SUPPORTED_SIGNING_ALGORITHM, SchemaId, SignedWrappedDocument, WrappedDocument, getData as getDataV2, isSchemaValidationError, obfuscateDocument, v2, v3, validateSchema, __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
29
36
|
export { DiagnoseError } from '@tradetrust-tt/tradetrust/dist/types/shared/utils';
|
|
30
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
31
|
-
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, Verifier, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
32
|
-
import '@tradetrust-tt/token-registry-v4/contracts';
|
|
33
|
-
import '@tradetrust-tt/token-registry-v5/contracts';
|
|
37
|
+
export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
38
|
+
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';
|
|
34
39
|
import '@ethersproject/abstract-signer';
|
|
35
40
|
import '@tradetrust-tt/tradetrust/dist/types/3.0/types';
|
|
36
41
|
import '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.3.0';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export { supportInterfaceIds as v4SupportInterfaceIds } from './token-registry-v4/supportInterfaceIds.js';
|
|
2
2
|
export { supportInterfaceIds as v5SupportInterfaceIds } from './token-registry-v5/supportInterfaceIds.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { roleHash as v4RoleHash } from './token-registry-v4/roleHash.js';
|
|
4
|
+
export { contractAddress as v4ContractAddress } from './token-registry-v4/contractAddress.js';
|
|
5
|
+
export { roleHash as v5RoleHash } from './token-registry-v5/roleHash.js';
|
|
6
|
+
export { contractAddress as v5ContractAddress } from './token-registry-v5/contractAddress.js';
|
|
7
|
+
import * as contracts from '@tradetrust-tt/token-registry-v4/contracts';
|
|
8
|
+
export { contracts as v4Contracts };
|
|
9
|
+
import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
|
|
10
|
+
export { contracts$1 as v5Contracts };
|
|
11
|
+
export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/dist/contracts/common';
|
|
5
12
|
export { decrypt } from './core/decrypt.js';
|
|
6
13
|
export { encrypt } from './core/encrypt.js';
|
|
7
14
|
export { verifyDocument } from './core/verify.js';
|
|
8
15
|
export { signOA } from './open-attestation/sign.js';
|
|
9
16
|
export { KeyPair } from './open-attestation/types.js';
|
|
10
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './open-attestation/utils.js';
|
|
17
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './open-attestation/utils.js';
|
|
11
18
|
export { verifyOASignature } from './open-attestation/verify.js';
|
|
12
19
|
export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 } from './open-attestation/wrap.js';
|
|
13
20
|
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify/verify.js';
|
|
@@ -20,17 +27,15 @@ export { RawVerifiableCredential, SignedVerifiableCredential, SigningResult, Ver
|
|
|
20
27
|
export { PrivateKeyPair } from '@trustvc/w3c-issuer';
|
|
21
28
|
export { i as vc } from './index-1ws_BWZW.js';
|
|
22
29
|
export { verifyW3CSignature } from './w3c/verify.js';
|
|
23
|
-
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
30
|
+
export { errorMessageHandling, CONSTANTS as errorMessages, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
24
31
|
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
25
32
|
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './utils/stringUtils/index.js';
|
|
26
33
|
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
27
34
|
export * from '@tradetrust-tt/dnsprove';
|
|
28
35
|
export { OpenAttestationDocument, SUPPORTED_SIGNING_ALGORITHM, SchemaId, SignedWrappedDocument, WrappedDocument, getData as getDataV2, isSchemaValidationError, obfuscateDocument, v2, v3, validateSchema, __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
29
36
|
export { DiagnoseError } from '@tradetrust-tt/tradetrust/dist/types/shared/utils';
|
|
30
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
31
|
-
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, Verifier, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
32
|
-
import '@tradetrust-tt/token-registry-v4/contracts';
|
|
33
|
-
import '@tradetrust-tt/token-registry-v5/contracts';
|
|
37
|
+
export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
38
|
+
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';
|
|
34
39
|
import '@ethersproject/abstract-signer';
|
|
35
40
|
import '@tradetrust-tt/tradetrust/dist/types/3.0/types';
|
|
36
41
|
import '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.3.0';
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var supportInterfaceIds = require('./token-registry-v4/supportInterfaceIds');
|
|
4
4
|
var supportInterfaceIds$1 = require('./token-registry-v5/supportInterfaceIds');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var tokenRegistryV4 = require('./token-registry-v4');
|
|
6
|
+
var tokenRegistryV5 = require('./token-registry-v5');
|
|
7
|
+
var contracts = require('@tradetrust-tt/token-registry-v4/contracts');
|
|
8
|
+
var contracts$1 = require('@tradetrust-tt/token-registry-v5/contracts');
|
|
9
|
+
var typedContractMethod = require('./token-registry-v5/typedContractMethod');
|
|
7
10
|
var core = require('./core');
|
|
8
11
|
var openAttestation = require('./open-attestation');
|
|
9
12
|
var verify = require('./verify');
|
|
@@ -42,8 +45,28 @@ Object.defineProperty(exports, "v5SupportInterfaceIds", {
|
|
|
42
45
|
enumerable: true,
|
|
43
46
|
get: function () { return supportInterfaceIds$1.supportInterfaceIds; }
|
|
44
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "v4ContractAddress", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return tokenRegistryV4.v4ContractAddress; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "v4RoleHash", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return tokenRegistryV4.v4RoleHash; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "v5ContractAddress", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return tokenRegistryV5.v5ContractAddress; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "v5RoleHash", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return tokenRegistryV5.v5RoleHash; }
|
|
63
|
+
});
|
|
45
64
|
exports.v4Contracts = contracts__namespace;
|
|
46
65
|
exports.v5Contracts = contracts__namespace$1;
|
|
66
|
+
Object.defineProperty(exports, "TypedContractMethod", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return typedContractMethod.TypedContractMethod; }
|
|
69
|
+
});
|
|
47
70
|
Object.keys(core).forEach(function (k) {
|
|
48
71
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
49
72
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { signOA } from './sign.mjs';
|
|
2
2
|
export { KeyPair } from './types.mjs';
|
|
3
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './utils.mjs';
|
|
3
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './utils.mjs';
|
|
4
4
|
export { verifyOASignature } from './verify.mjs';
|
|
5
5
|
export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 } from './wrap.mjs';
|
|
6
6
|
export { OpenAttestationDocument, SUPPORTED_SIGNING_ALGORITHM, SchemaId, SignedWrappedDocument, WrappedDocument, getData as getDataV2, isSchemaValidationError, obfuscateDocument, v2, v3, validateSchema, __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { signOA } from './sign.js';
|
|
2
2
|
export { KeyPair } from './types.js';
|
|
3
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './utils.js';
|
|
3
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document } from './utils.js';
|
|
4
4
|
export { verifyOASignature } from './verify.js';
|
|
5
5
|
export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 } from './wrap.js';
|
|
6
6
|
export { OpenAttestationDocument, SUPPORTED_SIGNING_ALGORITHM, SchemaId, SignedWrappedDocument, WrappedDocument, getData as getDataV2, isSchemaValidationError, obfuscateDocument, v2, v3, validateSchema, __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tradetrust = require('@tradetrust-tt/tradetrust');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "v2", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return tradetrust.v2; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "v3", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return tradetrust.v3; }
|
|
14
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as _tradetrust_tt_tradetrust_dist_types_3_0_types from '@tradetrust-tt/tradetrust/dist/types/3.0/types';
|
|
2
|
+
import * as _tradetrust_tt_tradetrust_dist_types___generated___schema_3_0 from '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.3.0';
|
|
1
3
|
import * as _tradetrust_tt_tradetrust from '@tradetrust-tt/tradetrust';
|
|
2
4
|
import { utils } from '@tradetrust-tt/tradetrust';
|
|
3
5
|
export { SUPPORTED_SIGNING_ALGORITHM, SchemaId, getData as getDataV2, isSchemaValidationError, obfuscateDocument, validateSchema } from '@tradetrust-tt/tradetrust';
|
|
4
|
-
import * as _tradetrust_tt_tradetrust_dist_types_3_0_types from '@tradetrust-tt/tradetrust/dist/types/3.0/types';
|
|
5
|
-
import * as _tradetrust_tt_tradetrust_dist_types___generated___schema_3_0 from '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.3.0';
|
|
6
6
|
import * as _tradetrust_tt_tradetrust_dist_types_2_0_types from '@tradetrust-tt/tradetrust/dist/types/2.0/types';
|
|
7
7
|
import * as _tradetrust_tt_tradetrust_dist_types___generated___schema_2_0 from '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.2.0';
|
|
8
8
|
import * as _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose from '@tradetrust-tt/tradetrust/dist/types/shared/utils/@types/diagnose';
|
|
@@ -14,13 +14,13 @@ declare const isWrappedV2Document: (document: any, { mode }?: {
|
|
|
14
14
|
}) => document is _tradetrust_tt_tradetrust_dist_types_2_0_types.WrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_2_0.OpenAttestationDocument>;
|
|
15
15
|
declare const isSignedWrappedV2Document: (document: any, { mode }?: {
|
|
16
16
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
17
|
-
}) => document is
|
|
17
|
+
}) => document is _tradetrust_tt_tradetrust.SignedWrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_2_0.OpenAttestationDocument>;
|
|
18
18
|
declare const isWrappedV3Document: (document: any, { mode }?: {
|
|
19
19
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
20
20
|
}) => document is _tradetrust_tt_tradetrust_dist_types_3_0_types.WrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_3_0.OpenAttestationDocument>;
|
|
21
21
|
declare const isSignedWrappedV3Document: (document: any, { mode }?: {
|
|
22
22
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
23
|
-
}) => document is
|
|
23
|
+
}) => document is _tradetrust_tt_tradetrust.SignedWrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_3_0.OpenAttestationDocument>;
|
|
24
24
|
declare const isRawV2Document: (document: any, { mode }?: {
|
|
25
25
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
26
26
|
}) => document is _tradetrust_tt_tradetrust_dist_types___generated___schema_2_0.OpenAttestationDocument;
|
|
@@ -34,8 +34,9 @@ declare const diagnose: ({ version, kind, document, debug, mode, }: {
|
|
|
34
34
|
version: "2.0" | "3.0";
|
|
35
35
|
kind: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Kind;
|
|
36
36
|
document: any;
|
|
37
|
-
debug?: boolean
|
|
37
|
+
debug?: boolean;
|
|
38
38
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
39
39
|
}) => utils.DiagnoseError[];
|
|
40
|
+
declare const getTemplateURL: (document: any) => string | undefined;
|
|
40
41
|
|
|
41
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document };
|
|
42
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as _tradetrust_tt_tradetrust_dist_types_3_0_types from '@tradetrust-tt/tradetrust/dist/types/3.0/types';
|
|
2
|
+
import * as _tradetrust_tt_tradetrust_dist_types___generated___schema_3_0 from '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.3.0';
|
|
1
3
|
import * as _tradetrust_tt_tradetrust from '@tradetrust-tt/tradetrust';
|
|
2
4
|
import { utils } from '@tradetrust-tt/tradetrust';
|
|
3
5
|
export { SUPPORTED_SIGNING_ALGORITHM, SchemaId, getData as getDataV2, isSchemaValidationError, obfuscateDocument, validateSchema } from '@tradetrust-tt/tradetrust';
|
|
4
|
-
import * as _tradetrust_tt_tradetrust_dist_types_3_0_types from '@tradetrust-tt/tradetrust/dist/types/3.0/types';
|
|
5
|
-
import * as _tradetrust_tt_tradetrust_dist_types___generated___schema_3_0 from '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.3.0';
|
|
6
6
|
import * as _tradetrust_tt_tradetrust_dist_types_2_0_types from '@tradetrust-tt/tradetrust/dist/types/2.0/types';
|
|
7
7
|
import * as _tradetrust_tt_tradetrust_dist_types___generated___schema_2_0 from '@tradetrust-tt/tradetrust/dist/types/__generated__/schema.2.0';
|
|
8
8
|
import * as _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose from '@tradetrust-tt/tradetrust/dist/types/shared/utils/@types/diagnose';
|
|
@@ -14,13 +14,13 @@ declare const isWrappedV2Document: (document: any, { mode }?: {
|
|
|
14
14
|
}) => document is _tradetrust_tt_tradetrust_dist_types_2_0_types.WrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_2_0.OpenAttestationDocument>;
|
|
15
15
|
declare const isSignedWrappedV2Document: (document: any, { mode }?: {
|
|
16
16
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
17
|
-
}) => document is
|
|
17
|
+
}) => document is _tradetrust_tt_tradetrust.SignedWrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_2_0.OpenAttestationDocument>;
|
|
18
18
|
declare const isWrappedV3Document: (document: any, { mode }?: {
|
|
19
19
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
20
20
|
}) => document is _tradetrust_tt_tradetrust_dist_types_3_0_types.WrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_3_0.OpenAttestationDocument>;
|
|
21
21
|
declare const isSignedWrappedV3Document: (document: any, { mode }?: {
|
|
22
22
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
23
|
-
}) => document is
|
|
23
|
+
}) => document is _tradetrust_tt_tradetrust.SignedWrappedDocument<_tradetrust_tt_tradetrust_dist_types___generated___schema_3_0.OpenAttestationDocument>;
|
|
24
24
|
declare const isRawV2Document: (document: any, { mode }?: {
|
|
25
25
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
26
26
|
}) => document is _tradetrust_tt_tradetrust_dist_types___generated___schema_2_0.OpenAttestationDocument;
|
|
@@ -34,8 +34,9 @@ declare const diagnose: ({ version, kind, document, debug, mode, }: {
|
|
|
34
34
|
version: "2.0" | "3.0";
|
|
35
35
|
kind: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Kind;
|
|
36
36
|
document: any;
|
|
37
|
-
debug?: boolean
|
|
37
|
+
debug?: boolean;
|
|
38
38
|
mode: _tradetrust_tt_tradetrust_dist_types_shared_utils__types_diagnose.Mode;
|
|
39
39
|
}) => utils.DiagnoseError[];
|
|
40
|
+
declare const getTemplateURL: (document: any) => string | undefined;
|
|
40
41
|
|
|
41
|
-
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document };
|
|
42
|
+
export { diagnose, getAssetId, getDocumentData, getIssuerAddress, getTemplateURL, isObfuscated, isRawV2Document, isRawV3Document, isSignedWrappedV2Document, isSignedWrappedV3Document, isTransferableAsset, isWrappedV2Document, isWrappedV3Document };
|
|
@@ -14,7 +14,8 @@ const {
|
|
|
14
14
|
isObfuscated,
|
|
15
15
|
getDocumentData,
|
|
16
16
|
getIssuerAddress,
|
|
17
|
-
diagnose
|
|
17
|
+
diagnose,
|
|
18
|
+
getTemplateURL
|
|
18
19
|
} = tradetrust.utils;
|
|
19
20
|
|
|
20
21
|
Object.defineProperty(exports, "SUPPORTED_SIGNING_ALGORITHM", {
|
|
@@ -45,6 +46,7 @@ exports.diagnose = diagnose;
|
|
|
45
46
|
exports.getAssetId = getAssetId;
|
|
46
47
|
exports.getDocumentData = getDocumentData;
|
|
47
48
|
exports.getIssuerAddress = getIssuerAddress;
|
|
49
|
+
exports.getTemplateURL = getTemplateURL;
|
|
48
50
|
exports.isObfuscated = isObfuscated;
|
|
49
51
|
exports.isRawV2Document = isRawV2Document;
|
|
50
52
|
exports.isRawV3Document = isRawV3Document;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var roleHash = require('./roleHash');
|
|
4
|
+
var contractAddress = require('./contractAddress');
|
|
3
5
|
var tokenRegistryV4 = require('@tradetrust-tt/token-registry-v4');
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
|
|
9
|
+
Object.defineProperty(exports, "v4RoleHash", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return roleHash.roleHash; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "v4ContractAddress", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return contractAddress.contractAddress; }
|
|
16
|
+
});
|
|
7
17
|
Object.keys(tokenRegistryV4).forEach(function (k) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return tokenRegistryV4[k]; }
|
|
21
|
+
});
|
|
12
22
|
});
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var roleHash = require('./roleHash');
|
|
4
|
+
var contractAddress = require('./contractAddress');
|
|
3
5
|
var tokenRegistryV5 = require('@tradetrust-tt/token-registry-v5');
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
|
|
9
|
+
Object.defineProperty(exports, "v5RoleHash", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return roleHash.roleHash; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "v5ContractAddress", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return contractAddress.contractAddress; }
|
|
16
|
+
});
|
|
7
17
|
Object.keys(tokenRegistryV5).forEach(function (k) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return tokenRegistryV5[k]; }
|
|
21
|
+
});
|
|
12
22
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
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';
|
|
@@ -0,0 +1,9 @@
|
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CONSTANTS as errorMessages } from '@tradetrust-tt/tradetrust-utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CONSTANTS as errorMessages } from '@tradetrust-tt/tradetrust-utils';
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
1
|
+
export { errorMessageHandling, CONSTANTS as errorMessages, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
2
2
|
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
3
3
|
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './stringUtils/index.mjs';
|
|
4
4
|
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
1
|
+
export { errorMessageHandling, CONSTANTS as errorMessages, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
2
2
|
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
3
3
|
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './stringUtils/index.js';
|
|
4
4
|
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
package/dist/utils/index.js
CHANGED
|
@@ -4,6 +4,7 @@ var fragment = require('./fragment');
|
|
|
4
4
|
var network = require('./network');
|
|
5
5
|
var stringUtils = require('./stringUtils');
|
|
6
6
|
var supportedChains = require('./supportedChains');
|
|
7
|
+
var errorMessages = require('./errorMessages');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -31,3 +32,9 @@ Object.keys(supportedChains).forEach(function (k) {
|
|
|
31
32
|
get: function () { return supportedChains[k]; }
|
|
32
33
|
});
|
|
33
34
|
});
|
|
35
|
+
Object.keys(errorMessages).forEach(function (k) {
|
|
36
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return errorMessages[k]; }
|
|
39
|
+
});
|
|
40
|
+
});
|
package/dist/verify/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.mjs';
|
|
2
2
|
export { i as fragments } from '../index-CUw8WpjA.mjs';
|
|
3
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
-
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, Verifier, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
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
5
|
import './fragments/document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
6
6
|
import './fragments/document-integrity/w3cSignatureIntegrity.mjs';
|
|
7
7
|
import './fragments/document-status/transferableRecords/transferableRecordVerifier.mjs';
|
package/dist/verify/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.js';
|
|
2
2
|
export { i as fragments } from '../index-DK8Em_TZ.js';
|
|
3
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
-
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, Verifier, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
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
5
|
import './fragments/document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
6
6
|
import './fragments/document-integrity/w3cSignatureIntegrity.js';
|
|
7
7
|
import './fragments/document-status/transferableRecords/transferableRecordVerifier.js';
|
package/dist/verify/verify.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VerifierType } from './fragments/document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
2
2
|
import * as _tradetrust_tt_tt_verify from '@tradetrust-tt/tt-verify';
|
|
3
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
3
|
+
export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
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, Verifier, VerifierOptions } 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
6
|
|
|
7
7
|
declare const verifiers: {
|
|
8
8
|
documentIntegrity: {
|
package/dist/verify/verify.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VerifierType } from './fragments/document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
2
2
|
import * as _tradetrust_tt_tt_verify from '@tradetrust-tt/tt-verify';
|
|
3
|
-
export { createResolver, getIdentifier, isValid, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
3
|
+
export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
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, Verifier, VerifierOptions } 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
6
|
|
|
7
7
|
declare const verifiers: {
|
|
8
8
|
documentIntegrity: {
|
package/dist/verify/verify.js
CHANGED
|
@@ -48,6 +48,10 @@ Object.defineProperty(exports, "isValid", {
|
|
|
48
48
|
enumerable: true,
|
|
49
49
|
get: function () { return ttVerify.isValid; }
|
|
50
50
|
});
|
|
51
|
+
Object.defineProperty(exports, "openAttestationDidIdentityProof", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return ttVerify.openAttestationDidIdentityProof; }
|
|
54
|
+
});
|
|
51
55
|
Object.defineProperty(exports, "utils", {
|
|
52
56
|
enumerable: true,
|
|
53
57
|
get: function () { return ttVerify.utils; }
|
package/dist/w3c/types.d.mts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
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,8 +1,2 @@
|
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustvc/trustvc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "TrustVC library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -112,13 +112,13 @@
|
|
|
112
112
|
"@tradetrust-tt/dnsprove": "^2.15.0",
|
|
113
113
|
"@tradetrust-tt/token-registry-v4": "npm:@tradetrust-tt/token-registry@^4.15.0",
|
|
114
114
|
"@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.1.0",
|
|
115
|
-
"@tradetrust-tt/tradetrust": "^6.
|
|
115
|
+
"@tradetrust-tt/tradetrust": "^6.10.0",
|
|
116
116
|
"@tradetrust-tt/tradetrust-utils": "^2.1.1",
|
|
117
117
|
"@tradetrust-tt/tt-verify": "^9.2.0",
|
|
118
118
|
"@trustvc/w3c-context": "^1.0.0",
|
|
119
119
|
"@trustvc/w3c-credential-status": "^1.0.0",
|
|
120
120
|
"@trustvc/w3c-issuer": "^1.0.0",
|
|
121
|
-
"@trustvc/w3c-vc": "^1.0.
|
|
121
|
+
"@trustvc/w3c-vc": "^1.0.1",
|
|
122
122
|
"did-resolver": "^4.1.0",
|
|
123
123
|
"ethers": "^5.7.2",
|
|
124
124
|
"js-sha3": "^0.9.3",
|
|
@@ -126,35 +126,35 @@
|
|
|
126
126
|
"web-did-resolver": "^2.0.27"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@commitlint/cli": "^19.
|
|
130
|
-
"@commitlint/config-conventional": "^19.
|
|
129
|
+
"@commitlint/cli": "^19.6.0",
|
|
130
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
131
131
|
"@commitlint/config-nx-scopes": "^19.5.0",
|
|
132
|
-
"@commitlint/prompt": "^19.
|
|
132
|
+
"@commitlint/prompt": "^19.6.0",
|
|
133
133
|
"@semantic-release/changelog": "^6.0.3",
|
|
134
134
|
"@semantic-release/git": "^10.0.1",
|
|
135
135
|
"@semantic-release/npm": "^9.0.2",
|
|
136
|
-
"@types/conventional-commits-parser": "^5.0.
|
|
137
|
-
"@types/lodash": "^4.17.
|
|
138
|
-
"@types/node": "^18.
|
|
136
|
+
"@types/conventional-commits-parser": "^5.0.1",
|
|
137
|
+
"@types/lodash": "^4.17.13",
|
|
138
|
+
"@types/node": "^18.19.67",
|
|
139
139
|
"@vitest/coverage-v8": "^1.6.0",
|
|
140
140
|
"cpy": "^11.1.0",
|
|
141
|
-
"dotenv": "^16.4.
|
|
142
|
-
"eslint": "^9.
|
|
141
|
+
"dotenv": "^16.4.7",
|
|
142
|
+
"eslint": "^9.16.0",
|
|
143
143
|
"eslint-config-prettier": "^9.1.0",
|
|
144
144
|
"eslint-formatter-table": "^7.32.1",
|
|
145
145
|
"eslint-plugin-node": "^11.1.0",
|
|
146
146
|
"eslint-plugin-prettier": "^5.2.1",
|
|
147
|
-
"eslint-plugin-promise": "^7.
|
|
148
|
-
"execa": "^9.
|
|
149
|
-
"husky": "^9.1.
|
|
150
|
-
"lint-staged": "^15.2.
|
|
151
|
-
"prettier": "^3.
|
|
147
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
148
|
+
"execa": "^9.5.1",
|
|
149
|
+
"husky": "^9.1.7",
|
|
150
|
+
"lint-staged": "^15.2.10",
|
|
151
|
+
"prettier": "^3.4.2",
|
|
152
152
|
"rimraf": "^5.0.10",
|
|
153
153
|
"semantic-release": "^20.1.3",
|
|
154
154
|
"ts-node": "^10.9.2",
|
|
155
|
-
"tsup": "^8.3.
|
|
155
|
+
"tsup": "^8.3.5",
|
|
156
156
|
"typescript": "^5.7.2",
|
|
157
|
-
"typescript-eslint": "^8.
|
|
157
|
+
"typescript-eslint": "^8.17.0",
|
|
158
158
|
"vite-plugin-dts": "^3.9.1",
|
|
159
159
|
"vitest": "^1.6.0"
|
|
160
160
|
},
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"ethers": "^5.7.2"
|
|
163
163
|
},
|
|
164
164
|
"optionalDependencies": {
|
|
165
|
-
"@rollup/rollup-linux-x64-gnu": "~4.
|
|
165
|
+
"@rollup/rollup-linux-x64-gnu": "~4.28.0"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"ethers": "^5.7.2"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as contracts$1 from '@tradetrust-tt/token-registry-v4/contracts';
|
|
2
|
-
|
|
3
|
-
function _mergeNamespaces(n, m) {
|
|
4
|
-
m.forEach(function (e) {
|
|
5
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
-
if (k !== 'default' && !(k in n)) {
|
|
7
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return e[k]; }
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return Object.freeze(n);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var contracts = /*#__PURE__*/_mergeNamespaces({
|
|
19
|
-
__proto__: null
|
|
20
|
-
}, [contracts$1]);
|
|
21
|
-
|
|
22
|
-
export { contracts as c };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as contracts$1 from '@tradetrust-tt/token-registry-v4/contracts';
|
|
2
|
-
|
|
3
|
-
function _mergeNamespaces(n, m) {
|
|
4
|
-
m.forEach(function (e) {
|
|
5
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
-
if (k !== 'default' && !(k in n)) {
|
|
7
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return e[k]; }
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return Object.freeze(n);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var contracts = /*#__PURE__*/_mergeNamespaces({
|
|
19
|
-
__proto__: null
|
|
20
|
-
}, [contracts$1]);
|
|
21
|
-
|
|
22
|
-
export { contracts as c };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
|
|
2
|
-
|
|
3
|
-
function _mergeNamespaces(n, m) {
|
|
4
|
-
m.forEach(function (e) {
|
|
5
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
-
if (k !== 'default' && !(k in n)) {
|
|
7
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return e[k]; }
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return Object.freeze(n);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var contracts = /*#__PURE__*/_mergeNamespaces({
|
|
19
|
-
__proto__: null
|
|
20
|
-
}, [contracts$1]);
|
|
21
|
-
|
|
22
|
-
export { contracts as c };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
|
|
2
|
-
|
|
3
|
-
function _mergeNamespaces(n, m) {
|
|
4
|
-
m.forEach(function (e) {
|
|
5
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
-
if (k !== 'default' && !(k in n)) {
|
|
7
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return e[k]; }
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return Object.freeze(n);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var contracts = /*#__PURE__*/_mergeNamespaces({
|
|
19
|
-
__proto__: null
|
|
20
|
-
}, [contracts$1]);
|
|
21
|
-
|
|
22
|
-
export { contracts as c };
|