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
5ae0bdf1
Commit
5ae0bdf1
authored
Apr 15, 2021
by
Sietse Ringers
Browse files
docs: document an assumption that is implicitly made in keyshareserver.Server.generateCommitments
parent
4dd63fbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/keyshare/keyshareserver/server.go
View file @
5ae0bdf1
...
...
@@ -225,8 +225,12 @@ func (s *Server) generateCommitments(user KeyshareUser, authorization string, ke
if
_
,
ok
:=
s
.
sessions
[
username
];
!
ok
{
s
.
sessions
[
username
]
=
&
SessionData
{}
}
s
.
sessions
[
username
]
.
LastCommitID
=
commitID
// Of all keys involved in the current session, store the ID of the first one to be used when
// the user comes back later to retrieve her response. gabi.ProofP.P will depend on this public
// key, which is used only during issuance. Thus, this assumes that during issuance, the user
// puts the key ID of the credential(s) being issued at index 0.
s
.
sessions
[
username
]
.
LastKeyID
=
keys
[
0
]
s
.
sessions
[
username
]
.
LastCommitID
=
commitID
s
.
sessions
[
username
]
.
expiry
=
time
.
Now
()
.
Add
(
10
*
time
.
Second
)
s
.
sessionLock
.
Unlock
()
...
...
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