Sub topic 1
What a wallet address really is
Prerequisites
This chapter assumes you already know the following:
- What a cryptocurrency and a blockchain are, in general terms.
- How to send and receive crypto with a wallet app or an exchange.
- How to read a hexadecimal string, where each character is one of
0-9ora-fand stands for 4 bits.
You don't need any cryptography background. The chapter explains the pieces you need.
The core idea: an address is derived from a key
A wallet address is a short identifier that is mathematically derived from a public key. The public key is in turn derived from a private key. Three objects are involved, and each has a different job:
| Object | What it is | Who may see it | What it does |
|---|---|---|---|
| Private key | A very large random number (256 bits for the common curves) | Only you | Authorizes spending by producing signatures |
| Public key | A point on an elliptic curve computed from the private key | Anyone | Lets others verify your signatures |
| Address | A shortened, encoded form of the public key or a hash of it | Anyone | Names the destination for incoming funds |
The derivation is one-way. Given a private key, anyone can compute the public key and the address quickly. Given only an address, nobody can work backward to the private key with any known method. This asymmetry is what lets you publish an address freely and still keep control of the funds.
Seed phrases and many addresses
Most wallets don't ask you to back up individual private keys. They generate a seed phrase, usually 12 or 24 words, which encodes a random number. From that seed, the wallet derives a tree of private keys using standard schemes (BIP-32 and BIP-44 in the Bitcoin-derived family). Each key leads to its own public key and address.
Two consequences matter later in this tutorial:
- One seed phrase controls many addresses. Anyone who holds the phrase controls all of them.
- The same seed can derive keys for different networks. Your wallet app shows you a Bitcoin address, an Ethereum address, and a Solana address, and all of them can come from one backup. The addresses look different because each network uses different math and encoding, not because they use different seeds.
How each family turns a key into an address
The steps differ by network family. You don't need to memorize them, but you should see that "address" means something slightly different in each.
- Ethereum and other EVM chains. The public key (64 bytes, uncompressed) is hashed with Keccak-256. The last 20 bytes of the hash are the address. It is written as
0xfollowed by 40 hex characters. Ethereum uses Keccak-256, which is not the same function as the standardized SHA3-256, so a generic SHA-3 library gives a wrong address. - Bitcoin. The public key is hashed with SHA-256 and then RIPEMD-160. The result is encoded as Base58Check (addresses starting with
1or3) or bech32 (addresses starting withbc1). Both encodings include a checksum. - Solana. The address is the public key itself, an Ed25519 key of 32 bytes, written in base58. Solana uses a different curve from Bitcoin and Ethereum, so the same private-key bytes would not give related addresses.
The next chapter looks at how to recognize these formats by sight. For now, the point is that every format is a different encoding of "something derived from a public key".
What an address does not contain
Several common misunderstandings come from treating an address as a container. It isn't one.
- An address does not hold coins. The blockchain is a shared ledger. It records which address is entitled to how much, as account balances in Ethereum and Solana, or as unspent outputs locked to an address in Bitcoin. Your wallet app reads that ledger and shows you the result.
- A wallet app does not store your coins. It stores keys, builds transactions, and signs them. If you delete the app but keep the seed phrase, the funds are still on the ledger and you can restore access elsewhere.
- An address does not say which network it belongs to. This is the point the rest of the tutorial builds on. An address is only a string derived from a key. Whether it identifies a place on Ethereum, Polygon, or another chain depends on which ledger you ask. Some formats, such as
bc1..., narrow the choice a lot. The0xformat does not.
The last point is why this tutorial exists. The address tells you who can spend. It doesn't tell you where the funds went.
Seeing the derivation work
The script below uses the eth-account library to make a throwaway key, show the address it produces, and prove that the address is tied to the key by signing a message and recovering the signer. Install it with pip install eth-account.
from eth_account import Account
from eth_account.messages import encode_defunct
# Create a throwaway key. Never reuse a key that has been printed or logged.
acct = Account.create()
print("address:", acct.address)
# Sign a message with the private key.
message = encode_defunct(text="I control this address")
signed = acct.sign_message(message)
# Anyone can recover the signing address from message + signature.
recovered = Account.recover_message(message, signature=signed.signature)
print("recovered:", recovered)
print("match:", recovered == acct.address)
# Rebuilding the account from the same private key gives the same address.
same = Account.from_key(acct.key)
print("same address from key:", same.address == acct.address)Run it twice and you get two unrelated addresses, because each run draws a new random key. Within one run, the signature proves control of the address without revealing the private key. This is the same mechanism the network uses to decide whether a transaction spending from an address is authorized.
Checksums and why typos are caught
Most address formats include a way to detect typing errors, which is a separate matter from the key derivation itself.
- Bitcoin's Base58Check and bech32 formats include a checksum computed from the rest of the address. A wallet that validates it rejects almost every mistyped address.
- Ethereum's plain
0xformat has no built-in checksum. EIP-55 adds one by changing the capitalization of the letters, so a mixed-case address encodes a checksum in its upper and lower case letters. A wallet that checks it will reject an address whose capitalization doesn't match. An all-lowercase address skips the check. - Solana addresses use plain base58 with no checksum. A mistyped address that still decodes to 32 bytes is accepted as a valid destination.
A checksum protects against typos only. It can't tell you whether the address is the one you intended, whether it belongs to the recipient, or whether it is on the right network. An address that passes validation can still be the wrong place to send funds.
Common errors at this level
- Believing "my address" is an account at a company. For a self-custody wallet, the address is derived from keys you control. For an exchange deposit address, it's different: the exchange controls the keys and credits your account internally. Later chapters cover this.
- Believing a new address means a new wallet. One seed can produce many addresses. Using a fresh address per transaction is normal in Bitcoin wallets and does not change who controls the funds.
- Sharing a public key or address and fearing for the funds. Sharing these is safe. The risk comes from the private key and seed phrase.
- Assuming the same address string means the same place everywhere. The same
0xstring can be valid on many networks and holds a separate balance on each. The chapters on networks and EVM chains explain this in detail. - Assuming a valid-looking address is safe to send to. Format validity says nothing about network, ownership, or whether the recipient can use funds that arrive.
Why this matters for the rest of the tutorial
The path from key to address is one-way and does not name a network. Together, those two facts explain most wrong-network losses.
- An address proves that someone, somewhere, could hold a key that matches it. If you send funds to an address on a network where the owner has no access, the ledger still records the transfer.
- Because the derivation is one-way and decentralized, no authority can look up the owner of an address and redirect your transaction.
- The same key can control the same
0xaddress on several networks. The funds can end up in a place the recipient's software doesn't show them, or in a place where they can't be used.
The following chapters build on this. First comes how to read address formats, then how networks are separate ledgers, then what happens when the two are mismatched.
Exercise
A friend says, "My wallet app holds my coins, so if I delete the app, my coins are gone." Using what this chapter covers, explain what is right and wrong in that statement. Then say what your friend must have kept to regain access.
Show answer
The coins are recorded on the blockchain, tied to an address derived from a key. The app only stores keys, builds transactions, and signs them. Deleting the app does not delete the ledger entry, so the statement is wrong. The coins are lost in practice only if the private key or seed phrase is lost too. If your friend kept the seed phrase, they can restore the wallet in another app and derive the same addresses and keys, and the funds will reappear.
Exercise
You are given the address 0x52908400098527886E0F7030069857D2E4169EE7. A colleague says, "That address tells me the funds will arrive on Ethereum mainnet." Is that conclusion justified? Give the reason in terms of how addresses are derived.
Show answer
No. An EVM address is the last 20 bytes of a Keccak-256 hash of a public key. Nothing in that derivation includes a network. The same string is valid on Ethereum, Polygon, BNB Smart Chain, and other EVM networks. The network is determined by which ledger the transaction is submitted to, not by the address.