A digital signature is a cryptographic technique used to verify the authenticity and integrity of digital data. It works similarly to a handwritten signature but is far more secure, using public-key cryptography to prove that a message or transaction was created by the holder of a specific private key. In blockchain, digital signatures ensure that transactions cannot be forged or altered after they are signed.