Guide library PENGER Academy

Anatomy of a Wallet

A wallet manages keys and transaction data. The funds remain on the network. Follow a payment to see the difference.

What you’ll learnDistinguish a recovery phrase, a private key, an address and a signature, then explain a payment.

Before you startKnow what a recovery phrase is; start with Seed Anatomy if that is new.

What Is a Crypto Wallet?

A cryptocurrency wallet is a tool that stores your private keys and allows you to send, receive, and manage digital assets. Despite the name, wallets don't actually store your coins or tokens — those exist as records on the blockchain. Your wallet holds the cryptographic keys that prove your ownership and authorize transfers.

What stays in your wallet, and what stays on the network
Signing keys
Your wallet or connected signer uses them to authorize a spend.
Transaction records
The network records transfers and enforces the conditions for spending.

Wallets come in many forms, each designed for different use cases:

  • Mobile apps — convenient, always with you, ideal for everyday transactions
  • Desktop software — more control, larger screen, suitable for managing multiple accounts
  • Browser extensions — seamless interaction with DeFi protocols and dApps
  • Hardware devices — dedicated signers that aim to keep keys outside the everyday host; their firmware, interfaces and display still matter
  • Paper wallets — a printed private key or seed phrase for long-term cold storage (now largely deprecated in favor of hardware wallets)

Separate the coordinator that prepares and broadcasts transactions from the signer that authorizes them. Some apps do both. A watch-only wallet can display and prepare transactions without holding a private key.

Public Keys vs. Private Keys

Every wallet is built on asymmetric cryptography — a system that uses two mathematically related but functionally different keys:

  • Private key — a secret 256-bit number that authorizes spending. This must never be shared with anyone. Whoever controls the private key controls the funds.
  • Public key — derived mathematically from the private key using elliptic curve multiplication. It can be freely shared and is used to verify signatures and generate addresses.

Give the sender a receiving address. A public key verifies signatures; an address encodes a destination or spending condition. They are related, but they are not interchangeable.

The mathematical relationship between the two keys is one-directional: you can always derive the public key from the private key, but it is computationally infeasible to derive the private key from the public key. This asymmetry is the foundation of all cryptocurrency security.

One common Bitcoin example: deriving a single-key native SegWit (P2WPKH) address.

1
Private Key
256-bit secret
→
2
Public Key
Elliptic curve
→
3
Address
HASH160 + Bech32

Keep private keys secret to prevent unauthorized spending. Anyone who obtains a private key can spend the funds it controls, and there is no blockchain reversal mechanism to recover them.

Addresses and Receiving Funds

In Bitcoin, an address is an encoded destination describing a particular spending condition. It may commit to a public-key hash, a script hash or a Taproot output key. Share the receiving address, verify the network and address type, and confirm it on your signer when supported.

Address Formats in Bitcoin

  • Legacy (P2PKH) — starts with 1, the original format
  • P2SH (including nested SegWit) — starts with 3, backward-compatible SegWit
  • Native SegWit (Bech32) — starts with bc1q, lower fees, better error detection
  • Taproot (Bech32m) — starts with bc1p, latest format with enhanced privacy and scripting capabilities

For Ethereum and EVM chains, addresses are 40-character hex strings prefixed with 0x, derived from the last 20 bytes of the Keccak-256 hash of the public key.

Use a fresh Bitcoin receiving address for each payment. An HD wallet can derive it from the same seed. Reusing an address makes payments easier to link; a new address reduces that link but does not make the transaction anonymous.

Sending Funds — Transaction Signing

When you send cryptocurrency, your wallet performs a precise sequence of steps:

  1. Construct the transaction — specify the recipient address, amount, and fee
  2. Create a hash — the wallet computes a cryptographic hash of the transaction data
  3. Sign the hash — your private key produces a digital signature over the hash
  4. Broadcast — the signed transaction is sent to the network
  5. Verification — network nodes verify the signature against your public key to confirm authorization

The private key is used to create the signature, while the public key is sufficient to verify it. A correctly implemented signer is designed to keep the private key inside its security boundary during normal signing and return only the signature.

Check the destination, amount, change and fee before signing. A signature authorizes specific transaction data under the applicable signature-hash rules. It does not prove that the recipient is honest or that the payment matches your intention.

Follow 0.0100 BTC through a payment

A wallet spends one 0.0100 BTC output. It sends 0.0060 BTC to the recipient and 0.0039 BTC back to a change address it controls. The remaining 0.0001 BTC is the transaction fee.

0.0100 input = 0.0060 payment + 0.0039 change + 0.0001 fee

The signer authorizes this spend. The network validates it, and miners may include it in a block. A signature alone is neither broadcast nor confirmation.

HD Wallets — One Seed, Unlimited Keys

Modern wallets are Hierarchical Deterministic (HD), meaning they derive all private keys, public keys, and addresses from a single seed phrase using a tree-like structure.

This design provides powerful advantages:

  • Single backup — one seed phrase protects all current and future keys
  • Multi-coin support — the same seed can derive keys for Bitcoin, Ethereum, and dozens of other cryptocurrencies simultaneously
  • Automatic address generation — wallets generate fresh receiving addresses without user intervention
  • Account isolation — different derivation paths create logically separate accounts under one seed
Recovery needs both the secret and the wallet settings
Regenerate the keys
The seed phrase and the exact passphrase, if one was used.
Find the funds
The network, script types, account indexes and derivation paths; multisig also needs its policy metadata.

The right seed with the wrong settings can appear empty. Check both parts before concluding that funds are missing.

Replacing a broken wallet does not move the coins. The backup restores signing capability; the wallet reconstructs addresses and finds their history. A transfer is needed only when you intentionally move funds to new spending conditions.

Questions that remain

Do I need a separate wallet for each cryptocurrency?

Not necessarily. HD wallets supporting BIP44 can derive keys for multiple coin types from a single seed phrase. Each cryptocurrency uses a different derivation path (e.g., m/44'/0' for Bitcoin, m/44'/60' for Ethereum). However, not all wallet software supports all coins — you may need different apps to access different chains, even if they all derive from the same seed.

What happens if my wallet software stops being maintained?

A compatible seed phrase is necessary, but it may not be sufficient by itself. Recovery can also require the exact BIP39 passphrase, derivation path, script or address type, account index and an adequate address-gap scan; multisig additionally needs its policy or descriptor. Record this metadata and test recovery with a small amount before depending on another wallet.

Is it safe to share my extended public key (xpub)?

Sharing your xpub allows the recipient to see all past and future addresses and balances for that account. While they cannot spend your funds, it is a significant privacy leak — they can track your entire financial activity for that account. Only share xpubs with trusted parties like your accountant, and consider using a dedicated account branch for shared access.

Can a wallet have multiple seed phrases?

Some wallet software allows managing multiple accounts, each derived from a different seed. However, each seed independently generates its own key tree. You must back up each seed separately. For most users, a single seed with multiple accounts (different derivation paths or passphrase-based hidden wallets) is more manageable than multiple seeds.

Why do I get a different address every time I receive crypto?

HD wallets automatically generate a new receiving address after each use to improve your privacy. If you reused one address, anyone who knows it could trace all your transactions. With fresh addresses, each payment is harder to link to your identity. All these addresses are still derived from your single seed phrase and will be recovered during wallet restoration.

[ CHECK YOURSELF ]

Test Your Knowledge

Take a quick quiz to check your understanding of this guide.

Take the Quiz

5 questions per level · ~2 min