W3C home > Mailing lists > Public > public-credentials@w3.org > April 2021

public key in a verifiable credential

From: Nikos Fotiou <fotiou@aueb.gr>
Date: Thu, 1 Apr 2021 14:56:49 +0300
Message-Id: <097E8BD2-A5C1-43CD-A626-042BA441B59C@aueb.gr>
To: Credentials Community Group <public-credentials@w3.org>
I have a case where I want to include in a VC the public key of the credential subject. I have thought of two approaches:

a) include in the "id" field of "credentialSubject"  a DID method like did:key or did:jwt (this an experimental method by David Chadwick)
b) add in the context of the credential "https://w3id.org/security", or create a credential type that has the property publicKeyJwk, and add inside  "credentialSubject"  something like:

"publicKeyJwk": {
      "crv": "Ed25519", 
      "x": "VCpo2LMLhn6iWku8MKvSLg2ZAoC-nlOyPVQaO3FxVeQ",
      "kty": "OKP", 

I find the latter approach "cleaner" but I am not sure if it is correct. Any opinion?


Nikos Fotiou - http://pages.cs.aueb.gr/~fotiou
Researcher - Mobile Multimedia Laboratory
Athens University of Economics and Business

Received on Thursday, 1 April 2021 11:57:06 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 1 April 2021 11:57:07 UTC