Commit 36bf911a authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Include issuer publickey when constructing credential

parent 60148176
......@@ -97,10 +97,15 @@ func (cm *CredentialManager) Credential(id string, counter int) (cred *Credentia
err = errors.New("signature file not found")
return nil, err
meta := MetadataFromInt(ints[1])
pk := meta.PublicKey()
if pk == nil {
return nil, errors.New("unknown public key")
cred := newCredential(&gabi.Credential{
Attributes: ints,
Signature: sig,
Pk: nil, // TODO
Pk: pk,
cm.credentials[id][counter] = cred
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