Commit 8a194570 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix wrong verification of no-attribute disclosure

parent 5d5ce148
...@@ -168,7 +168,7 @@ func (pl ProofList) DisclosedAttributes(configuration *Configuration, disjunctio ...@@ -168,7 +168,7 @@ func (pl ProofList) DisclosedAttributes(configuration *Configuration, disjunctio
Status: AttributeProofStatusExtra, Status: AttributeProofStatusExtra,
} }
if k < 2 { // Never add metadata (i.e. no-attribute disclosure) as extra if k > 1 { // Never add metadata (i.e. no-attribute disclosure) as extra
extraAttrs[attrid] = attr extraAttrs[attrid] = attr
} }
if len(disjunctions) == 0 { if len(disjunctions) == 0 {
......
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