Labs ICT
⭐ Pro Login

Wallets and Keys

Public keys, private keys, and wallet types

Wallets and Keys

Cryptocurrency wallets don't actually store your coins. Instead, they store cryptographic keys that prove your ownership and allow you to sign transactions. Understanding the difference between public and private keys is essential for keeping your funds safe.

Key Generation Flow


  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Random Number   β”‚  (256-bit private key)
  β”‚  Generation      β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  PRIVATE KEY     β”‚  e.g., 0x8f4a2b1c...9e3d
  β”‚  (Secret!)       β”‚  Only you should know this
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚ Elliptic Curve (secp256k1)
           β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  PUBLIC KEY      β”‚  e.g., 0x04a7b3c2...8f1e
  β”‚  (Can share)     β”‚  Derived from private key
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚  Keccak-256 hash + trim
           β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  WALLET ADDRESS  β”‚  e.g., 0x742d35Cc6634C0532
  β”‚  (Can share)     β”‚  What you give to others
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Public Key vs Private Key


  PUBLIC KEY                          PRIVATE KEY
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Like your email       β”‚          β”‚  Like your password    β”‚
  β”‚  address               β”‚          β”‚                        β”‚
  β”‚                        β”‚          β”‚  - NEVER share it      β”‚
  β”‚  - Share freely        β”‚          β”‚  - Write it on paper   β”‚
  β”‚  - Others send to this β”‚          β”‚  - Store offline       β”‚
  β”‚  - Cannot spend funds  β”‚          β”‚  - Controls all funds  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

  RULE: If you lose your private key, you lose your funds FOREVER
  RULE: If someone gets your private key, they own your funds

Types of Wallets

Hot Wallets β€” Connected to the internet. Convenient but less secure.

Examples: MetaMask, Trust Wallet, Exodus

Cold Wallets β€” Offline storage. Maximum security.

Examples: Ledger Nano, Trezor, paper wallets


  Security vs Convenience:
  ◄──────────────────────────────────────────►
  MORE SECURE                       MORE CONVENIENT
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Paper  β”‚  β”‚Hardwareβ”‚  β”‚Desktop β”‚  β”‚ Mobile β”‚  β”‚ Web
  β”‚ Wallet β”‚  β”‚ Wallet β”‚  β”‚ Wallet β”‚  β”‚ Wallet β”‚  β”‚Wallet
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  Offline     Offline      Online      Online       Online

Seed Phrase (Recovery Phrase)

Most wallets generate a 12 or 24-word seed phrase when created. These words can reconstruct your private key. Write them down on paper and store them in a secure location. Never store them digitally or share them with anyone.


  Example 12-word seed phrase:
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  1.abandon  2.word      3.alice    4.bike   β”‚
  β”‚  5.chunk    6.dawn      7.eagle    8.forest β”‚
  β”‚  9.habit    10.ice      11.jungle  12.kite  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  Anyone with these 12 words can access ALL your funds

πŸ§ͺ Quick Quiz

Why must a private key be kept secret?