What is Digital Signature in Blockchain? (original) (raw)

Last Updated : 23 Jul, 2025

A digital signature is a mathematical scheme that is used to verify the integrity and authenticity of digital messages and documents. It may be considered as a digital version of the handwritten signature or stamped seal. The digital signatures use asymmetric cryptography i.e. also known as public key cryptography.

What are Digital Signatures?

Digital signatures use asymmetric key cryptography. Asymmetric key cryptography also known as public key cryptography uses public and private keys to encrypt and decrypt data.

In short, it can be summarized as a digital signature a code that is attached to the message sent on the network. This code acts as proof that the message hasn't been tampered with along its way from sender to receiver.

A digital signature is intended to solve the problem of tampering and impersonation and tampering thus it gives a recipient reason to believe:

Why are Digital Signatures Important?

Digital signatures are important to achieve three results: Data integrity, authenticity, and non-repudiation.

  1. **Data Integrity: It is preserved by using the hash function in signing and verifying algorithms. Any change in the message will produce a completely different signature. This way Bob can verify that the message sent by Alice was not modified along its way.
  2. **Authenticity: The message is verified using the public key of the sender. When Alice sends a message to Bob. Bob uses the public key of Alice for verification and Alice's public key cannot create the same signature as Kev's private key.
  3. **Message Nonrepudiation: Once the signature is generated, Alice cannot deny having signed it in the future, unless Alice's private key is compromised.

Suppose Alice creates a signature from the message and sends a message to Bob and a signature to the trusted center.

In the future, if Alice denies that no message is sent from its site, the center can show a copy of the saved message.

Conventional Signature vs Digital Signature

A document is signed to show that is approved by the user or created by the user. The signature is proof to the recipient that this document is coming from the correct source. The signature on the document simply means the document is authentic.

When Alice sends a message to Bob, Bob needs to check the authenticity of the message and confirm it comes from Alice and not Kev. So Bob can ask Alice to sign the message electronically. The electronic signature that proves the identity of Alice is also called a digital signature. Digital Signature needs a public key system. The sender uses a private key to sign a document and the verifier uses the public key to verify the document.

Below are the differences between conventional signatures and digital signatures.

S No. Conventional Signature Digital Signature
1 A conventional Signature is part of a document. For example, when a cheque is signed the signature is present on the cheque not on a separate document. A digital signature is not part of a document. This means the sender sends two documents message and a signature.
2 To verify conventional signatures the recipient compares the signature on the document with the signature on file. So recipient needs to have a copy of this signature on file for comparison. To verify digital signatures the recipient applies a verification technique to a combination of the message and the signature to verify authenticity. So here a copy of the signature is not stored anywhere.
3 There are One to Many relationships between document and signature. There is One to One relationship between message and signature. Every message has its own signature.
4 Copy of signed document can be distinguished from the original signature on file. No distinction can be made unless there is a factor of time(timestamp) on the document.

How do Digital Signatures Work?

Let's have a look at the series of steps involved in working of digital signatures:

  1. **Signing the message with the private key: Digital signature is created using signing software that creates a one-way hash function of the data to be signed. The private key of the sender is used to encrypt the hash value generated. The encrypted hash value along with the hash algorithm constitutes the digital signature. The sender will now send the message along with the encrypted hash value to the receiver. The receiver can only decrypt the hash value using the sender's public key.
  2. **Verifying the message with the public key: At the receiver end, there are two steps, to generate the hash of the message and decryption of the signature. By using the sender's public key, the signature can be decrypted. if the decrypted hash matches the second computed hash value then it proves that the message hasn't been changed since it was signed. If the two hash values don't match then it means that the message has been tampered with along its way.

Let's understand the above concept using an example:

Applications of Digital Signatures

Digital signatures can be used in various fields like Finance, Healthcare, etc. Below are some of the applications of digital signatures:

Digital Signature Algorithms

Below are some of the digital signature algorithms:

Benefits of Digital Signatures

Below are some of the benefits of digital signatures:

Limitations of Digital Signature

Below are some of the limitations of digital signatures: