clean scripts and frontend

This commit is contained in:
0xturboblitz
2023-07-27 17:19:20 +02:00
parent e0be30d799
commit aceff3b39c
7 changed files with 279 additions and 2160 deletions

30
app/types/passportData.ts Normal file
View File

@@ -0,0 +1,30 @@
export type MrzInfo = {
compositeCheckDigit: string;
dateOfBirth: string;
dateOfBirthCheckDigit: string;
dateOfExpiry: string;
dateOfExpiryCheckDigit: string;
documentCode: string;
documentNumber: string;
documentNumberCheckDigit: string;
documentType: number;
gender: string;
issuingState: string;
nationality: string;
optionalData1: string;
primaryIdentifier: string;
secondaryIdentifier: string;
};
export type DataHash = [number, number[]];
export type PassportData = {
mrzInfo: MrzInfo;
publicKey: any;
publicKeyPEM: string;
dataGroupHashes: DataHash[];
eContent: any;
encryptedDigest: any;
contentBytes: any;
eContentDecomposed: any;
};