Hexadecimal

A private key is a secret alphanumeric code (256-bit number) that cryptographically proves ownership of cryptocurrency and authorizes transactions. It must be kept secret—whoever has it controls the funds.

Symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A (10), B (11), C (12), D (13), E (14), F (15). Conversion: 1 Hex digit = 4 Bits. Examples: #FFFFFF (White), 0x7FFFFFFF (Max 32-bit int).

        graph LR
  Center["Hexadecimal"]:::main
  Pre_cryptography["cryptography"]:::pre --> Center
  click Pre_cryptography "/terms/cryptography"
  Pre_hashing["hashing"]:::pre --> Center
  click Pre_hashing "/terms/hashing"
  Pre_asymmetric_encryption["asymmetric-encryption"]:::pre --> Center
  click Pre_asymmetric_encryption "/terms/asymmetric-encryption"
  Rel_public_key["public-key"]:::related -.-> Center
  click Rel_public_key "/terms/public-key"
  Rel_seed_phrase["seed-phrase"]:::related -.-> Center
  click Rel_seed_phrase "/terms/seed-phrase"
  Rel_account_abstraction["account-abstraction"]:::related -.-> Center
  click Rel_account_abstraction "/terms/account-abstraction"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Explain Like I'm 5

Imagine you have 16 fingers instead of 10. You would need extra names for the numbers after 9. You use A, B, C, D, E, and F. In this world, the number 10 is 'A', and 15 is 'F'. This system is like a secret code that makes long rows of computer switches look like short, easy words.

🤓 Expert Deep Dive

Technically, hex is used because it aligns perfectly with the byte-oriented architecture of modern CPUs. A 'Byte' consists of 8 bits, which can be expressed as two 'Nibbles' (4 bits each). Since $2^4 = 16$, each nibble corresponds perfectly to one hexadecimal digit (0-F). In programming, hex values are often prefixed with '0x' (e.g., 0xFF) to distinguish them from decimals. It is the standard for representing CSS colors (where #FF0000 is pure red), memory addresses (where pointers reside), and cryptographic hashes. Understanding hex is foundational for anyone working with 'Little-endian' vs 'Big-endian' data storage or low-level network packets.

🔗 Related Terms

📚 Sources