A digital signature is a short cryptographic value attached to a message, document or transaction that proves two things: who signed it, and that it has not been changed since it was signed. The signer creates it with a private key that only they hold, and anyone can check it with the matching public key. Digital signatures secure software updates, bank payment messages, e-contracts and every transaction on a public blockchain.
A digital signature is a specific kind of electronic signature. "Electronic signature" is the broad legal term for any electronic sign of agreement, from a typed name to a click on "I accept". A digital signature is the cryptographic method, and it is much harder to forge. It is also different from encryption: encryption hides content, while a signature leaves content readable and proves where it came from.
Digital signature in plain terms
Imagine a wax seal pressed with a signet ring that only you own. Anyone who knows your seal's pattern can tell that a letter came from you, and if someone opens and reseals the letter, the broken wax shows it. A digital signature does the same job, but the ring is a secret number and the seal is mathematics.
The clever part is that the seal is different for every document. Change a single comma and the old signature no longer fits. And while anyone can check your seal, knowing what it looks like does not let them make a new one.
How a digital signature works
Signing and checking follow a fixed sequence:
- The document is run through a hash function such as SHA256, producing a short fingerprint that changes completely if even one bit of the document changes.
- The signer's software combines that fingerprint with the private key using a signature algorithm, producing the signature.
- The document and signature are sent together.
- The recipient hashes the document again and uses the signer's public key to check that the signature matches that fingerprint. A match proves authenticity and integrity.
Because only the private key can produce a valid signature, the signer cannot easily deny signing later, a property called non-repudiation. This depends on the key being kept secret: if a cryptographic key is stolen, anyone can sign in the owner's name.
To link a public key to a real person or company, most business systems use a public key infrastructure: a trusted certificate authority issues a certificate binding the key to a verified identity, much as a passport links a photo to a name. Blockchains skip this step, so a key identifies an address rather than a named person.
Algorithms and standards
The US standard is NIST's Digital Signature Standard, FIPS 186-5 (2023), which approves RSA, ECDSA and EdDSA. RSA relies on the difficulty of factoring large numbers; ECDSA and EdDSA use elliptic curves and produce much shorter signatures. Because a large quantum computer could break all three, NIST published post-quantum signature standards in August 2024, including ML-DSA (FIPS 204) and SLH-DSA (FIPS 205). Financial institutions are now planning migrations to these algorithms.
Uses in banking, payments and crypto
- Interbank messaging. Networks such as SWIFT use public key infrastructure so a receiving bank can trust that a payment instruction really came from the sender.
- Card payments. EMV chip cards can use RSA-based dynamic data authentication, signing data for each transaction so that copied card data cannot simply be replayed, alongside strong customer authentication.
- Trade documents. An electronic bill of lading relies on signatures and control records so the document can be transferred like paper, a model recognized by MLETR and the UK's Electronic Trade Documents Act 2023.
- Blockchains. Every Bitcoin transfer is authorized by an ECDSA or, since the 2021 Taproot upgrade, Schnorr signature. A multi-sig wallet requires several signatures, and a multi-party computation wallet splits one key so no single party holds it.
- Identity and onboarding. Signed digital identity documents and qualified certificates let banks verify customers remotely as part of know-your-customer checks and build a reliable digital identity.
Variants exist for special needs. Ring signatures prove that one member of a group signed without revealing which, a technique used by privacy coins. Signatures are also used in digital rights management to prove that a content licence was issued by the rights holder.
Legal recognition
In the United States, the ESIGN Act of 2000 and the Uniform Electronic Transactions Act give electronic signatures, including digital ones, the same legal effect as handwritten signatures for most transactions. In the European Union, the eIDAS Regulation (EU) No 910/2014 defines three levels: simple, advanced and qualified electronic signatures. A qualified electronic signature, made with a certified device and a qualified certificate, has the same legal effect as a handwritten signature in every member state. eIDAS was amended in 2024 to add European digital identity wallets.
Limitations
A digital signature proves that a key was used, not that the person agreed knowingly. Malware, phishing or social engineering can trick a user into signing a harmful transaction, which is how many crypto thefts happen. Lost keys cannot sign anything, and revoked or expired certificates must be checked. Long-lived records also face the quantum risk described above.