Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attestation Standard #202

Open
0xturboblitz opened this issue Sep 16, 2024 · 2 comments
Open

Attestation Standard #202

0xturboblitz opened this issue Sep 16, 2024 · 2 comments

Comments

@0xturboblitz
Copy link
Member

Right now, the app sends the proof to the SDK in the OpenPassportVerifierInputs format, then the sdk creates an OpenPassportVerifierReport by parsing inputs from the proof.

We want an object that represents the OpenPassport attestation. It doesn't necessarily have to comply with W3C's VC standard, but it should expose all the attributes and the proofs necessary for verifying them. My proposal is to replace OpenPassportVerifierInputs with OpenPassportAttestation, and have the SDK simply respond true or false when the attestation is passed. OpenPassportAttestation would look like this:

{
  context: "OpenPassport"
  circuit: "register"
  attributes: {
    ...all the current context of VerifierReport,
    ...including optional attributes like `isCountryInList` that includes a list of countries, and `isOfacSanctioned`
  }
  proofs: {
    dscProof
    cscaProof?
    dsc?
  }
  verifiers: {
    dscProofVkey
    cscaProofVkey
    // those are links to github, e.g. "https://github.com/zk-passport/openpassport/blob/ef68691f886ca8512de320afb066ea9186fcb70e/common/src/constants/vkey.ts"
  }
}
@fishonamos
Copy link

@0xturboblitz . I will love to work on this. Kindly assign.

Copy link

onlydustapp bot commented Sep 16, 2024

Hey @fishonamos!
Thanks for showing interest.
We've created an application for you to contribute to Proof of Passport.
Go check it out on OnlyDust!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants