# Verifiable Credential

Verifiable Credential (可验证数字凭证，简称 VC)，是防篡改的 [W3C 标准凭证](https://www.w3.org/TR/vc-data-model/)，可以通过密码学签名验证来实现自主权身份 (Self Sovereign Identity, SSI)，保护个人数据。它们可以代表任何物理世界对应的凭证，还可以代表物理世界以外的新型凭证。VC 的文档格式通常为 JSON，具有语义和结构化的数据模型，将凭证持有人置于身份生态系统的中心。VC 区别于 NFT 和 SBT 的一个重要特点是，VC 默认情况下是存储在链下的，这就允许用户根据需要有选择地只与互联网上的相关方分享凭证数据，赋予了用户对个人数据的自主权和隐私权。

凭证是由发行方提出的一组一个或多个声称 (claim)。可验证数字凭证是一组防篡改的声明和元数据 (metadata)，它们由密码学方法证明是谁颁发的。

<figure><img src="/files/jDkWjr945ZbYSp0To6sR" alt=""><figcaption><p>sr: <a href="https://www.w3.org/TR/vc-data-model/">https://www.w3.org/TR/vc-data-model/</a></p></figcaption></figure>

上图展示的是抽象出来的 VC 基本组件，其中 Proof(s) 即可验证的密码学签名，以对发行者的身份进行验证核实。

VC 需要使用标识 (Identifier) 属性来表达对特定事物 (例如人、产品或机构) 的陈述。VC 使用的标识可以是基于 HTTP 的 URL，也可以是 DID (Decentralized Identifier, 去中心化标识符)。DID 是一个实体在全局的唯一标识符，一个 DID 可以被解析为一个DID 文件，这个文件存储在可验证数据存储 (Verifiable Data Registry， 例如，区块链）。DID 是用于表达与凭证 Subject (VC 上 claim 描述的主体)、Issuer (VC 发行方)、Holder (VC 持有者)、凭证状态列表、加密密钥以及其他与 VC 相关的机器可读信息相关的标识符。

<figure><img src="/files/PQJCRxryYyXZqVQfJV8l" alt=""><figcaption><p>sr: <a href="https://www.w3.org/TR/vc-data-model/">https://www.w3.org/TR/vc-data-model/</a></p></figcaption></figure>

EthGifts.com 上发行的 VC 所使用的 DID 都基于以太坊，即使用以太坊区块链这一公开的分布式账本作为可验证数据存储，任何人都可以在以太坊区块链上查找到相关的以太坊地址，进行验证。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ethgifts.com/web3-shu-zi-ping-zheng/verifiable-credential.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
