Commit a142ebc9 authored by Ivar Derksen's avatar Ivar Derksen Committed by David Venhoek

Check whether metadata could be parsed

parent 0dbc22f8
......@@ -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] {
......
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