Are attribute names expected to be globally unique?
The reasons I ask it that then way matching of claim proof is done (
sovrin_client.cli.cli.SovrinCli) seems to assume so. The method goes through available claims and then tries to match attributes in a first-come-first-served manner. So it might take an attribute which is not relevant. Here is an example where the attribute
status is used in two different claims. A first claim was issued to Alice and it include a
status attribute. Later a
show proof request Job-Application is sent to Acme and here is part of the output:
The Proof is constructed from the following claims:
Claim  (Customer-Balance-Cert v0.1 from TestAgent) customer_number: 73825912 amount: 50 * status: Paid Claim  (Transcript v1.2 from Faber College) student_name: Alice Garcia * ssn: 123-45-6789 * degree: Bachelor of Science, Marketing year: 2015 status: graduated
Is there a way to force the proper matching?