Skip to content

Commit

Permalink
Fixed bug in documentcreation. How did this work?
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Feb 11, 2024
1 parent 021712e commit eb55199
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion entity/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,15 @@ func (e *Entity) CreateDocument(controller string) error {
log.Debugf("entity/document: Set assertionMethod to %v for %s", myDoc.AssertionMethod, mySignVM.ID)

// Finally sign the document with the signing key.
return myDoc.Sign(e.Keyset.SigningKey, mySignVM)
err = myDoc.Sign(e.Keyset.SigningKey, mySignVM)
if err != nil {
return fmt.Errorf("entity: failed to sign document: %s", err)
}

e.Doc = myDoc

return nil

}

// Publish entity document. This needs to be done, when the keyset is new.
Expand Down

0 comments on commit eb55199

Please sign in to comment.