@trustvc/trustvc 1.0.0-alpha.10 → 1.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts-BsBT1cT2.d.mts +22 -0
- package/dist/contracts-BsBT1cT2.d.ts +22 -0
- package/dist/contracts-Cbud3a4b.d.mts +22 -0
- package/dist/contracts-Cbud3a4b.d.ts +22 -0
- package/dist/core/decrypt.js +2 -2
- package/dist/core/documentBuilder.d.mts +6 -0
- package/dist/core/documentBuilder.d.ts +6 -0
- package/dist/core/documentBuilder.js +13 -0
- package/dist/core/encrypt.js +2 -2
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +6 -6
- package/dist/core/verify.d.mts +1 -1
- package/dist/core/verify.d.ts +1 -1
- package/dist/core/verify.js +11 -26
- package/dist/dnsprove/index.d.mts +1 -0
- package/dist/dnsprove/index.d.ts +1 -0
- package/dist/dnsprove/index.js +12 -0
- package/dist/esm/core/decrypt.js +1 -1
- package/dist/esm/core/documentBuilder.js +11 -0
- package/dist/esm/core/encrypt.js +1 -1
- package/dist/esm/core/index.js +2 -2
- package/dist/esm/core/verify.js +9 -24
- package/dist/esm/dnsprove/index.js +1 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/open-attestation/types.js +1 -1
- package/dist/esm/open-attestation/utils.js +19 -1
- package/dist/esm/open-attestation/wrap.js +15 -15
- package/dist/esm/token-registry-v4/contracts.js +1 -0
- package/dist/esm/token-registry-v4/index.js +1 -0
- package/dist/esm/token-registry-v4/supportInterfaceIds.js +5 -0
- package/dist/esm/token-registry-v5/contracts.js +1 -0
- package/dist/esm/token-registry-v5/index.js +1 -0
- package/dist/esm/token-registry-v5/supportInterfaceIds.js +5 -0
- package/dist/esm/utils/fragment/index.js +1 -0
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/utils/network/index.js +1 -0
- package/dist/esm/utils/supportedChains/index.js +1 -0
- package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/utils.js +1 -1
- package/dist/esm/verify/fragments/index.js +5 -0
- package/dist/esm/verify/index.js +3 -0
- package/dist/esm/verify/verify.js +38 -0
- package/dist/esm/w3c/context/index.js +1 -0
- package/dist/esm/w3c/credential-status/index.js +1 -0
- package/dist/esm/w3c/index.js +9 -1
- package/dist/esm/w3c/issuer/index.js +1 -0
- package/dist/esm/w3c/vc/index.js +1 -0
- package/dist/index-1ws_BWZW.d.mts +22 -0
- package/dist/index-1ws_BWZW.d.ts +22 -0
- package/dist/index-CUw8WpjA.d.mts +22 -0
- package/dist/index-CjwEVGoM.d.mts +22 -0
- package/dist/index-CjwEVGoM.d.ts +22 -0
- package/dist/index-ClF4_Nqk.d.mts +22 -0
- package/dist/index-ClF4_Nqk.d.ts +22 -0
- package/dist/index-DK8Em_TZ.d.ts +22 -0
- package/dist/index-DwAYXQn2.d.mts +22 -0
- package/dist/index-DwAYXQn2.d.ts +22 -0
- package/dist/index.d.mts +39 -7
- package/dist/index.d.ts +39 -7
- package/dist/index.js +70 -14
- package/dist/open-attestation/index.d.mts +9 -2
- package/dist/open-attestation/index.d.ts +9 -2
- package/dist/open-attestation/sign.d.mts +1 -0
- package/dist/open-attestation/sign.d.ts +1 -0
- package/dist/open-attestation/types.d.mts +2 -1
- package/dist/open-attestation/types.d.ts +2 -1
- package/dist/open-attestation/types.js +0 -16
- package/dist/open-attestation/utils.d.mts +41 -3
- package/dist/open-attestation/utils.d.ts +41 -3
- package/dist/open-attestation/utils.js +48 -3
- package/dist/open-attestation/wrap.d.mts +6 -6
- package/dist/open-attestation/wrap.d.ts +6 -6
- package/dist/open-attestation/wrap.js +18 -18
- package/dist/token-registry-v4/contracts.d.mts +1 -0
- package/dist/token-registry-v4/contracts.d.ts +1 -0
- package/dist/token-registry-v4/contracts.js +12 -0
- package/dist/token-registry-v4/index.d.mts +1 -0
- package/dist/token-registry-v4/index.d.ts +1 -0
- package/dist/token-registry-v4/index.js +12 -0
- package/dist/token-registry-v4/supportInterfaceIds.d.mts +12 -0
- package/dist/token-registry-v4/supportInterfaceIds.d.ts +12 -0
- package/dist/token-registry-v4/supportInterfaceIds.js +7 -0
- package/dist/token-registry-v5/contracts.d.mts +1 -0
- package/dist/token-registry-v5/contracts.d.ts +1 -0
- package/dist/token-registry-v5/contracts.js +12 -0
- package/dist/token-registry-v5/index.d.mts +1 -0
- package/dist/token-registry-v5/index.d.ts +1 -0
- package/dist/token-registry-v5/index.js +12 -0
- package/dist/token-registry-v5/supportInterfaceIds.d.mts +12 -0
- package/dist/token-registry-v5/supportInterfaceIds.d.ts +12 -0
- package/dist/token-registry-v5/supportInterfaceIds.js +7 -0
- package/dist/utils/fragment/index.d.mts +1 -0
- package/dist/utils/fragment/index.d.ts +1 -0
- package/dist/utils/fragment/index.js +14 -0
- package/dist/utils/index.d.mts +4 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +33 -0
- package/dist/utils/network/index.d.mts +1 -0
- package/dist/utils/network/index.d.ts +1 -0
- package/dist/utils/network/index.js +12 -0
- package/dist/utils/{stringUtils.d.ts → stringUtils/index.d.mts} +4 -0
- package/dist/utils/{stringUtils.d.mts → stringUtils/index.d.ts} +4 -0
- package/dist/utils/supportedChains/index.d.mts +1 -0
- package/dist/utils/supportedChains/index.d.ts +1 -0
- package/dist/utils/supportedChains/index.js +12 -0
- package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.js +1 -1
- package/dist/verify/fragments/index.d.mts +6 -0
- package/dist/verify/fragments/index.d.ts +6 -0
- package/dist/verify/fragments/index.js +54 -0
- package/dist/verify/index.d.mts +9 -0
- package/dist/verify/index.d.ts +9 -0
- package/dist/verify/index.js +34 -0
- package/dist/verify/verify.d.mts +29 -0
- package/dist/verify/verify.d.ts +29 -0
- package/dist/verify/verify.js +53 -0
- package/dist/w3c/context/index.d.mts +1 -0
- package/dist/w3c/context/index.d.ts +1 -0
- package/dist/w3c/context/index.js +12 -0
- package/dist/w3c/credential-status/index.d.mts +1 -0
- package/dist/w3c/credential-status/index.d.ts +1 -0
- package/dist/w3c/credential-status/index.js +12 -0
- package/dist/w3c/index.d.mts +7 -1
- package/dist/w3c/index.d.ts +7 -1
- package/dist/w3c/index.js +46 -15
- package/dist/w3c/issuer/index.d.mts +1 -0
- package/dist/w3c/issuer/index.d.ts +1 -0
- package/dist/w3c/issuer/index.js +12 -0
- package/dist/w3c/types.d.mts +6 -0
- package/dist/w3c/types.d.ts +6 -0
- package/dist/w3c/vc/index.d.mts +1 -0
- package/dist/w3c/vc/index.d.ts +1 -0
- package/dist/w3c/vc/index.js +12 -0
- package/package.json +90 -3
- /package/dist/{config.d.mts → constants.d.mts} +0 -0
- /package/dist/{config.d.ts → constants.d.ts} +0 -0
- /package/dist/{config.js → constants.js} +0 -0
- /package/dist/esm/{config.js → constants.js} +0 -0
- /package/dist/esm/utils/{stringUtils.js → stringUtils/index.js} +0 -0
- /package/dist/esm/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
- /package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +0 -0
- /package/dist/esm/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
- /package/dist/esm/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
- /package/dist/esm/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
- /package/dist/utils/{stringUtils.js → stringUtils/index.js} +0 -0
- /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/transferableRecords/utils.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.mts +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.d.ts +0 -0
- /package/dist/{core → verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.mts +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.d.ts +0 -0
- /package/dist/{core → verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
|
@@ -2,9 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
var tradetrust = require('@tradetrust-tt/tradetrust');
|
|
4
4
|
|
|
5
|
+
const {
|
|
6
|
+
isTransferableAsset,
|
|
7
|
+
getAssetId,
|
|
8
|
+
isWrappedV2Document,
|
|
9
|
+
isSignedWrappedV2Document,
|
|
10
|
+
isWrappedV3Document,
|
|
11
|
+
isSignedWrappedV3Document,
|
|
12
|
+
isRawV2Document,
|
|
13
|
+
isRawV3Document,
|
|
14
|
+
isObfuscated,
|
|
15
|
+
getDocumentData,
|
|
16
|
+
getIssuerAddress,
|
|
17
|
+
diagnose
|
|
18
|
+
} = tradetrust.utils;
|
|
5
19
|
|
|
6
|
-
|
|
7
|
-
|
|
20
|
+
Object.defineProperty(exports, "SUPPORTED_SIGNING_ALGORITHM", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return tradetrust.SUPPORTED_SIGNING_ALGORITHM; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SchemaId", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return tradetrust.SchemaId; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "getDataV2", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return tradetrust.getData; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "isSchemaValidationError", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return tradetrust.isSchemaValidationError; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "obfuscateDocument", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return tradetrust.obfuscateDocument; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "validateSchema", {
|
|
8
41
|
enumerable: true,
|
|
9
|
-
get: function () { return tradetrust.
|
|
42
|
+
get: function () { return tradetrust.validateSchema; }
|
|
10
43
|
});
|
|
44
|
+
exports.diagnose = diagnose;
|
|
45
|
+
exports.getAssetId = getAssetId;
|
|
46
|
+
exports.getDocumentData = getDocumentData;
|
|
47
|
+
exports.getIssuerAddress = getIssuerAddress;
|
|
48
|
+
exports.isObfuscated = isObfuscated;
|
|
49
|
+
exports.isRawV2Document = isRawV2Document;
|
|
50
|
+
exports.isRawV3Document = isRawV3Document;
|
|
51
|
+
exports.isSignedWrappedV2Document = isSignedWrappedV2Document;
|
|
52
|
+
exports.isSignedWrappedV3Document = isSignedWrappedV3Document;
|
|
53
|
+
exports.isTransferableAsset = isTransferableAsset;
|
|
54
|
+
exports.isWrappedV2Document = isWrappedV2Document;
|
|
55
|
+
exports.isWrappedV3Document = isWrappedV3Document;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v2, OpenAttestationDocument, WrappedDocument } from '@tradetrust-tt/tradetrust';
|
|
2
|
-
export {
|
|
2
|
+
export { __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
4
|
+
declare const wrapOADocumentV2: <T extends v2.OpenAttestationDocument>(document: T) => Promise<v2.WrappedDocument<T>>;
|
|
5
|
+
declare const wrapOADocumentsV2: <T extends v2.OpenAttestationDocument>(documents: T[]) => Promise<v2.WrappedDocument<T>[]>;
|
|
6
|
+
declare function wrapOADocument<T extends OpenAttestationDocument>(document: T): Promise<WrappedDocument<T>>;
|
|
7
|
+
declare function wrapOADocuments<T extends OpenAttestationDocument>(documents: T[]): Promise<WrappedDocument<T>[]>;
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v2, OpenAttestationDocument, WrappedDocument } from '@tradetrust-tt/tradetrust';
|
|
2
|
-
export {
|
|
2
|
+
export { __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
4
|
+
declare const wrapOADocumentV2: <T extends v2.OpenAttestationDocument>(document: T) => Promise<v2.WrappedDocument<T>>;
|
|
5
|
+
declare const wrapOADocumentsV2: <T extends v2.OpenAttestationDocument>(documents: T[]) => Promise<v2.WrappedDocument<T>[]>;
|
|
6
|
+
declare function wrapOADocument<T extends OpenAttestationDocument>(document: T): Promise<WrappedDocument<T>>;
|
|
7
|
+
declare function wrapOADocuments<T extends OpenAttestationDocument>(documents: T[]): Promise<WrappedDocument<T>[]>;
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { wrapOADocument, wrapOADocumentV2, wrapOADocuments, wrapOADocumentsV2 };
|
|
@@ -4,42 +4,42 @@ var tradetrust = require('@tradetrust-tt/tradetrust');
|
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
const
|
|
7
|
+
const wrapOADocumentV2 = /* @__PURE__ */ __name(async (document) => {
|
|
8
8
|
return tradetrust.wrapDocument(document);
|
|
9
|
-
}, "
|
|
10
|
-
const
|
|
9
|
+
}, "wrapOADocumentV2");
|
|
10
|
+
const wrapOADocumentsV2 = /* @__PURE__ */ __name(async (documents) => {
|
|
11
11
|
return tradetrust.wrapDocuments(documents);
|
|
12
|
-
}, "
|
|
13
|
-
async function
|
|
12
|
+
}, "wrapOADocumentsV2");
|
|
13
|
+
async function wrapOADocument(document) {
|
|
14
14
|
if (tradetrust.utils.isRawV2Document(document)) {
|
|
15
|
-
return
|
|
15
|
+
return wrapOADocumentV2(document);
|
|
16
16
|
} else if (tradetrust.utils.isRawV3Document(document)) {
|
|
17
17
|
return tradetrust.__unsafe__use__it__at__your__own__risks__wrapDocument(document);
|
|
18
18
|
} else {
|
|
19
19
|
throw new Error("Unsupported document version");
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
__name(
|
|
23
|
-
async function
|
|
22
|
+
__name(wrapOADocument, "wrapOADocument");
|
|
23
|
+
async function wrapOADocuments(documents) {
|
|
24
24
|
if (documents.every((s) => tradetrust.utils.isRawV2Document(s))) {
|
|
25
|
-
return
|
|
25
|
+
return wrapOADocumentsV2(documents);
|
|
26
26
|
} else if (documents.every((s) => tradetrust.utils.isRawV3Document(s))) {
|
|
27
27
|
return tradetrust.__unsafe__use__it__at__your__own__risks__wrapDocuments(documents);
|
|
28
28
|
} else {
|
|
29
29
|
throw new Error("Unsupported documents version");
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
__name(
|
|
32
|
+
__name(wrapOADocuments, "wrapOADocuments");
|
|
33
33
|
|
|
34
|
-
Object.defineProperty(exports, "
|
|
34
|
+
Object.defineProperty(exports, "wrapOADocumentV3", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return tradetrust.
|
|
36
|
+
get: function () { return tradetrust.__unsafe__use__it__at__your__own__risks__wrapDocument; }
|
|
37
37
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
38
|
+
Object.defineProperty(exports, "wrapOADocumentsV3", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return tradetrust.
|
|
40
|
+
get: function () { return tradetrust.__unsafe__use__it__at__your__own__risks__wrapDocuments; }
|
|
41
41
|
});
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
42
|
+
exports.wrapOADocument = wrapOADocument;
|
|
43
|
+
exports.wrapOADocumentV2 = wrapOADocumentV2;
|
|
44
|
+
exports.wrapOADocuments = wrapOADocuments;
|
|
45
|
+
exports.wrapOADocumentsV2 = wrapOADocumentsV2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v4/contracts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v4/contracts';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var contracts = require('@tradetrust-tt/token-registry-v4/contracts');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(contracts).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return contracts[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v4';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v4';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tokenRegistryV4 = require('@tradetrust-tt/token-registry-v4');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(tokenRegistryV4).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return tokenRegistryV4[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v5/contracts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v5/contracts';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var contracts = require('@tradetrust-tt/token-registry-v5/contracts');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(contracts).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return contracts[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v5';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/token-registry-v5';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tokenRegistryV5 = require('@tradetrust-tt/token-registry-v5');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(tokenRegistryV5).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return tokenRegistryV5[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tradetrustUtils = require('@tradetrust-tt/tradetrust-utils');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "errorMessageHandling", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return tradetrustUtils.errorMessageHandling; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "interpretFragments", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return tradetrustUtils.interpretFragments; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { errorMessageHandling, 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';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
|
2
|
+
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
3
|
+
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './stringUtils/index.js';
|
|
4
|
+
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fragment = require('./fragment');
|
|
4
|
+
var network = require('./network');
|
|
5
|
+
var stringUtils = require('./stringUtils');
|
|
6
|
+
var supportedChains = require('./supportedChains');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.keys(fragment).forEach(function (k) {
|
|
11
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return fragment[k]; }
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
Object.keys(network).forEach(function (k) {
|
|
17
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return network[k]; }
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
Object.keys(stringUtils).forEach(function (k) {
|
|
23
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return stringUtils[k]; }
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
Object.keys(supportedChains).forEach(function (k) {
|
|
29
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return supportedChains[k]; }
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var network = require('@tradetrust-tt/tradetrust-utils/constants/network');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(network).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return network[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import '@tradetrust-tt/tradetrust-utils';
|
|
2
|
+
import '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
3
|
+
import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
4
|
+
|
|
1
5
|
declare function stringToUint8Array(str: string): Uint8Array;
|
|
2
6
|
declare function generate32ByteKey(input: string): string;
|
|
3
7
|
declare function generate12ByteNonce(input: string): string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import '@tradetrust-tt/tradetrust-utils';
|
|
2
|
+
import '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
3
|
+
import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
4
|
+
|
|
1
5
|
declare function stringToUint8Array(str: string): Uint8Array;
|
|
2
6
|
declare function generate32ByteKey(input: string): string;
|
|
3
7
|
declare function generate12ByteNonce(input: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var supportedChains = require('@tradetrust-tt/tradetrust-utils/constants/supportedChains');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(supportedChains).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return supportedChains[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var contracts = require('@tradetrust-tt/token-registry-v5/dist/contracts');
|
|
3
4
|
var ttVerify = require('@tradetrust-tt/tt-verify');
|
|
4
|
-
var contracts = require('@tradetrust-tt/token-registry/dist/contracts');
|
|
5
5
|
var ethers = require('ethers');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { openAttestationDidIdentityProof, openAttestationDidSignedDocumentStatus, openAttestationDnsDidIdentityProof, openAttestationDnsTxtIdentityProof, openAttestationEthereumDocumentStoreStatus, openAttestationEthereumTokenRegistryStatus, openAttestationHash } from '@tradetrust-tt/tt-verify';
|
|
2
|
+
export { w3cSignatureIntegrity } from './document-integrity/w3cSignatureIntegrity.mjs';
|
|
3
|
+
export { credentialStatusTransferableRecordVerifier } from './document-status/transferableRecords/transferableRecordVerifier.mjs';
|
|
4
|
+
export { w3cCredentialStatus } from './document-status/w3cCredentialStatus.mjs';
|
|
5
|
+
export { w3cIssuerIdentity } from './issuer-identity/w3cIssuerIdentity.mjs';
|
|
6
|
+
import './document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { openAttestationDidIdentityProof, openAttestationDidSignedDocumentStatus, openAttestationDnsDidIdentityProof, openAttestationDnsTxtIdentityProof, openAttestationEthereumDocumentStoreStatus, openAttestationEthereumTokenRegistryStatus, openAttestationHash } from '@tradetrust-tt/tt-verify';
|
|
2
|
+
export { w3cSignatureIntegrity } from './document-integrity/w3cSignatureIntegrity.js';
|
|
3
|
+
export { credentialStatusTransferableRecordVerifier } from './document-status/transferableRecords/transferableRecordVerifier.js';
|
|
4
|
+
export { w3cCredentialStatus } from './document-status/w3cCredentialStatus.js';
|
|
5
|
+
export { w3cIssuerIdentity } from './issuer-identity/w3cIssuerIdentity.js';
|
|
6
|
+
import './document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ttVerify = require('@tradetrust-tt/tt-verify');
|
|
4
|
+
var w3cSignatureIntegrity = require('./document-integrity/w3cSignatureIntegrity');
|
|
5
|
+
var transferableRecordVerifier = require('./document-status/transferableRecords/transferableRecordVerifier');
|
|
6
|
+
var w3cCredentialStatus = require('./document-status/w3cCredentialStatus');
|
|
7
|
+
var w3cIssuerIdentity = require('./issuer-identity/w3cIssuerIdentity');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "openAttestationDidIdentityProof", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return ttVerify.openAttestationDidIdentityProof; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "openAttestationDidSignedDocumentStatus", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return ttVerify.openAttestationDidSignedDocumentStatus; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "openAttestationDnsDidIdentityProof", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return ttVerify.openAttestationDnsDidIdentityProof; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "openAttestationDnsTxtIdentityProof", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return ttVerify.openAttestationDnsTxtIdentityProof; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "openAttestationEthereumDocumentStoreStatus", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return ttVerify.openAttestationEthereumDocumentStoreStatus; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "openAttestationEthereumTokenRegistryStatus", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return ttVerify.openAttestationEthereumTokenRegistryStatus; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "openAttestationHash", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return ttVerify.openAttestationHash; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "w3cSignatureIntegrity", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return w3cSignatureIntegrity.w3cSignatureIntegrity; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "credentialStatusTransferableRecordVerifier", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return transferableRecordVerifier.credentialStatusTransferableRecordVerifier; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "w3cCredentialStatus", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return w3cCredentialStatus.w3cCredentialStatus; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "w3cIssuerIdentity", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return w3cIssuerIdentity.w3cIssuerIdentity; }
|
|
54
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.mjs';
|
|
2
|
+
export { i as fragments } from '../index-CUw8WpjA.mjs';
|
|
3
|
+
export { isValid, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
+
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
5
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
6
|
+
import './fragments/document-integrity/w3cSignatureIntegrity.mjs';
|
|
7
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.mjs';
|
|
8
|
+
import './fragments/document-status/w3cCredentialStatus.mjs';
|
|
9
|
+
import './fragments/issuer-identity/w3cIssuerIdentity.mjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { openAttestationVerifiers, verifiers, w3cVerifiers } from './verify.js';
|
|
2
|
+
export { i as fragments } from '../index-DK8Em_TZ.js';
|
|
3
|
+
export { isValid, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
+
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
5
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.types.js';
|
|
6
|
+
import './fragments/document-integrity/w3cSignatureIntegrity.js';
|
|
7
|
+
import './fragments/document-status/transferableRecords/transferableRecordVerifier.js';
|
|
8
|
+
import './fragments/document-status/w3cCredentialStatus.js';
|
|
9
|
+
import './fragments/issuer-identity/w3cIssuerIdentity.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var verify = require('./verify');
|
|
4
|
+
var fragments = require('./fragments');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var fragments__namespace = /*#__PURE__*/_interopNamespace(fragments);
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.fragments = fragments__namespace;
|
|
29
|
+
Object.keys(verify).forEach(function (k) {
|
|
30
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return verify[k]; }
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VerifierType } from './fragments/document-status/transferableRecords/transferableRecordVerifier.types.mjs';
|
|
2
|
+
import * as _tradetrust_tt_tt_verify from '@tradetrust-tt/tt-verify';
|
|
3
|
+
export { isValid, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
4
|
+
import { Verifier, VerificationFragment } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
5
|
+
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
6
|
+
|
|
7
|
+
declare const verifiers: {
|
|
8
|
+
documentIntegrity: {
|
|
9
|
+
openAttestationHash: Verifier<_tradetrust_tt_tt_verify.OpenAttestationHashVerificationFragment>;
|
|
10
|
+
w3cSignatureIntegrity: Verifier<VerificationFragment>;
|
|
11
|
+
};
|
|
12
|
+
documentStatus: {
|
|
13
|
+
openAttestationDidSignedDocumentStatus: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidSignedDocumentStatusVerificationFragment>;
|
|
14
|
+
openAttestationEthereumDocumentStoreStatus: Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumDocumentStoreStatusFragment>;
|
|
15
|
+
openAttestationEthereumTokenRegistryStatus: Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumTokenRegistryStatusFragment>;
|
|
16
|
+
w3cCredentialStatus: Verifier<VerificationFragment>;
|
|
17
|
+
credentialStatusTransferableRecordVerifier: VerifierType;
|
|
18
|
+
};
|
|
19
|
+
issuerIdentity: {
|
|
20
|
+
openAttestationDidIdentityProof: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidIdentityProofVerificationFragment>;
|
|
21
|
+
openAttestationDnsDidIdentityProof: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsDidIdentityProofVerificationFragment>;
|
|
22
|
+
openAttestationDnsTxtIdentityProof: Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsTxtIdentityProofVerificationFragment>;
|
|
23
|
+
w3cIssuerIdentity: Verifier<VerificationFragment>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare const openAttestationVerifiers: (Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumTokenRegistryStatusFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidIdentityProofVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsTxtIdentityProofVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationHashVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationEthereumDocumentStoreStatusFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDidSignedDocumentStatusVerificationFragment> | Verifier<_tradetrust_tt_tt_verify.OpenAttestationDnsDidIdentityProofVerificationFragment>)[];
|
|
27
|
+
declare const w3cVerifiers: Verifier<VerificationFragment>[];
|
|
28
|
+
|
|
29
|
+
export { openAttestationVerifiers, verifiers, w3cVerifiers };
|