Skip to content

Commit

Permalink
Merge pull request #28 from merlanx/test
Browse files Browse the repository at this point in the history
[20200804] Updated weidentity-quick-tools-web.rst and deploy-via-web.rst as per weid web tool gui changes
  • Loading branch information
merlanx committed Aug 4, 2020
2 parents ba5b24e + e29444c commit 41198d4
Show file tree
Hide file tree
Showing 25 changed files with 73 additions and 59 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readthedocs/zh_CN/docs/images/deploy-via-web-index.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file modified readthedocs/zh_CN/docs/images/weidentity-quick-tools-web.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions readthedocs/zh_CN/docs/samples/ECKeySampleApp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package xxx.yyy.zzz;

import org.fisco.bcos.web3j.crypto.ECKeyPair;
import org.fisco.bcos.web3j.crypto.Keys;

import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;


public class ECKeySampleApp {

public static void main (String[] args) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException {
ECKeyPair keyPair = Keys.createEcKeyPair();
System.out.println("public key " + keyPair.getPublicKey());
System.out.println("private key " + keyPair.getPrivateKey());
// public key
// 2826353706326430136059766899918547268257144433345028935544246672544715811531698763009967557019653807523504447872634462259780101707992526761608737256788009
// private key
// 51801066929398358250268966823436564939107125383375289829603669124463475610644
}
}
110 changes: 51 additions & 59 deletions readthedocs/zh_CN/docs/weidentity-quick-tools-web.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ WeIdentity 部署工具的 Web 页面, 主要提供以下功能:
- 配置区块链节点
- 配置主群组
- 配置数据库
- 配置WeID账户
- 配置 WeID 账户

- 功能管理
- 部署 WeIdentity 智能合约
- 部署 Evidence 智能合约
- 管理 WeID
- 管理权威凭证发行者(Authority Issuer)
- 管理特定类型的发行者(Specific Issuer)
- 管理 WeID 白名单
- 管理凭证类型(CPT)
- 管理披露策略(Presentation Policy)

- 异步上链管理
- 管理 Evidence 异步上链
Expand Down Expand Up @@ -77,27 +76,33 @@ WeIdentity 部署工具功能介绍

- 创建 WeID

在菜单栏点击功能管理 -> WeID管理 -> 创建WeID。
在菜单栏点击功能管理 -> WeID管理 -> 创建WeID
可选择以下任意一种方式创建新的 WeID, 如下图所示。
* 默认方式创建 WeID (系统自动创建公私钥)
* \ `自定义私钥创建 WeID (自行上传私钥) <./weidentity-quick-tools-web.html>`__\
* \ `代理模式创建 WeID (自行上传公钥) <./weidentity-quick-tools-web.html>`__\
* 自定义私钥创建 WeID (自行上传私钥, :download:`点击下载密钥生成示例代码 <./samples/ECKeySampleApp.java>`)
* 代理模式创建 WeID (自行上传公钥, :download:`点击下载密钥生成示例代码 <./samples/ECKeySampleApp.java>`)

.. image:: images/weidentity-quick-tools-web-create-weid.png
:alt: weidentity-quick-tools-web-create-weid.png

- 将 WeID 注册为权威凭证发行者

在菜单栏点击功能管理 -> WeID管理, 选择已创建好的WeID, 点击`注册为权威凭证发行者`按钮进行注册。
具体操作详见 管理权威凭证发行者_。
在菜单栏点击功能管理 -> WeID管理, 选择已创建好的WeID, 点击`注册为权威凭证发行者`按钮进行注册, 如下图所示
更多具体操作详见 管理权威凭证发行者_。

- 将 WeID 注册为特定类型的发行者
.. image:: images/weidentity-quick-tools-web-create-weid-to-authority-issuer.png
:alt: weidentity-quick-tools-web-create-weid-to-authority-issuer.png

在菜单栏点击功能管理 -> WeID管理, 选择已创建好的WeID, 点击`注册为特定类型的发行者`按钮进行注册。
具体操作详见 管理特定类型的发行者_ 。
- 将 WeID 添加到白名单

在菜单栏点击功能管理 -> WeID管理, 选择已创建好的WeID, 点击`添加到白名单`按钮, 如下图所示。
更多具体操作详见 管理WeID白名单_ 。

.. image:: images/weidentity-quick-tools-web-create-weid-to-whitelist.png
:alt: weidentity-quick-tools-web-create-weid-to-whitelist.png

.. note::
使用 Weidentity 部署工具部署后, 系统默认为 Admin 账户创建 WeID。
使用 Weidentity 部署工具部署后, 系统默认为 Admin 账户创建 WeID

.. _管理权威凭证发行者:

Expand All @@ -112,41 +117,52 @@ WeIdentity 部署工具功能介绍
.. image:: images/weidentity-quick-tools-web-register-authority-issuer.png
:alt: weidentity-quick-tools-web-register-authority-issuer.png

- 删除权威凭证发行者

在菜单栏点击功能管理 -> 权威凭证发行者, 选择权威凭证发行者, 点击`删除`按钮。
- 认证权威凭证发行者

在菜单栏点击功能管理 -> 权威凭证发行者, 选择权威凭证发行者, 点击`认证`按钮, 如下图所示。

.. image:: images/weidentity-quick-tools-web-register-authority-issuer-auth.png
:alt: weidentity-quick-tools-web-register-authority-issuer-auth.png

- 撤销权威凭证发行者

在菜单栏点击功能管理 -> 权威凭证发行者, 选择权威凭证发行者, 点击`撤销认证`按钮, 如下图所示。

.. image:: images/weidentity-quick-tools-web-register-authority-issuer-revoke.png
:alt: weidentity-quick-tools-web-register-authority-issuer-revoke.png

.. note::
1. 仅委员会成员(Committee Member)可以进行本节操作,若您不是委员会成员,请将您的 WeIdentity DID 和机构名称发给委员会成员,让其帮您注册成为 Authority Issuer。
2. 每个 WeIdentity DID 只能注册一次, 若需更换权威机构名称, 请点击`删除`按钮再重新注册。
2. 每个 WeIdentity DID 只能注册一次, 若需更换权威机构名称, 请点击`撤销认证`按钮再重新注册。

.. _管理特定类型的发行者:
.. _管理WeID白名单:

5. 特定类型的发行者(Specific Issuer)管理
5. WeID 白名单管理
""""""""""""""""""""""""""""""""""""""""""""""""""""""

- 注册特定类型的发行者
- 新增 WeID 白名单

在菜单栏点击功能管理 -> 特定类型的发行者 -> 注册特定类型的发行者
自定义类型名称,点击`注册`按钮, 如下图所示。
在菜单栏点击功能管理 -> 白名单功能管理 -> 新增白名单
自定义白名单名称,点击`新增`按钮, 如下图所示。

.. image:: images/weidentity-quick-tools-web-register-specific-issuer.png
:alt: weidentity-quick-tools-web-register-specific-issuer.png
.. image:: images/weidentity-quick-tools-web-add-whitelist.png
:alt: weidentity-quick-tools-web-add-whitelist.png

- 将 WeID 注册为特定类型的发行者
- 将 WeID 添加到白名单

在菜单栏点击功能管理 -> 特定类型的发行者, 选择某个已注册的特定类型的发行者, 点击`将WeID注册为这个特定类型的发行者`按钮, 填入所需注册的 WeID, 如下图所示。
在菜单栏点击功能管理 -> 白名单功能管理, 选择某个已创建的白名单, 点击`添加WeID到这个白名单`按钮, 填入所需添加的 WeID, 如下图所示。

.. image:: images/weidentity-quick-tools-web-register-weid-as-specific-issuer.png
:alt: weidentity-quick-tools-web-register-weid-as-specific-issuer.png
.. image:: images/weidentity-quick-tools-web-add-weid-to-whitelist.png
:alt: weidentity-quick-tools-web-add-weid-to-whitelist.png

- 将 WeID 从特定类型的发行者中移除
- 将 WeID 从白名单移除

在菜单栏点击功能管理 -> 特定类型的发行者, 选择某个已注册的特定类型的发行者, 展开内容, 选择要移除的 WeID, 点击`删除`按钮。
在菜单栏点击功能管理 -> 白名单功能管理, 选选择某个已创建的白名单, 展开内容, 选择要移除的 WeID, 点击`删除`按钮。

.. note::
1. 只有委员会成员(Committee Member)可以进行本节操作,若您不是委员会成员,您可以将您的 WeIdentity DID 和机构名称发给委员会成员,让其帮您注册成 Specific Issuer
2. 目前暂不支持通过页面删除特定类型的发行者
1. 只有委员会成员(Committee Member)可以进行本节操作,若您不是委员会成员,您可以将您的 WeIdentity DID 和机构名称发给委员会成员,让其帮您添加到白名单
2. 目前暂不支持通过页面删除白名单

6. 凭证类型(CPT)管理
"""""""""""""""""""""""""""
Expand All @@ -166,40 +182,16 @@ WeIdentity 部署工具功能介绍

在菜单栏点击功能管理 -> 凭证类型(CPT)管理, 选择已注册的凭证类型, 点击`下载CPT`按钮。

- 将凭证类型转为Jar包

在菜单栏点击功能管理 -> 凭证类型(CPT)管理, 选择已注册的凭证类型, 点击`将选中凭证类型(CPT)转成Jar包`按钮, 如图所示。

.. image:: images/weidentity-quick-tools-web-convert-cpt-jar.png
:alt: weidentity-quick-tools-web-convert-cpt-jar.png

.. note::
1. 注册凭证类型时, 若需自定义 CPT ID, 可在\ `WeIdentity CPT智能合约 <./weidentity-contract-design.html>`__\ 中参考 CPT ID 设计。
2. 若在窗口内直接编辑CPT内容, 请确保正确使用空格与 Tab 键。

7. 披露策略(Presentation Policy)管理
7. 异步上链管理
""""""""""""""""""""""""""""""""""""""""""""""""""""""

- 将披露策略转为Jar包

在菜单栏点击功能管理 -> CPT转JAVA Jar包 -> 披露策略转Jar包。
上传披露策略文件(:download:`点击下载披露策略样例 <./samples/presentation_policy.json>`)或者在窗口内直接编辑内容, 点击`转换`按钮, 如下图所示。

.. image:: images/weidentity-quick-tools-web-convert-presentation-policy-to-jar.png
:alt: weidentity-quick-tools-web-convert-presentation-policy-to-jar.png

- 下载披露策略

在菜单栏点击功能管理 -> CPT转JAVA Jar包, 选择需下载的披露策略, 点击`下载披露策略文件`按钮, 如下图所示。

.. image:: images/weidentity-quick-tools-web-download-presentation-policy.png
:alt: weidentity-quick-tools-web-download-presentation-policy.png

- 下载披露策略Jar包
- Evidence 异步上链管理

在菜单栏点击功能管理 -> CPT转JAVA Jar包, 选择需下载的披露策略, 点击`下载Jar包`按钮。
在菜单栏点击功能管理 -> 异步上链管理 -> Evidence异步上链管理, 选择所有查看的日期及处理类型, 点击`查询`按钮, 如下图所示

8. 异步上链管理
""""""""""""""""""""""""""""""""""""""""""""""""""""""

- Evidence 异步上链管理
.. image:: images/weidentity-quick-tools-web-check-evidence-on-chain.png
:alt: weidentity-quick-tools-web-check-evidence-on-chain.png

0 comments on commit 41198d4

Please sign in to comment.