Hello,
For this purpose, Microsoft has an ecosystem between SharePoint and Infopath that would allow to digitally sign the forms or questionnaires.
Configuring Infopath for SharePoint:
https://learn.microsoft.com/en-us/sharepoint/configure-infopath-forms-services
Enable digital signatures in InforPath:
--If the reply is helpful, please Upvote and Accept as answer--