@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.
- package/dist/{core → cjs/core}/documentBuilder.js +7 -5
- package/dist/cjs/core/endorsement-chain/fetchEscrowTransfer.js +167 -0
- package/dist/cjs/core/endorsement-chain/fetchTokenTransfer.js +58 -0
- package/dist/cjs/core/endorsement-chain/helpers.js +99 -0
- package/dist/cjs/core/endorsement-chain/index.js +47 -0
- package/dist/cjs/core/endorsement-chain/retrieveEndorsementChain.js +43 -0
- package/dist/cjs/core/endorsement-chain/useEndorsementChain.js +103 -0
- package/dist/{core → cjs/core}/index.js +7 -0
- package/dist/cjs/token-registry-v5/typedContractMethod.js +2 -0
- package/dist/cjs/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js +2 -0
- package/dist/cjs/w3c/types.js +2 -0
- package/dist/esm/core/documentBuilder.js +7 -5
- package/dist/esm/core/endorsement-chain/fetchEscrowTransfer.js +164 -0
- package/dist/esm/core/endorsement-chain/fetchTokenTransfer.js +56 -0
- package/dist/esm/core/endorsement-chain/helpers.js +94 -0
- package/dist/esm/core/endorsement-chain/index.js +6 -0
- package/dist/esm/core/endorsement-chain/retrieveEndorsementChain.js +41 -0
- package/dist/esm/core/endorsement-chain/types.js +1 -0
- package/dist/esm/core/endorsement-chain/useEndorsementChain.js +98 -0
- package/dist/esm/core/index.js +1 -0
- package/dist/esm/token-registry-v5/index.js +1 -1
- package/dist/esm/token-registry-v5/typedContractMethod.js +1 -1
- package/dist/esm/w3c/types.js +1 -2
- package/dist/types/core/endorsement-chain/fetchEscrowTransfer.d.ts +8 -0
- package/dist/types/core/endorsement-chain/fetchTokenTransfer.d.ts +8 -0
- package/dist/types/core/endorsement-chain/helpers.d.ts +11 -0
- package/dist/types/core/endorsement-chain/index.d.ts +11 -0
- package/dist/types/core/endorsement-chain/retrieveEndorsementChain.d.ts +8 -0
- package/dist/types/core/endorsement-chain/types.d.ts +50 -0
- package/dist/types/core/endorsement-chain/useEndorsementChain.d.ts +14 -0
- package/dist/types/core/index.d.ts +16 -0
- package/dist/{index-DK8Em_TZ.d.ts → types/index-BVNDN0vp.d.ts} +3 -2
- package/dist/{index.d.ts → types/index.d.ts} +13 -3
- package/dist/{token-registry-v5 → types/token-registry-v5}/index.d.ts +2 -1
- package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.ts +10 -1
- package/dist/{verify → types/verify}/fragments/index.d.ts +1 -1
- package/dist/{verify → types/verify}/index.d.ts +1 -1
- package/package.json +36 -36
- package/dist/constants.d.mts +0 -3
- package/dist/core/decrypt.d.mts +0 -3
- package/dist/core/documentBuilder.d.mts +0 -6
- package/dist/core/encrypt.d.mts +0 -3
- package/dist/core/index.d.mts +0 -5
- package/dist/core/index.d.ts +0 -5
- package/dist/core/verify.d.mts +0 -6
- package/dist/dnsprove/index.d.mts +0 -1
- package/dist/index-1ws_BWZW.d.mts +0 -22
- package/dist/index-CUw8WpjA.d.mts +0 -22
- package/dist/index-CjwEVGoM.d.mts +0 -22
- package/dist/index-ClF4_Nqk.d.mts +0 -22
- package/dist/index-DwAYXQn2.d.mts +0 -22
- package/dist/index.d.mts +0 -51
- package/dist/open-attestation/index.d.mts +0 -13
- package/dist/open-attestation/sign.d.mts +0 -9
- package/dist/open-attestation/types.d.mts +0 -9
- package/dist/open-attestation/utils.d.mts +0 -42
- package/dist/open-attestation/verify.d.mts +0 -5
- package/dist/open-attestation/wrap.d.mts +0 -9
- package/dist/token-registry-v4/contractAddress.d.mts +0 -13
- package/dist/token-registry-v4/contracts.d.mts +0 -1
- package/dist/token-registry-v4/index.d.mts +0 -3
- package/dist/token-registry-v4/roleHash.d.mts +0 -11
- package/dist/token-registry-v4/supportInterfaceIds.d.mts +0 -12
- package/dist/token-registry-v5/contractAddress.d.mts +0 -13
- package/dist/token-registry-v5/contracts.d.mts +0 -1
- package/dist/token-registry-v5/index.d.mts +0 -3
- package/dist/token-registry-v5/roleHash.d.mts +0 -11
- package/dist/token-registry-v5/supportInterfaceIds.d.mts +0 -12
- package/dist/token-registry-v5/typedContractMethod.d.mts +0 -9
- package/dist/token-registry-v5/typedContractMethod.js +0 -10
- package/dist/utils/errorMessages/index.d.mts +0 -1
- package/dist/utils/fragment/index.d.mts +0 -1
- package/dist/utils/index.d.mts +0 -4
- package/dist/utils/network/index.d.mts +0 -1
- package/dist/utils/stringUtils/index.d.mts +0 -9
- package/dist/utils/supportedChains/index.d.mts +0 -1
- package/dist/verify/fragments/document-integrity/w3cSignatureIntegrity.d.mts +0 -5
- package/dist/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts +0 -7
- package/dist/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.types.d.mts +0 -22
- package/dist/verify/fragments/document-status/transferableRecords/utils.d.mts +0 -18
- package/dist/verify/fragments/document-status/w3cCredentialStatus.d.mts +0 -5
- package/dist/verify/fragments/index.d.mts +0 -6
- package/dist/verify/fragments/issuer-identity/w3cIssuerIdentity.d.mts +0 -5
- package/dist/verify/index.d.mts +0 -9
- package/dist/verify/verify.d.mts +0 -29
- package/dist/w3c/context/index.d.mts +0 -1
- package/dist/w3c/credential-status/index.d.mts +0 -1
- package/dist/w3c/index.d.mts +0 -10
- package/dist/w3c/issuer/index.d.mts +0 -1
- package/dist/w3c/sign.d.mts +0 -6
- package/dist/w3c/types.d.mts +0 -2
- package/dist/w3c/types.js +0 -27
- package/dist/w3c/vc/index.d.mts +0 -1
- package/dist/w3c/verify.d.mts +0 -5
- package/dist/{constants.js → cjs/constants.js} +0 -0
- package/dist/{core → cjs/core}/decrypt.js +0 -0
- package/dist/{core → cjs/core}/encrypt.js +0 -0
- package/dist/{verify/fragments/document-status/transferableRecords/transferableRecordVerifier.types.js → cjs/core/endorsement-chain/types.js} +0 -0
- package/dist/{core → cjs/core}/verify.js +0 -0
- package/dist/{dnsprove → cjs/dnsprove}/index.js +0 -0
- package/dist/{index.js → cjs/index.js} +0 -0
- package/dist/{open-attestation → cjs/open-attestation}/index.js +0 -0
- package/dist/{open-attestation → cjs/open-attestation}/sign.js +0 -0
- package/dist/{open-attestation → cjs/open-attestation}/types.js +0 -0
- package/dist/{open-attestation → cjs/open-attestation}/utils.js +0 -0
- package/dist/{open-attestation → cjs/open-attestation}/verify.js +0 -0
- package/dist/{open-attestation → cjs/open-attestation}/wrap.js +0 -0
- package/dist/{token-registry-v4 → cjs/token-registry-v4}/contractAddress.js +0 -0
- package/dist/{token-registry-v4 → cjs/token-registry-v4}/contracts.js +0 -0
- package/dist/{token-registry-v4 → cjs/token-registry-v4}/index.js +0 -0
- package/dist/{token-registry-v4 → cjs/token-registry-v4}/roleHash.js +0 -0
- package/dist/{token-registry-v4 → cjs/token-registry-v4}/supportInterfaceIds.js +0 -0
- package/dist/{token-registry-v5 → cjs/token-registry-v5}/contractAddress.js +0 -0
- package/dist/{token-registry-v5 → cjs/token-registry-v5}/contracts.js +0 -0
- package/dist/{token-registry-v5 → cjs/token-registry-v5}/index.js +5 -5
- package/dist/{token-registry-v5 → cjs/token-registry-v5}/roleHash.js +0 -0
- package/dist/{token-registry-v5 → cjs/token-registry-v5}/supportInterfaceIds.js +0 -0
- package/dist/{utils → cjs/utils}/errorMessages/index.js +0 -0
- package/dist/{utils → cjs/utils}/fragment/index.js +0 -0
- package/dist/{utils → cjs/utils}/index.js +0 -0
- package/dist/{utils → cjs/utils}/network/index.js +0 -0
- package/dist/{utils → cjs/utils}/stringUtils/index.js +0 -0
- package/dist/{utils → cjs/utils}/supportedChains/index.js +0 -0
- package/dist/{verify → cjs/verify}/fragments/document-integrity/w3cSignatureIntegrity.js +0 -0
- package/dist/{verify → cjs/verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.js +0 -0
- package/dist/{verify → cjs/verify}/fragments/document-status/transferableRecords/utils.js +0 -0
- package/dist/{verify → cjs/verify}/fragments/document-status/w3cCredentialStatus.js +0 -0
- package/dist/{verify → cjs/verify}/fragments/index.js +0 -0
- package/dist/{verify → cjs/verify}/fragments/issuer-identity/w3cIssuerIdentity.js +0 -0
- package/dist/{verify → cjs/verify}/index.js +0 -0
- package/dist/{verify → cjs/verify}/verify.js +0 -0
- package/dist/{w3c → cjs/w3c}/context/index.js +0 -0
- package/dist/{w3c → cjs/w3c}/credential-status/index.js +0 -0
- package/dist/{w3c → cjs/w3c}/index.js +0 -0
- package/dist/{w3c → cjs/w3c}/issuer/index.js +0 -0
- package/dist/{w3c → cjs/w3c}/sign.js +0 -0
- package/dist/{w3c → cjs/w3c}/vc/index.js +0 -0
- package/dist/{w3c → cjs/w3c}/verify.js +0 -0
- package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
- package/dist/{core → types/core}/decrypt.d.ts +0 -0
- package/dist/{core → types/core}/documentBuilder.d.ts +0 -0
- package/dist/{core → types/core}/encrypt.d.ts +0 -0
- package/dist/{core → types/core}/verify.d.ts +0 -0
- package/dist/{dnsprove → types/dnsprove}/index.d.ts +0 -0
- package/dist/{index-1ws_BWZW.d.ts → types/index-1ws_BWZW.d.ts} +0 -0
- package/dist/{index-CjwEVGoM.d.ts → types/index-CjwEVGoM.d.ts} +0 -0
- package/dist/{index-ClF4_Nqk.d.ts → types/index-ClF4_Nqk.d.ts} +0 -0
- package/dist/{index-DwAYXQn2.d.ts → types/index-DwAYXQn2.d.ts} +0 -0
- package/dist/{open-attestation → types/open-attestation}/index.d.ts +0 -0
- package/dist/{open-attestation → types/open-attestation}/sign.d.ts +0 -0
- package/dist/{open-attestation → types/open-attestation}/types.d.ts +0 -0
- package/dist/{open-attestation → types/open-attestation}/utils.d.ts +0 -0
- package/dist/{open-attestation → types/open-attestation}/verify.d.ts +0 -0
- package/dist/{open-attestation → types/open-attestation}/wrap.d.ts +0 -0
- package/dist/{token-registry-v4 → types/token-registry-v4}/contractAddress.d.ts +0 -0
- package/dist/{token-registry-v4 → types/token-registry-v4}/contracts.d.ts +0 -0
- package/dist/{token-registry-v4 → types/token-registry-v4}/index.d.ts +0 -0
- package/dist/{token-registry-v4 → types/token-registry-v4}/roleHash.d.ts +0 -0
- package/dist/{token-registry-v4 → types/token-registry-v4}/supportInterfaceIds.d.ts +0 -0
- package/dist/{token-registry-v5 → types/token-registry-v5}/contractAddress.d.ts +0 -0
- package/dist/{token-registry-v5 → types/token-registry-v5}/contracts.d.ts +0 -0
- package/dist/{token-registry-v5 → types/token-registry-v5}/roleHash.d.ts +0 -0
- package/dist/{token-registry-v5 → types/token-registry-v5}/supportInterfaceIds.d.ts +0 -0
- package/dist/{token-registry-v5 → types/token-registry-v5}/typedContractMethod.d.ts +1 -1
- /package/dist/{utils → types/utils}/errorMessages/index.d.ts +0 -0
- /package/dist/{utils → types/utils}/fragment/index.d.ts +0 -0
- /package/dist/{utils → types/utils}/index.d.ts +0 -0
- /package/dist/{utils → types/utils}/network/index.d.ts +0 -0
- /package/dist/{utils → types/utils}/stringUtils/index.d.ts +0 -0
- /package/dist/{utils → types/utils}/supportedChains/index.d.ts +0 -0
- /package/dist/{verify → types/verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts +0 -0
- /package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/transferableRecordVerifier.d.ts +0 -0
- /package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/utils.d.ts +0 -0
- /package/dist/{verify → types/verify}/fragments/document-status/w3cCredentialStatus.d.ts +0 -0
- /package/dist/{verify → types/verify}/fragments/issuer-identity/w3cIssuerIdentity.d.ts +0 -0
- /package/dist/{verify → types/verify}/verify.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/context/index.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/credential-status/index.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/index.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/issuer/index.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/sign.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/types.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/vc/index.d.ts +0 -0
- /package/dist/{w3c → types/w3c}/verify.d.ts +0 -0
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export { CONSTANTS as errorMessages } from '@tradetrust-tt/tradetrust-utils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { errorMessageHandling, interpretFragments } from '@tradetrust-tt/tradetrust-utils';
|
package/dist/utils/index.d.mts
DELETED
|
@@ -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';
|
package/dist/verify/fragments/document-status/transferableRecords/transferableRecordVerifier.d.mts
DELETED
|
@@ -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,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';
|
package/dist/verify/index.d.mts
DELETED
|
@@ -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';
|
package/dist/verify/verify.d.mts
DELETED
|
@@ -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';
|
package/dist/w3c/index.d.mts
DELETED
|
@@ -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';
|
package/dist/w3c/sign.d.mts
DELETED
|
@@ -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 };
|
package/dist/w3c/types.d.mts
DELETED
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
|
-
});
|
package/dist/w3c/vc/index.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@trustvc/w3c-vc';
|
package/dist/w3c/verify.d.mts
DELETED
|
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,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
|
|
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
|
|
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
|
/package/dist/{verify → types/verify}/fragments/document-integrity/w3cSignatureIntegrity.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{verify → types/verify}/fragments/document-status/transferableRecords/utils.d.ts
RENAMED
|
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
|