Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
a39a86ef
Commit
a39a86ef
authored
Dec 19, 2018
by
Sietse Ringers
Browse files
Fix wrong index offset in verification
parent
708e75b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
verify.go
View file @
a39a86ef
...
...
@@ -144,7 +144,7 @@ func (d *Disclosure) DisclosedAttributes(configuration *Configuration, disjuncti
usedAttrs
[
index
.
CredentialIndex
][
index
.
AttributeIndex
]
=
struct
{}{}
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
{
return
false
,
nil
,
err
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment