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

Verifiable Credentials Data Model v2.0 integration into Proof of Passport #160

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Jul 29, 2024

  1. Update sbt.tsx

    - Add a test in sbt.tsx to verify correct functionality of formatAsVC."
    CristopherAguilar10 authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    7b67ff7 View commit details
    Browse the repository at this point in the history
  2. Create formatVc

    Add the formatAsVC function to common/src/utils/formatVC.ts to format verifiable credential data.
    CristopherAguilar10 authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    9ebbe32 View commit details
    Browse the repository at this point in the history
  3. Update and rename formatVc to formatVc.ts

    Add the formatAsVC function to common/src/utils/formatVC.ts to format verifiable credential data.
    CristopherAguilar10 authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    12695f9 View commit details
    Browse the repository at this point in the history
  4. Update userStore.ts

    Add generateAttestation function to format credential as Verifiable Credential
    
    - Add `generateAttestation` function to `useUserStore` which formats passport data and attestation ID as a Verifiable Credential using `formatAsVC`.
    - Include import of `formatAsVC` from `../../../common/src/utils/formatVC`.
    - Update `UserState` store with the new function for better credential handling and formatting.
    CristopherAguilar10 authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    dbf8381 View commit details
    Browse the repository at this point in the history
  5. Update registration.ts

    - Added `registerUser` function to create and log a Verifiable Credential.
    - Function uses `formatAsVC` to format `passportData` and `PASSPORT_ATTESTATION_ID` into a credentialSubject.
    CristopherAguilar10 authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    22cd682 View commit details
    Browse the repository at this point in the history
  6. Update generateInputs.ts

    - Added `generateInputs` function to create and log a Verifiable Credential.
    - Function uses `formatAsVC` to format `passportData` and `PASSPORT_ATTESTATION_ID` into a credentialSubject.
    CristopherAguilar10 authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    8917e08 View commit details
    Browse the repository at this point in the history