【问题标题】:Indy - Update credential parameterIndy - 更新凭证参数
【发布时间】:2020-05-15 09:55:23
【问题描述】:

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

示例,成绩单模式的平均值存在错误,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

})

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

【问题讨论】:

    标签: hyperledger hyperledger-indy


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2019-12-20
      • 1970-01-01
      • 2016-12-21
      • 2021-01-18
      • 1970-01-01
      • 1970-01-01
      • 2023-02-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多