mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* save import sorting work * remove dupe headers and fix type errors * sort imports and exports * fix errors from export sorting * fix tests * codex feedback * fix exports * fix exports and tweak test build * fix export and format * fix license headers * fix app building and clean up test errors * fix android local e2e test * improve caching * final fixes * remove invalid option * fix sorting and get random values loading * fix import sorting
93 lines
1.9 KiB
TypeScript
93 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,
|
|
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';
|