Skip to content

Commit

Permalink
Docs:fix data export docs (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongtianq authored Apr 22, 2024
1 parent c5676fa commit 68beb43
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/quick_start/step5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"source": [
"### 2. 获取数据密钥\n",
"\n",
"#### 2.1 alice生成待签名内容\n",
"#### 2.1 alice发起导出数据投票请求并签名\n",
"\n",
"把下列的内容拷贝到一个空文件中,假如您把文件内容保存为文件vote-request.yaml。\n",
"该文件主要包含两块内容:\n",
Expand Down Expand Up @@ -117,9 +117,9 @@
"找到`vote_request_signature`之后,把对应的内容给到bob,bob需要对该内容进行签名。\n",
"\n",
"\n",
"#### 2.2 bob对数据导出请求进行签名\n",
"#### 2.2 bob对数据导出请求投票并进行签名\n",
"\n",
"首先,bob需要把以下内容复制到一个空文件,假设文件叫做sign.yaml。该文件说明如下:\n",
"首先,bob需要把以下内容复制到一个空文件,假设文件叫做voter.yaml。该文件说明如下:\n",
"\n",
"- `vote_request_signature`: 上一步alice得到的数据导出请求的内容,拷贝到这里。记住,请替换为您实际得到的内容。\n",
"- `action`: `APPROVE`表示同意alice的请求,无需修改。\n",
Expand Down Expand Up @@ -161,7 +161,7 @@
"\n",
"bob将这个签名结果signed-voter.yaml发送给alice\n",
"\n",
"#### 2.3 alice生成数据导出请求的内容\n",
"#### 2.3 alice获取bob投票的签名结果,生成数据导出请求\n",
"\n",
"alice根据自己生成的signed-vote-request.yaml以及bob签名后发送来的signed-voter.yaml,生成完整的投票结果,用于数据导出请求。\n",
"\n",
Expand All @@ -170,18 +170,18 @@
"```\n",
"\n",
"\n",
"#### 2.4 alice获取数据密钥并解密\n",
"#### 2.4 alice向CapsuleManager获取数据密钥并解密\n",
"\n",
"打开CLI工具的配置文件(即步骤二、三中提到的alice.yaml和bob.yaml),编辑以下内容:\n",
"\n",
"- `party_id`: 填写alice的机构ID(在以前的步骤中您应该已经获得)。\n",
"- `resource_uri`: 要解密的文件,即前文中提到的从carol获取到的加密的模型文件xgb_model\n",
"- `resource_uri`: 需要导出的数据密钥的id,这里就是xgb模型对应的model_uuid,与2.1步骤中alice发起导出数据投票时的data_uuid是同一个id\n",
"- `data_export_certificate_file`: 即上一步得到的文件。\n",
"\n",
"```yaml\n",
"get_export_data_key_b64:\n",
" party_id: alice_party_id\n",
" resource_uri: xgb_model\n",
" resource_uri: model_uuid\n",
" data_export_certificate_file: vote-result.json\n",
"```\n",
"\n",
Expand Down

0 comments on commit 68beb43

Please sign in to comment.