Files
self/common/index.ts
Justin Hernandez 2ed8bcfe53 feat: modernize sdk/qrcode build pipeline (#872)
* Modernize qrcode build

* chore(qrcode): add lint helpers

* fix sdk qrcode

* add new qrcode ci

* fix formatting

* qrcode fixes

* fixes

* fixes rd2

* enable corepack

* enable corepack

* build caching

* update caching

* cr feedback
2025-08-10 21:22:02 -07:00

94 lines
1.9 KiB
TypeScript

// Type exports from constants
export type {
CertificateData,
DocumentCategory,
IdDocInput,
PassportData,
PassportMetadata,
PublicKeyDetailsECDSA,
PublicKeyDetailsRSA,
SelfApp,
SelfAppDisclosureConfig,
UserIdType,
} from './src/utils/index.js';
// Constants exports
export type { Country3LetterCode } from './src/constants/index.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,
attributeToPosition,
attributeToPosition_ID,
commonNames,
countries,
countryCodes,
} from './src/constants/index.js';
// Type exports
export {
EndpointType,
Mode,
SelfAppBuilder,
bigIntToString,
brutforceSignatureAlgorithmDsc,
buildSMT,
calculateUserIdentifierHash,
findStartPubKeyIndex,
formatEndpoint,
formatMrz,
genAndInitMockPassportData,
genMockIdDoc,
genMockIdDocAndInitDataParsing,
generateCircuitInputsDSC,
generateCircuitInputsRegister,
generateCircuitInputsVCandDisclose,
generateCommitment,
generateMockDSC,
generateNullifier,
getCircuitNameFromPassportData,
getLeafCscaTree,
getLeafDscTree,
getSKIPEM,
getSolidityPackedUserContextData,
getUniversalLink,
hashEndpointWithScope,
initElliptic,
initPassportDataParsing,
parseCertificateSimple,
parseDscCertificateData,
stringToBigInt,
} from './src/utils/index.js';
// Hash utilities
export {
customHasher,
flexiblePoseidon,
getHashLen,
hash,
packBytesAndPoseidon,
} from './src/utils/hash.js';