HTTP endpoint to import trusted data

Requirements

  • The endpoint will accept data formatted as JSON-LD Verifiable Credential or Presentation.
  • It must validate the schema, JSON-LD contexts and proofs
  • If data is valid, it will be inserted into the cache

Questions to discuss with @valerii.kalashnikov and @SchulzeStTSI

Q1: Should the complete VC/VP with the proof be inserted in the cache, or just the real data from the credentialSubject field?

Q2: Where the public keys of OCM/TSA will be exposed, so that they can be used to validate the proofs on the incoming VC/VP?

Q3: What cache keys should be used when inserting the data in Cache?

Edited by Lyuben Penkovski