SSI Essentials: What are Decentralized Identifiers (DIDs) & Verifiable Credentials (VCs)?

November 15th, 2021

The foundation concepts of SSI were officially brought to life when the Credentials Community Group was created under the international organization World Wide Web Consortium (W3C), which generates recommendations and standards for the Internet.

The group, of which the founder of GATACA is a part, defined two fundamental standards for developing a new decentralized identity architecture: Decentralized Identifiers (DIDs) and Verifiable Credentials (VCs).

Create, validate, and digitally sign identity credentials according to W3C standards for global interoperability.

These are the foundation for the self-sovereign identity authentication paradigm and a user-centric, secure, and privacy-preserving Web 4.0.

In this article, we provide a quick, easy-to-understand guide on these two concepts.

An introduction to DIDs

How do third-party service providers prove that the digital identity holder is truly who he is? What identifies the user?

To truly have a decentralized, secure, and trustworthy digital identification system, the internet requires decentralized identifiers (like decentralized URLs) to help users represent who they are in any context without referring back to centralized identity registries such as the government for ID attributes, google for email and password, phone provider for your telephone number, etc.

The first fundamental concept, and W3C standard draft, within the SSI paradigm is the Decentralized Identifier (DID), an identifier for any participant (individual, entity, or thing) in the SSI ecosystem. More specifically, a DID is a globally unique identifier (URI), like a URL (or web address), that:

  1. does not require a centralized authority for their generation or registration as they are registered through distributed ledger technologies (DLT);
  2. is unique globally and for all contexts regardless of where they are to be used (as opposed to a username only used for the service in question).

DIDs can be created on our platform, Gataca Studio.

What’s behind a DID?

DIDs are associated with at least one pair of cryptographic keys: a public key & a private key. Advanced cryptography enables the generation of a public key tied to a private key (which always stays with the user off-chain).

Together, the DID and public keys are published in the blockchain, and this “package” is called a DID document. DID documents also contain instructions for verifying machines to communicate with or authenticate the DID owner.

Since DIDs and their associated public keys are recorded on immutable and decentralized ledgers, they allow for secure and trustworthy distribution of public keys, solving man-in-the-middle (MitM) attacks, one of the biggest problems of modern asymmetric cryptography. In essence, DLTs help tie a DID to DID documents.

In other words, think of a user DID as the “username” tied cryptographically to your wallet and the private key as the user’s password. During the process of authentication in a decentralized system, a user proves their identity by signing a message with their private key. Any third-party entity can verify the signature by looking up the user’s public key in the corresponding blockchain ledger. And with this: passwords begone.

Now onto technicalities. What does a DID look like? The DID data model comprises the Scheme, DID method, and DID Method-specific Identifier.

did example

  • DID Scheme: All DIDs begin with “did:”
  • DID method: This field specifies how to deal with this DID. When reading this part of the DID, computers understand where to go fetch the DID. For example, GATACA’s DID method is denominated "gatc"
  • DID Method-specific identifier: Refers to the DID’s unique identifier within the method. For example, GATACA’s DID method uses 32 characters using base58 for its identifiers.

The diagram below exemplifies how a DID interact with DID documents (which store public keys) and DLTs.

dids flow

(For full documentation on GATACA’s DID method, click here.)

So, where do DIDs fit in the wider SSI standard ecosystem and Verifiable Credentials? Verifiable Credentials are associated with a specific DID as the owner or holder of that credential.

An introduction to Digital Verifiable Credentials

We use identity credentials daily to access local citizen services, prove our qualifications, and register for online and offline private services. These identity credentials range from a passport, proof of address, proof of living, driver’s license, vaccination cards, insurance cards, you name it.

With the acceleration of digital transformation, many of these processes have gone digital yet still rely on physical proof of documentation, or at most a photo or scan of these documents, which is time-consuming, easily forged, and difficult to verify online or by computer (normally a natural person must manually proceed with the verification process). Is this as advanced as a society can go in the 21st century?

Luckily, the answer is no! Thanks to Distributed Ledger Technologies (DLTs), identity verification innovation has finally been brought to par with our technology-driven world.

Verifiable credentials (or VCs) are a standard format for the digital representation of credentials (documents that collect attributes about a subject) that are cryptographically secure, verifiable through machines, and that guarantee privacy by enabling methods such as minimum disclosure.

VCs can be used to describe identity credentials, and they contain metadata properties that reference the holder (or user), the issuer, associated DIDs, the issue date, and the expiration date.

With VCs, credential holders can easily manage and share their identity credentials from the comfort of a digital ID wallet and use them to instantly prove their identity and access digital services (i.e., opening a bank account online or applying for masters) or in-person businesses (i.e., accessing university buildings or retailer loyalty programs).

Similarly, organizations can streamline onboarding & authentication processes and automatically verify user identities without manually consulting issuing entities to prove their legal validity.

Our platform, Gataca Studio, streamlines the issuance and verification of verifiable credentials, as well as the management of users in one place. If you would like to see SSI in action, you can start your free trial here:

The structure of a Verifiable Credential

Verifiable Credentials obey a common structure regardless of the attributes contained: the format is the same for a national ID, an Academic diploma, a birth certificate, or a vaccination record.

This standardization of digital identity credentials introduces an opportunity to unify all logins and registration processes, including for regulated services. In other words, the possibility of creating a single digital identity to access all Internet services.

There are 3 components of a VC:

  1. Credential Metadata: Properties or attributes of the credential
  2. Claims: A statement about a subject (individual, legal entity, or thing).
  3. Proofs: cryptographic signatures tied to private keys that prove the user sharing the VC is the subject of the information.

vcs datamodel

Let’s put things into real-life perspective with an academic diploma VC example.

  • The Metadata would include an identifier for this specific credential (“id12345678”), the DID of the issuer (“University of Madrid”), the type of credential (“Academic Diploma”), and the issuance date (“01/12/2021”)
  • The claims of an academic diploma would include the claims addressed to the DID of the student Alice such as the type of degree, the graduation year, the grade, and the number of credits completed.
  • The proofs are straightforward: cryptographic signatures from the issuing authority permit service providers to verify the authenticity and ownership of the credential.

Characteristics of a VC

  • Tamper-proof: VCs are cryptographically signed by trusted authorities, providing the maximum trustworthiness for verifying organizations. Verifiers no longer call into question the authenticity and ownership of the VC. In other words, the proof that users own a specific credential, such as an Academic Diploma, and that it was officially issued by the corresponding Education institution is self-contained in the VC.
  • Sovereign: VCs allow the user to be sovereign in sharing said credential and a receiver to be sovereign in validating its authenticity without consulting the issuer.
  • Privacy-preserving: Verifiable credentials, such as National IDs, can be shared partially (only specific claims) to enable minimum disclosure. This means that for a user to prove their age, they can send a Verifiable Presentation of their date of birth rather than the entire ID VC.
  • Portable: Users are not limited to using the VC within the issuer’s ecosystem (i.e., a national ID within e-government services). Rather, VCs can be used to prove a user’s identity across all systems, such as banking, education, real estate, etc. In the aforementioned cases, a digital national ID VC could be used to access your bank (banking), enroll in a master's (education), or purchase a property online (real estate).
  • Standardized: VCs follow the W3C Verifiable Credentials standard to be used and recognized worldwide. Think of it as the passport standard. The international community agreed to a passport standard format that, regardless of who issues it, can be read and accepted globally by all governments.

Verifiable Presentations

Along with VCs comes the Verifiable Presentation (VP) concept: a pack of claims extracted from one or more Verifiable Credentials from the same or different issuers (if Verifiable Credentials are presented directly, they become Verifiable Presentations).

With VPs, “holders can freely choose which information (from underlying VCs) they include in a Verifiable Presentation and, thus, share with a relying party.” For example, to apply for a master's degree using SSI technology, a user needs to share multiple attributes (or personal information) from multiple issuers. These can include an academic diploma, a transcript from their previous educational institution, and personal ID information from the government.

A Verifiable Presentation is the simple, tamper-proof, and previously verified version of the tedious attachments you would send to the master's institution to prove your qualifications for the application (i.e., copy of passport, official transcript & diploma, copy of CV).

DIDs, VCs, and VPs not only facilitate the process of sending your personal information to verifiers but drastically reduce the turnaround time for verification. Continuing the example of the academic diploma, once the user sends the Verifiable Presentation to the Master’s application, the information sent would be verified instantly by a computer thanks to the already verified, cryptographically-signed Verifiable Credentials, which are automatically paired to a DID to prove the sender is the subject of the information.

Putting it all together: the Verifiable Credential Flow

To connect the dots on the VC flow between stakeholders, we must first depict where each of the 3 main stakeholders in the SSI ecosystem stands: Issuers (issue VCs), Holders (store & share VCs), and Verifiers (verify VCs).

The diagram below illustrates the flow of a Verifiable Credential between SSI stakeholders, also known as the Trust Triangle.

vc trust triangle

Example - Opening or Accessing a Bank Account:

  1. The government (issuer) issues a national ID Verifiable Credential sent directly to the user’s digital ID wallet.
  2. Once national ID VC is stored in the user’s ID wallet, the user then proceeds to send the Bank (verifier) a Verifiable Presentation signed by him/herself that contains the identity information required by the bank for authentication.
  3. Afterward, the Bank verifies the user & issuer’s cryptographic signatures in the VP and VC, respectively, through blockchain.
  4. After verification, the user is granted access to their account on the bank’s online platform.

The best part: this all happens in seconds! Test it out in Gataca Studio for free.

Chat with us - We’d love to chat with you. Let us know your perspective and comments on this topic or anything Digital Identity-related. Join our Telegram group.

Stay in the loop - Keep yourself updated on GATACA developments and how digital identities will transform our digital lives by subscribing to our newsletter.

Have a specific topic you’d like us to cover? Email us at - we’ll break it down for you in our upcoming blog articles.