How to sign using digital signatures