Skip to content

Add JWT and Json schema validation to credential verification process #480

@Oran-Dan

Description

@Oran-Dan

Description

Check incoming credentials if they're valid JWT's and if they comply with their corresponding Json schema.

Motivation

Adds security and improves the verification process

Resources

https://crates.io/crates/jsonschema

To-do List

  • Upload OBv3 Json schema to resources folder
  • Add credential format parser function to select respective Json schema
  • Implement Json schema validation: OBv3 via Json schema, VC 1.1 via identity.rs
  • Abstract the JWT validation code from validate_linked_verifiable_presentations
  • Implement JWT validation in send_credential_request
  • Block credential upon failure, throw error

Metadata

Metadata

Assignees

Labels

ChoreNon-functional change, e.g., changing a config.V1 MVPNecessary for the minimal MVP

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions