Commit 972e2150 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: do not accept empty disclosure proofs in signatures; only in disclosures

parent 74788fa9
......@@ -303,6 +303,10 @@ func (d *Disclosure) Verify(configuration *Configuration, request *DisclosureReq
func (sm *SignedMessage) Verify(configuration *Configuration, request *SignatureRequest) ([][]*DisclosedAttribute, ProofStatus, error) {
var message string
if len(sm.Signature) == 0 {
return nil, ProofStatusInvalid, nil
}
// First check if this signature matches the request
if request != nil {
if !sm.MatchesNonceAndContext(request) {
......
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