Closed nedgar closed 1 year ago
@jimthematrix @Chengxuan any feedback is welcome. This is just to share my current exploration – I'm not suggesting we merge this.
@nedgar the code looks ok to me. can you add the doc hash claim support instead of using it to replace the birthday claim? it'd be good to keep the birthday claim to demonstrate the power of the ZKP queries, which allows the holder to keep the PII information private while still fulfilling the requested range proof.
Agreed. We should try to factor the code so various basic claims can be issued more easily. This was a just a quick-and-dirty mod.
This adapts the current claim issuance and verification to a document verification use case. For expedience, it reuses the KYC schema's
CountryOfResidenceCredential
type rather than defining its own schema (which would need to be published in order for the verifier to fetch it). But conceptually it's aDocumentStatus
type with adocStatusHash
field in claim slot IndexA.