mirror of
https://github.com/selfxyz/self.git
synced 2026-01-10 15:18:18 -05:00
* 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
94 lines
1.9 KiB
TypeScript
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';
|