A digital signature is a cryptographic scheme for verifying authenticity of digital messages and documents. A digital document that is cryptographically signed is tamper-evident. In asymmetric cryptography, a private key is used for signed a document whereas a public key is used for verifying the document.