mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
35 lines
983 B
TypeScript
35 lines
983 B
TypeScript
export class OpenPassportVerifierReport {
|
|
scope: boolean = true;
|
|
merkle_root: boolean = true;
|
|
attestation_id: boolean = true;
|
|
current_date: boolean = true;
|
|
issuing_state: boolean = true;
|
|
name: boolean = true;
|
|
passport_number: boolean = true;
|
|
nationality: boolean = true;
|
|
date_of_birth: boolean = true;
|
|
gender: boolean = true;
|
|
expiry_date: boolean = true;
|
|
older_than: boolean = true;
|
|
owner_of: boolean = true;
|
|
proof: boolean = true;
|
|
dsc: boolean = true;
|
|
valid: boolean = true;
|
|
|
|
public user_identifier: number;
|
|
public nullifier: number;
|
|
|
|
constructor() { }
|
|
|
|
exposeAttribute(attribute: keyof OpenPassportVerifierReport, value: any = "", expectedValue: any = "") {
|
|
console.log('exposeAttribute', attribute, "value:", value, "expectedValue:", expectedValue);
|
|
(this[attribute] as boolean) = false;
|
|
this.valid = false;
|
|
}
|
|
|
|
toJson() {
|
|
return JSON.stringify(this);
|
|
}
|
|
|
|
}
|