Files
self/common/index.ts
turnoffthiscomputer 0468719f9f App/eu id updates (#638)
* fix build issues

* generate disclosure proof with euids

* generate disclosure proof with euids

* Eu id updates 2 (#648)

* update vc_and_disclose_id test (dev branch) (#641)

* fix: vc_and_disclose_id test

* chore: yarn prettier

* Show modal on NFC scan error (#642)

* Add help button and error modal actions

* fix the screen management

* yarn nice

* Bump build v2.5.4: ios 132; android 71 (#631)

* bump version and build numbers

* remove tamagui/toast

* fix marketing version

* fix: update TD1 and TD3 checks (#643)

* bum yarn.lock

* add version and user defined data

---------

Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com>
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>

* remove the mock user define data

* get the useridentifier as a hash from the user defined data

* chore: add version and userDefinedData

* feat: use the version in register / dsc proofs as well

* update calculateUserIdentifierHash

* yarn nice

* refactor: consolidate user context data handling and update payload structure

* fix typing issues on sha1

* remove console.log(sha1)

* fix sha1 import

* refactor: streamline userDefinedData handling and adjust payload type for circuit

* refactor: update sha1 usage and enhance logging in calculateUserIdentifierHash

* yarn nice

* yarn lint common

* use ts-ignore for sha1 import

* fix app ci tests

* fix typing issue

* remove unused ts-ignore

* cast uuid before calling generateinputs

* bump qrcode version

* add tsup on the qrcode sdk

* fix: exports on selfxyz/qrcode

* update how we define config.version

* fix yarn imports

* yarn format

---------

Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com>
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: Ayman <aymanshaik1015@gmail.com>
2025-06-23 13:01:23 +02:00

70 lines
2.6 KiB
TypeScript

import { Country3LetterCode as Country3LetterCode1 } from './src/constants/countries.js';
import {
Country3LetterCode as Country3LetterCode2,
REDIRECT_URL,
} from './src/constants/constants.js';
import {
CertificateData,
PublicKeyDetailsECDSA,
PublicKeyDetailsRSA,
} from './src/utils/certificate_parsing/dataStructure.js';
import { parseCertificateSimple } from './src/utils/certificate_parsing/parseCertificateSimple.js';
import {
findStartPubKeyIndex,
generateCommitment,
generateNullifier,
} from './src/utils/passports/passport.js';
import { parseDscCertificateData } from './src/utils/passports/passport_parsing/parseDscCertificateData.js';
import { getLeafCscaTree, getLeafDscTree } from './src/utils/trees.js';
import {
genMockIdDoc,
genMockIdDocAndInitDataParsing,
IdDocInput,
} from './src/utils/passports/genMockIdDoc.js';
import { brutforceSignatureAlgorithmDsc } from './src/utils/passports/passport_parsing/brutForceDscSignature.js';
import { buildSMT } from './src/utils/trees.js';
export { initElliptic } from './src/utils/certificate_parsing/elliptic.js';
export { getSKIPEM } from './src/utils/csca.js';
export { formatMrz } from './src/utils/passports/format.js';
export { getCircuitNameFromPassportData } from './src/utils/circuits/circuitsName.js';
import * as Hash from './src/utils/hash.js';
import { calculateUserIdentifierHash, getSolidityPackedUserContextData } from './src/utils/hash.js';
export * from './src/constants/countries.js';
export * from './src/constants/constants.js';
export * from './src/utils/appType.js';
export * from './src/utils/scope.js';
export type { PassportData, DocumentType, DocumentCategory } from './src/utils/types.js';
export type Country3LetterCode = Country3LetterCode1 & Country3LetterCode2;
export { initPassportDataParsing } from './src/utils/passports/passport.js';
export { genAndInitMockPassportData } from './src/utils/passports/genMockPassportData.js';
export type { UserIdType } from './src/utils/circuits/uuid.js';
export {
generateCircuitInputsDSC,
generateCircuitInputsRegister,
generateCircuitInputsVCandDisclose,
} from './src/utils/circuits/generateInputs.js';
export type { PassportMetadata } from './src/utils/passports/passport_parsing/parsePassportData.js';
export {
REDIRECT_URL,
IdDocInput,
CertificateData,
brutforceSignatureAlgorithmDsc,
Hash,
generateCommitment,
generateNullifier,
findStartPubKeyIndex,
getLeafCscaTree,
getLeafDscTree,
parseCertificateSimple,
parseDscCertificateData,
PublicKeyDetailsECDSA,
PublicKeyDetailsRSA,
genMockIdDoc,
genMockIdDocAndInitDataParsing,
buildSMT,
calculateUserIdentifierHash,
getSolidityPackedUserContextData,
};