You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so far the way we have verifiable credential which has nothing to do with hid-node or blockchain. The problem here is, once the credential is issued by the issuer, there is no way to revoke the credential unless it expired. We need to implement a define something called credentailStatus on the hid-node. we can take a look at vc-data-model spec in w3c
CredentialStatus
The credentialStatus property is used for the discovery of information about the current status of a verifiable credential, such as whether it is suspended or revoked.
This property MUST include the following fields:
id
type: which expresses the credential status type also referred to as the credential status method. Example is CredentialStatusList2017.
One possible format of the id could be:
did:hid:{hid-wallet-address}/credentials/{hash}
To create hash, the JSON document must be serialized according to the JSON-LD specificaion. The ensures that JSON document has same format when validating the credenital. The id, credentialStatus and proof fields should be ommited when creating the hash.
This id can be used to query the blockchain and fetch the credential status of that particular credential
But the next question is, what will happen when you query a particual VC id in blockchain? What it is going to return? How will that be implemented? This is where the concept of Verifiable Credential Extension Registry
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
so far the way we have verifiable credential which has nothing to do with hid-node or blockchain. The problem here is, once the credential is issued by the issuer, there is no way to revoke the credential unless it expired. We need to implement a define something called
credentailStatus
on the hid-node. we can take a look at vc-data-model spec in w3cCredentialStatus
The
credentialStatus
property is used for the discovery of information about the current status of a verifiable credential, such as whether it is suspended or revoked.This property MUST include the following fields:
id
type
: which expresses the credential status type also referred to as the credential status method. Example is CredentialStatusList2017.One possible format of the id could be:
To create
hash
, the JSON document must be serialized according to the JSON-LD specificaion. The ensures that JSON document has same format when validating the credenital. Theid
,credentialStatus
andproof
fields should be ommited when creating the hash.This id can be used to query the blockchain and fetch the credential status of that particular credential
Example of CredentialStatus
Example 2
Sample VC with credential status
But the next question is, what will happen when you query a particual VC id in blockchain? What it is going to return? How will that be implemented? This is where the concept of Verifiable Credential Extension Registry
Ref:
Beta Was this translation helpful? Give feedback.
All reactions