mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
save updated imports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import { ENABLE_DEBUG_LOGS, MIXPANEL_NFC_PROJECT_TOKEN } from '@env';
|
||||
import { PassportData } from '@selfxyz/common';
|
||||
import type { PassportData } from '@selfxyz/common/utils/types';
|
||||
import { Buffer } from 'buffer';
|
||||
import { NativeModules, Platform } from 'react-native';
|
||||
import PassportReader from 'react-native-passport-reader';
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
|
||||
|
||||
import { TREE_URL, TREE_URL_STAGING } from '@selfxyz/common';
|
||||
import {
|
||||
TREE_URL,
|
||||
TREE_URL_STAGING,
|
||||
} from '@selfxyz/common/constants/constants';
|
||||
|
||||
export type OfacVariant = 'passport' | 'id_card';
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
|
||||
|
||||
import { X509Certificate } from '@peculiar/x509';
|
||||
import { PCR0_MANAGER_ADDRESS, RPC_URL } from '@selfxyz/common';
|
||||
import {
|
||||
PCR0_MANAGER_ADDRESS,
|
||||
RPC_URL,
|
||||
} from '@selfxyz/common/constants/constants';
|
||||
import { decode } from '@stablelib/cbor';
|
||||
import { fromBER } from 'asn1js';
|
||||
import { Buffer } from 'buffer';
|
||||
|
||||
@@ -2,25 +2,29 @@
|
||||
|
||||
import { LeanIMT } from '@openpassport/zk-kit-lean-imt';
|
||||
import { SMT } from '@openpassport/zk-kit-smt';
|
||||
import type {
|
||||
DocumentCategory,
|
||||
PassportData,
|
||||
SelfApp,
|
||||
SelfAppDisclosureConfig,
|
||||
} from '@selfxyz/common';
|
||||
import {
|
||||
attributeToPosition,
|
||||
attributeToPosition_ID,
|
||||
calculateUserIdentifierHash,
|
||||
DEFAULT_MAJORITY,
|
||||
ID_CARD_ATTESTATION_ID,
|
||||
PASSPORT_ATTESTATION_ID,
|
||||
} from '@selfxyz/common/constants/constants';
|
||||
import type {
|
||||
SelfApp,
|
||||
SelfAppDisclosureConfig,
|
||||
} from '@selfxyz/common/utils/appType';
|
||||
import { getCircuitNameFromPassportData } from '@selfxyz/common/utils/circuits/circuitsName';
|
||||
import {
|
||||
generateCircuitInputsDSC,
|
||||
generateCircuitInputsRegister,
|
||||
generateCircuitInputsVCandDisclose,
|
||||
getCircuitNameFromPassportData,
|
||||
hashEndpointWithScope,
|
||||
ID_CARD_ATTESTATION_ID,
|
||||
PASSPORT_ATTESTATION_ID,
|
||||
} from '@selfxyz/common';
|
||||
} from '@selfxyz/common/utils/circuits/generateInputs';
|
||||
import { calculateUserIdentifierHash } from '@selfxyz/common/utils/hash';
|
||||
import { hashEndpointWithScope } from '@selfxyz/common/utils/scope';
|
||||
import type {
|
||||
DocumentCategory,
|
||||
PassportData,
|
||||
} from '@selfxyz/common/utils/types';
|
||||
import { poseidon2 } from 'poseidon-lite';
|
||||
|
||||
import { useProtocolStore } from '../../stores/protocolStore';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
|
||||
|
||||
import type { EndpointType } from '@selfxyz/common';
|
||||
import {
|
||||
initElliptic,
|
||||
WS_DB_RELAYER,
|
||||
WS_DB_RELAYER_STAGING,
|
||||
} from '@selfxyz/common';
|
||||
} from '@selfxyz/common/constants/constants';
|
||||
import type { EndpointType } from '@selfxyz/common/utils/appType';
|
||||
import { initElliptic } from '@selfxyz/common/utils/certificate_parsing/elliptic';
|
||||
import forge from 'node-forge';
|
||||
|
||||
const elliptic = initElliptic();
|
||||
|
||||
@@ -1,21 +1,25 @@
|
||||
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
|
||||
|
||||
import { LeanIMT } from '@openpassport/zk-kit-lean-imt';
|
||||
import type { PassportData } from '@selfxyz/common';
|
||||
import {
|
||||
API_URL,
|
||||
API_URL_STAGING,
|
||||
DocumentCategory,
|
||||
formatMrz,
|
||||
ID_CARD_ATTESTATION_ID,
|
||||
PASSPORT_ATTESTATION_ID,
|
||||
} from '@selfxyz/common/constants/constants';
|
||||
import { parseCertificateSimple } from '@selfxyz/common/utils/certificate_parsing/parseCertificateSimple';
|
||||
import { getCircuitNameFromPassportData } from '@selfxyz/common/utils/circuits/circuitsName';
|
||||
import * as Hash from '@selfxyz/common/utils/hash';
|
||||
import { formatMrz } from '@selfxyz/common/utils/passports/format';
|
||||
import {
|
||||
generateCommitment,
|
||||
generateNullifier,
|
||||
getCircuitNameFromPassportData,
|
||||
getLeafDscTree,
|
||||
Hash,
|
||||
ID_CARD_ATTESTATION_ID,
|
||||
parseCertificateSimple,
|
||||
PASSPORT_ATTESTATION_ID,
|
||||
} from '@selfxyz/common';
|
||||
} from '@selfxyz/common/utils/passports/passport';
|
||||
import { getLeafDscTree } from '@selfxyz/common/utils/trees';
|
||||
import type {
|
||||
DocumentCategory,
|
||||
PassportData,
|
||||
} from '@selfxyz/common/utils/types';
|
||||
import { poseidon2, poseidon5 } from 'poseidon-lite';
|
||||
|
||||
import { DocumentEvents } from '../../consts/analytics';
|
||||
|
||||
Reference in New Issue
Block a user