mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
* Sumsub: Update keychain and types * sumsub: ProvingMachine changes - WIP * fix: remove duplicate identifier * update proving machine * Refactor && Continue onchain registration if user left the app * fix register flow * Add hooks to KycSuccessScreen * Integrate KycVerifiedScreen (#1686) * Integrate KycVerifiedScreen & Fix race conditions * yarn lint * lint * lint * add mock kyc * fix disclose flow * yarn lint * Feat/add kyc home screen card design (#1708) * feat: add new designs to the kycIdCard * refactor: Update KycIdCard design to match IdCard styling * feat: update document cards + dev document * feat: update empty id card for new design * feat: update pending document card design * feat: update expired doc + unregistered doc cards from new design * fix: unregisted id card button links to continue registration screen * fix: logo design on document cards * feat: add 6 different backgrounds for ids deterministically shows 1 of 6 backgrounds for each document | fix: fixed document designs not displaying correctly. * chore: trigger CI rebuild * feat: Integrate PendingIdCard to Homescreen * fix KycIdCard.tsx --------- Co-authored-by: seshanthS <seshanth@protonmail.com> * lint * fix tests * fix: cleanup only on unmount * coderabbit comments * fix: cleanup unused code * fix: edge case for German Passports with D<< nationality code * fix tests * review comments * review comments * lint * Hide duplicated cards in Homescreen * remove console.log * fix patch * remove unused vars * agent updates * agent feedback * abstract colors and formatting * agent feedback * Regenerate Sumsub patch-package patch * fix: handle malformed kyc payload in card background selector * re-add for clean up --------- Co-authored-by: Evi Nova <66773372+Tranquil-Flow@users.noreply.github.com> Co-authored-by: Evi Nova <tranquil_flow@protonmail.com> Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
153 lines
3.4 KiB
TypeScript
153 lines
3.4 KiB
TypeScript
// Type exports from constants
|
|
export type {
|
|
AadhaarData,
|
|
CertificateData,
|
|
DeployedCircuits,
|
|
DocumentCatalog,
|
|
DocumentCategory,
|
|
DocumentMetadata,
|
|
IDDocument,
|
|
IdDocInput,
|
|
OfacTree,
|
|
PassportData,
|
|
PassportMetadata,
|
|
PublicKeyDetailsECDSA,
|
|
PublicKeyDetailsRSA,
|
|
SelfApp,
|
|
SelfAppDisclosureConfig,
|
|
UserIdType,
|
|
} from './src/utils/index.js';
|
|
|
|
// Constants exports
|
|
export type { Country3LetterCode } from './src/constants/index.js';
|
|
|
|
// Additional type exports
|
|
export type { Environment } from './src/utils/types.js';
|
|
|
|
// Utils exports
|
|
export {
|
|
AADHAAR_ATTESTATION_ID,
|
|
API_URL,
|
|
API_URL_STAGING,
|
|
CSCA_TREE_URL,
|
|
CSCA_TREE_URL_ID_CARD,
|
|
CSCA_TREE_URL_STAGING,
|
|
CSCA_TREE_URL_STAGING_ID_CARD,
|
|
DEFAULT_MAJORITY,
|
|
DSC_TREE_URL,
|
|
DSC_TREE_URL_ID_CARD,
|
|
DSC_TREE_URL_STAGING,
|
|
DSC_TREE_URL_STAGING_ID_CARD,
|
|
IDENTITY_TREE_URL,
|
|
IDENTITY_TREE_URL_ID_CARD,
|
|
IDENTITY_TREE_URL_STAGING,
|
|
IDENTITY_TREE_URL_STAGING_ID_CARD,
|
|
ID_CARD_ATTESTATION_ID,
|
|
KYC_ATTESTATION_ID,
|
|
PASSPORT_ATTESTATION_ID,
|
|
PCR0_MANAGER_ADDRESS,
|
|
REDIRECT_URL,
|
|
RPC_URL,
|
|
TREE_URL,
|
|
TREE_URL_STAGING,
|
|
WS_DB_RELAYER,
|
|
WS_DB_RELAYER_STAGING,
|
|
alpha2ToAlpha3,
|
|
alpha3ToAlpha2,
|
|
attributeToPosition,
|
|
attributeToPosition_ID,
|
|
commonNames,
|
|
countries,
|
|
countryCodes,
|
|
getCountryISO2,
|
|
} from './src/constants/index.js';
|
|
|
|
// Type exports
|
|
export {
|
|
EndpointType,
|
|
Mode,
|
|
SelfAppBuilder,
|
|
bigIntToString,
|
|
brutforceSignatureAlgorithmDsc,
|
|
buildSMT,
|
|
calculateContentHash,
|
|
calculateUserIdentifierHash,
|
|
fetchOfacTrees,
|
|
findStartPubKeyIndex,
|
|
formatEndpoint,
|
|
formatMrz,
|
|
genAndInitMockPassportData,
|
|
genMockIdDoc,
|
|
genMockIdDocAndInitDataParsing,
|
|
generateCircuitInputsDSC,
|
|
generateCircuitInputsRegister,
|
|
generateCircuitInputsRegisterForTests,
|
|
generateCircuitInputsVCandDisclose,
|
|
generateCommitment,
|
|
generateMockDSC,
|
|
generateNullifier,
|
|
generateTEEInputsDiscloseStateless,
|
|
getCircuitNameFromPassportData,
|
|
getLeafCscaTree,
|
|
getLeafDscTree,
|
|
getSKIPEM,
|
|
getSolidityPackedUserContextData,
|
|
getUniversalLink,
|
|
hashEndpointWithScope,
|
|
inferDocumentCategory,
|
|
initElliptic,
|
|
initPassportDataParsing,
|
|
parseCertificateSimple,
|
|
parseDscCertificateData,
|
|
stringToBigInt,
|
|
} from './src/utils/index.js';
|
|
|
|
export {
|
|
KYC_ID_NUMBER_INDEX,
|
|
KYC_ID_NUMBER_LENGTH,
|
|
KYC_MAX_LENGTH,
|
|
} from './src/utils/kyc/constants.js';
|
|
|
|
export type { KycData } from './src/utils/kyc/types.js';
|
|
export { serializeKycData } from './src/utils/kyc/types.js';
|
|
|
|
export {
|
|
NON_OFAC_DUMMY_INPUT,
|
|
OFAC_DUMMY_INPUT,
|
|
generateKycDiscloseInput,
|
|
generateKycRegisterInput,
|
|
generateMockKycRegisterInput,
|
|
} from './src/utils/kyc/generateInputs.js';
|
|
|
|
// Crypto polyfill for cross-platform compatibility
|
|
export {
|
|
createHash,
|
|
createHmac,
|
|
default as cryptoPolyfill,
|
|
pbkdf2Sync,
|
|
randomBytes,
|
|
} from './src/polyfills/crypto.js';
|
|
|
|
export { createSelector } from './src/utils/aadhaar/constants.js';
|
|
|
|
// Hash utilities
|
|
export {
|
|
customHasher,
|
|
flexiblePoseidon,
|
|
getHashLen,
|
|
hash,
|
|
packBytesAndPoseidon,
|
|
} from './src/utils/hash.js';
|
|
export { deserializeApplicantInfo } from './src/utils/kyc/api.js';
|
|
|
|
export { generateTestData, testCustomData } from './src/utils/aadhaar/utils.js';
|
|
|
|
export { isAadhaarDocument, isKycDocument, isMRZDocument } from './src/utils/index.js';
|
|
|
|
export {
|
|
prepareAadhaarDiscloseData,
|
|
prepareAadhaarDiscloseTestData,
|
|
prepareAadhaarRegisterData,
|
|
prepareAadhaarRegisterTestData,
|
|
} from './src/utils/aadhaar/mockData.js';
|