在自我主权身份中,当验证者向凭证持有者发送证明请求时,验证者如何确保在向持有者提出证明请求期间使用与持有者相关的正确模式 ID?
问问题
75 次
1 回答
0
我更深入了,我现在可以说验证者可以在证明请求的限制中要求特定的“schema_id”:(从这里)
{
"name": "proof-schema1",
"version": "1.0",
"requested_attributes": [
{
"names": ["class", "grade"],
"restrictions": [{"cred_def_id": "<cred-def-id>"}]
},
{
"name": "phone_number"
}
],
"requested_predicates": [
{
"name": "rank",
"p_type": "<=",
"p_value": 10,
"restrictions": [{"cred_def_id": "<cred-def-id>"}]
}
],
"cred_filter": [
{
"attr_name": "class",
"attr_values": ["Math 100"]
"exclude": true
},
{
"attr_name": "class",
"attr_values": ["Math *"]
}
]
}
于 2021-02-17T10:51:59.910 回答