Skip to content

Commit

Permalink
Merge pull request #24 from WeBankFinTech/develop
Browse files Browse the repository at this point in the history
merge to master
  • Loading branch information
chenhaozx committed Feb 26, 2019
2 parents e0a5d87 + 9c1efc2 commit 7d87e0b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion docs/en/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@


.. image:: ../zh_CN/docs/images/weidentity-logo.png
:target: ../zh_CN/docs/images/weidentity-logo.png
:alt: weidentity-logo.jpeg

----
Expand Down
1 change: 0 additions & 1 deletion docs/zh_CN/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

.. image:: docs/images/weidentity-logo.png
:target: docs/images/weidentity-logo.png
:alt: weidentity-logo.png

----
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_CN/docs/styleguides/styleguides.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

* **WeIdentity DID KEY**

SDK (例如JAVA SDK, C++ SDK)都使用 WeIdentity DID 作为 key。通过 SDK 解析为地址后,在合约中使用地址作为 key,取名 weAddress。类型使用 ```address```
SDK (例如JAVA SDK, C++ SDK)都使用 WeIdentity DID 作为 key。通过 SDK 解析为地址后,在合约中使用地址作为 key,取名 weAddress。类型使用 ```address```

* **id, Id or ID?**

Expand Down
10 changes: 0 additions & 10 deletions docs/zh_CN/docs/weidentity-spec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ WeIdentity DID与WeIdentity Credential的关系


.. image:: images/weidentity-er.png
:target: images/weidentity-er.png
:alt: weidentity-er.png

从图中可见,WeIdentity DID与WeIdentity Credential的关系并非单纯的一对多:从设计目标上看,WeIdentity DID用来描述实体(人或物),WeIdentity Credential用来描述实体的身份、属性和实体间关系。因此,一个WeIdentity DID可以持有多个WeIdentity Credential;而一个WeIdentity Credential则会包含至少一个所描述的WeIdentity DID,可能会有多个。最后,每个WeIdentity DID都有一个WeIdentity Document,用来存储此DID的认证方式(如公钥、私钥套件)等信息,与WeIdentity Credential无关。
Expand All @@ -93,7 +92,6 @@ WeIdentity DID与WeIdentity Credential的关系


.. image:: images/overall-flow@2x.png
:target: images/overall-flow@2x.png
:alt: overall-flow.png

一般来说,WeIdentity解决方案的基本流程如下:
Expand All @@ -113,7 +111,6 @@ WeIdentity DID = did:weid:net-id:bs-specific-string


.. image:: images/weidentity-did-format1.png
:target: images/weidentity-did-format1.png
:alt: weidentity-did-format1.png


Expand Down Expand Up @@ -245,7 +242,6 @@ WeIdentity DID支持操作


.. image:: images/roles-relation.png
:target: images/roles-relation.png
:alt: roles-relation.png

如图所示在WeIdentity生态中,存在着以下角色:
Expand All @@ -269,7 +265,6 @@ WeIdentity DID支持操作


.. image:: images/scenario.png
:target: images/scenario.png
:alt: scenario.png

上图展示了五个WeIdentity生态下Credential在不同角色间流转的场景:
Expand Down Expand Up @@ -428,7 +423,6 @@ Claim Protocol Type(CPT)注册机制
.. image:: images/cpt-er.png
:target: images/cpt-er.png
:alt: cpt-er.png

其中CPT为模板类,定义了Claim包含的数据字段及各字段属性要求。Claim为CPT的实例。Issuer将Claim进行签名,即可生成Credential。
Expand Down Expand Up @@ -477,7 +471,6 @@ Issuer生成Credential签名的过程:


.. image:: images/sign-credential.png
:target: images/sign-credential.png
:alt: sign-credential.png


Expand All @@ -496,7 +489,6 @@ Issuer生成Credential签名的过程:


.. image:: images/verify-credential.png
:target: images/verify-credential.png
:alt: verify-credential.png


Expand Down Expand Up @@ -525,12 +517,10 @@ Verifier 如何验证一个 Credential 有效(未被撤销)


.. image:: images/before-revocation.png
:target: images/before-revocation.png
:alt: before-revocation.png


.. image:: images/after-revocation.png
:target: images/after-revocation.png
:alt: after-revocation.png


Expand Down

0 comments on commit 7d87e0b

Please sign in to comment.