Skip to content
GitLab
Menu
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
a142ebc9
Commit
a142ebc9
authored
Jul 03, 2019
by
Ivar Derksen
Committed by
David Venhoek
Aug 06, 2019
Browse files
Check whether metadata could be parsed
parent
0dbc22f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
timestamp.go
View file @
a142ebc9
...
...
@@ -46,6 +46,9 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
var
d
interface
{}
=
disclosedint
for
i
,
_
:=
range
disclosed
{
meta
:=
MetadataFromInt
(
disclosed
[
i
][
1
],
conf
)
if
meta
.
CredentialType
()
==
nil
{
return
nil
,
""
,
errors
.
New
(
"Cannot compute timestamp request involving unknown credential types"
)
}
if
!
new
{
disclosedint
[
i
]
=
make
([]
*
gobig
.
Int
,
len
(
disclosed
[
i
]))
for
j
,
k
:=
range
disclosed
[
i
]
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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