kaleido-io / kaleido-iden3-samples

Sample code for using the iden3 protocol to issue verifiable claims
Apache License 2.0
5 stars 4 forks source link

Draft: First cut at document verification claim example #27

Closed nedgar closed 1 year ago

nedgar commented 1 year ago

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 a DocumentStatus type with a docStatusHash field in claim slot IndexA.

nedgar commented 1 year ago

@jimthematrix @Chengxuan any feedback is welcome. This is just to share my current exploration – I'm not suggesting we merge this.

jimthematrix commented 1 year ago

@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.

nedgar commented 1 year ago

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.