Digital Signature
A digital signature is a cryptographic method that uses a private key to sign blockchain transactions, verifiable with the public key to prove authenticity and prevent tampering.
What Is a Digital Signature?
A digital signature is a piece of data that proves a message was approved by the holder of a particular private key and has not been changed since. Anyone can check it with the matching public key; nobody can produce it without the private key, and checking it reveals nothing about that key.
In crypto, the message is a transaction. The wallet hashes the transaction, computes a signature over the hash with the private key and attaches it. Nodes verify the signature against the public key or address that owns the coins and reject the transaction if it fails. Changing a single detail, such as the amount or the recipient, invalidates the signature.
Bitcoin and Ethereum use ECDSA on the secp256k1 curve; Bitcoin's Taproot upgrade added Schnorr signatures, and networks such as Solana and Cardano use Ed25519.
A hardware wallet exists to produce signatures without letting the key leave the device: the computer sends the transaction, the device shows it, the user confirms, and only the signature comes back. A signature is final, so what counts is knowing what is being signed. Wallets are also asked to sign plain messages, and some such messages authorise token transfers. The same mathematics protects the device itself: firmware updates carry the vendor's signature, which the device checks before installing.
Real-World Examples
Example 1: A SafePal S1 receives an unsigned transaction by scanning a QR code, shows the recipient and amount, and after confirmation displays the signature as a QR code for the phone app to scan and broadcast.
Example 2: A website asks a user to sign in with their wallet. The request is a text message to sign; it costs no fee and moves nothing. The user still reads the text on the device before approving, because a request that looks similar can be a permit to spend tokens.
Example 3: A firmware file that an attacker has modified fails the signature check, and the hardware wallet refuses to install it.
Frequently Asked Questions
Can a signed transaction be altered after I approve it?
Not without invalidating it. The signature is computed over a hash of the transaction, so changing a single detail, such as the amount or the recipient, makes verification fail and nodes reject it. Because a valid signature is final, what counts is knowing what is being signed before you confirm.
Is signing a message safer than signing a transaction?
Not necessarily. A sign-in message costs no fee and moves nothing, but some plain messages authorise token transfers, and a request that looks similar to a login can be a permit to spend tokens. Read the text on the hardware wallet screen before approving any signature request.
How do signatures protect a hardware wallet's firmware?
Firmware updates carry the vendor's signature, which the device checks before installing. A firmware file that an attacker has modified fails that check, and the hardware wallet refuses to install it. It is the same mathematics that lets nodes confirm a transaction was approved by the holder of the private key.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.