Home βΊ Cryptography Basics
π Cryptography Basics
Last verified: April 2026Hash functions, public and private keys, digital signatures β the mathematical foundations that make blockchain secure.
Why cryptography is the foundation
The word "crypto" comes from cryptography β the mathematics of secure communication. Blockchains don't rely on trust or authority; they rely on cryptographic guarantees that are effectively impossible to forge. Two tools do most of the work: hash functions and public-key cryptography. You don't need the maths to use crypto, but understanding what these tools do demystifies how the whole system holds together.
Hash functions
A hash function takes any input β a word, a file, a whole block of transactions β and produces a fixed-length string of characters that acts as a unique fingerprint. Two key properties make it powerful: the same input always gives the same fingerprint, but the tiniest change to the input produces a completely different one, and you can't work backwards from a fingerprint to the original data. Blockchains use hashes to link blocks together and to make any tampering instantly detectable.
Public and private keys
Every crypto wallet is built on a pair of mathematically linked keys. The private key is a secret only you hold; the public key (and the address derived from it) is shared openly. The magic is asymmetry: you can prove you own funds by signing a transaction with your private key, and anyone can verify that signature using your public key β without ever seeing the private key itself. This is how you authorise transactions without a bank, and why losing your private key means losing your funds permanently.
Digital signatures
When you send crypto, your wallet uses your private key to create a digital signature unique to that transaction. The network verifies the signature against your public key, confirming both that you authorised it and that it hasn't been altered. It's the cryptographic equivalent of an unforgeable handwritten signature, and it's what lets strangers transact securely with no intermediary vouching for either party.
The takeaway
Cryptography replaces the trust we normally place in institutions with mathematical certainty. It's why a blockchain can be open for anyone to read and write to, yet still be secure β and why protecting your private key is the single most important habit in crypto.
Cryptography and your security habits
Understanding cryptography also explains the safety rules everyone repeats. Your recovery phrase (seed phrase) is what regenerates your private keys, which is why it must never be shared, screenshotted, or stored online β anyone with it controls your funds. No legitimate service can recover it for you, because there's no central database; the maths is the only authority. This is the flip side of crypto's freedom: cryptography gives you total control, and total responsibility.
Looking ahead: quantum
A common question is whether quantum computers will break crypto's cryptography. In theory, sufficiently powerful quantum machines could threaten some of today's public-key schemes, but such machines don't yet exist at the required scale, and researchers are already developing "post-quantum" cryptography to replace vulnerable methods well before that becomes a practical risk. It's a real area of work, not an imminent danger.