Files
self/common/index.ts
Justin Hernandez 077dcc47b4 [SELF-830] feat: demo app nfc scanning (#1236)
* save wip demo app nfc scanning

* save wip

* fix types

* Fix Android NFC scanning in demo app (#1241)

* fix tests

* fix pipelines

* fix linting

* WIP move to flows/onboarding/scan-nfc

* prettier and fix test

* fix test

* update lock

* update deps

* Feat/android prebuilt modules (#1292)

* move entire screen

* remove redundancy in components and utils

* fixes

* lint

* ignore

* remove unneeded

* fix imports

* remove unused

* Update packages/mobile-sdk-alpha/src/types/events.ts

Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>

* uuid not needed for demo app

* android: update ci check

* timeout fix, image temp fix

* prettier fix

* try rebuild deps every time

* Temporarily disable cache check in CI

* Revert "try rebuild deps every time"

This reverts commit a5c97210a5.

* ignore false positive

* Revert "Revert "try rebuild deps every time""

This reverts commit 4f44615fd6.

* fix?

* sanitize error message first

* remove TODO that has been taken care of

* MSDK: add ios prebuilts (#1308)

* add ios prebuilt

* remove outdate readme

* remove duplicates

* comment out unused

* add prettier ignore

* Update .gitguardian.yml to ignore iOS frameworks and build artifacts

* update gitguardian ignore paths

* migrate config version

* add ignored-matches

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>

* remove duplicated code

* exclude mobile-sdk native modules when `E2E_TESTING` flag is set

* app: disable ios msdk auto-linking

* add E2E_TESTING flag

---------

Co-authored-by: Leszek Stachowski <leszek.stachowski@self.xyz>
Co-authored-by: seshanthS <seshanth@protonmail.com>
Co-authored-by: Seshanth.S <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
2025-10-23 23:14:32 +05:30

133 lines
2.9 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 {
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,
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';
// 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 { generateTestData, testCustomData } from './src/utils/aadhaar/utils.js';
export { isAadhaarDocument, isMRZDocument } from './src/utils/index.js';
export {
prepareAadhaarDiscloseData,
prepareAadhaarDiscloseTestData,
prepareAadhaarRegisterData,
prepareAadhaarRegisterTestData,
} from './src/utils/aadhaar/mockData.js';