0

我需要更改凭证的参数,我想知道是否有必要撤销凭证并使用正确的参数重新创建,或者可以更新凭证中的唯一参数。

例如,成绩单模式的平均值存在错误,Alice 必须有 9:

transcript_cred_values = json.dumps({
  "first_name": {"raw": "Alice", "encoded": "1139481716457488690172217916278103335"},
  "last_name": {"raw": "Garcia", "encoded": "5321642780241790123587902456789123452"},
  "degree": {"raw": "Bachelor of Science, Marketing", "encoded": "12434523576212321"},
  "status": {"raw": "graduated", "encoded": "2213454313412354"},
  "ssn": {"raw": "123-45-6789", "encoded": "3124141231422543541"},
  "year": {"raw": "2015", "encoded": "2015"},
  "average": {"raw": "5", "encoded": "5"} //This 5 muste be a 9

})

但是成绩单已经在分类帐中,我们需要撤销该成绩单以更改参数并重新创建吗?

4

1 回答 1

0

我可以在Hyperledger Indy HIPE中找到解决方案,在撤销的动机部分之一是使用撤销来处理凭据中的输入错误的原因。文本:“但是,如果证书被错误地签发(例如,其中有错误识别主题的错字),这也很重要。后一种情况即使对于不可变和永久的证书(如出生证明)也很重要。”

因此,解决方案是撤销并为 Alice 使用正确参数的新凭证。

于 2020-06-07T19:58:27.920 回答