Commit 5ae0bdf1 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

docs: document an assumption that is implicitly made in keyshareserver.Server.generateCommitments

parent 4dd63fbe
......@@ -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)
Supports Markdown
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