Digital signatures provide a way to cryptographically bind an electronic identity to an electronic document to verify authenticity and detect tampering. A digital signature scheme uses a private key to sign a message and a public key to verify the signature. If any part of the signed document is altered, the signature will no longer be valid. Digital signatures are commonly used for software distribution, financial transactions, and other cases where forgery or tampering needs to be detected.