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

Add logic for verifying proof.created #30

Closed
aljones15 opened this issue Aug 15, 2024 · 1 comment
Closed

Add logic for verifying proof.created #30

aljones15 opened this issue Aug 15, 2024 · 1 comment
Assignees

Comments

@aljones15
Copy link
Contributor

aljones15 commented Aug 15, 2024

{
  "verified": true,
  "results": [
    {
      "proof": {
        "@context": [
          "https://www.w3.org/ns/credentials/v2",
          {
            "@protected": true,
            "DriverLicenseCredential": "urn:example:DriverLicenseCredential",
            "DriverLicense": {
              "@id": "urn:example:DriverLicense",
              "@context": {
                "@protected": true,
                "id": "@id",
                "type": "@type",
                "documentIdentifier": "urn:example:documentIdentifier",
                "dateOfBirth": "urn:example:dateOfBirth",
                "expirationDate": "urn:example:expiration",
                "issuingAuthority": "urn:example:issuingAuthority"
              }
            },
            "driverLicense": {
              "@id": "urn:example:driverLicense",
              "@type": "@id"
            }
          }
        ],
        "type": "DataIntegrityProof",
        "created": "invalidDate",
        "verificationMethod": "did:key:z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT#z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT",
        "cryptosuite": "eddsa-rdfc-2022",
        "proofPurpose": "assertionMethod",
        "proofValue": "z3QFjBubFzd5AB4xMZxnYaadiQgfp3iK2UdBwtkHxrZSU7Q27q2X25JYvHTJwr9WUvibDqjMZaDY5vGiVPoRvDtPi"
      },
      "verified": true,
      "verificationMethod": {
        "@context": "https://w3id.org/security/suites/ed25519-2020/v1",
        "id": "did:key:z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT#z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT",
        "type": "Ed25519VerificationKey2020",
        "controller": "did:key:z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT",
        "publicKeyMultibase": "z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT"
      },
      "purposeResult": {
        "valid": true
      }
    }
  ]

Library currently verifies proofs with created set to all sorts of weird stuff such as the above.

@aljones15 aljones15 changed the title add logic for verifying proof.created Add logic for verifying proof.created Aug 15, 2024
@aljones15 aljones15 self-assigned this Sep 1, 2024
@dlongley
Copy link
Member

dlongley commented Sep 5, 2024

Addressed by #34.

@dlongley dlongley closed this as completed Sep 5, 2024
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