Educational Hub

Digital Signatures (ECDSA)

In elliptic curve cryptography, your Private Key allows you to mathematically sign a message. Anyone in the world can verify that the signature is authentic using your Public Key, but no one can forge it or deduce your private key from it.

✍️

Signature Generator

Use a Private Key in hexadecimal format (256 bits) to cryptographically sign a text message.

Message SHA-256 Hash:
🔍

Signature Verifier

This panel has no access to the Private Key. Try altering a single character of the message or signature to see how mathematical validation fails.

Waiting for data...

ECDSA digital signatures: how you prove a payment is yours

A digital signature proves that whoever sends a transaction controls the matching private key, without revealing it. Bitcoin uses ECDSA over the secp256k1 curve (and, since Taproot, Schnorr signatures as well). The signature is a pair of numbers (r, s) that anyone can check with the public key.

To sign, the hash of the message or transaction is computed first. That hash is then combined with the private key and a one-time random number (the nonce). Verification recomputes a point on the curve from the signature, the hash and the public key, and checks that it matches r.

How to use the lab

Enter a test private key in hexadecimal (or generate a random one), sign the message and verify the signature in the verification section. Then change a single letter of the message and check that verification fails: this is what stops anyone from altering a signed transaction.

Why the nonce is critical

If the same nonce is reused with two different messages, an attacker can deduce the private key. That is why modern wallets generate deterministic nonces (RFC 6979), and why you should never roll your own cryptography for real funds.

Note

This lab is for education only. Do not enter real private keys here.