Commit a39a86ef authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix wrong index offset in verification

parent 708e75b7
...@@ -144,7 +144,7 @@ func (d *Disclosure) DisclosedAttributes(configuration *Configuration, disjuncti ...@@ -144,7 +144,7 @@ func (d *Disclosure) DisclosedAttributes(configuration *Configuration, disjuncti
usedAttrs[index.CredentialIndex][index.AttributeIndex] = struct{}{} usedAttrs[index.CredentialIndex][index.AttributeIndex] = struct{}{}
metadata := MetadataFromInt(proofd.ADisclosed[1], configuration) // index 1 is metadata attribute metadata := MetadataFromInt(proofd.ADisclosed[1], configuration) // index 1 is metadata attribute
attr, attrval, err := parseAttribute(index.AttributeIndex, metadata, proofd.ADisclosed[index.AttributeIndex+2]) attr, attrval, err := parseAttribute(index.AttributeIndex, metadata, proofd.ADisclosed[index.AttributeIndex])
if err != nil { if err != nil {
return false, nil, err return false, nil, err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment