Unidirectional Derivation and Core Positioning
In the Bitcoin network, a strict unidirectional derivation relationship exists among the private key, public key, and wallet address: the private key derives the public key, and the public key further derives the wallet address. This process is built upon cryptographic one-way mathematical functions, meaning that while the corresponding public key and address can be easily calculated from the private key, reverse-engineering the private key from the address or public key is virtually impossible given current computing power.
The roles and positioning of these three elements differ distinctively:
- Private Key: Acts as the core control center and ultimate seal of digital assets. Holding the private key means possessing ultimate control over the Bitcoin, used to digitally sign transfer transactions.
- Public Key: Used to verify the authenticity of transaction signatures generated by the private key, proving that the transaction initiator indeed possesses the controlling rights over the asset.
- Wallet Address: Functions as a public receiving account, derived from the public key through hashing and encoding conversion, making it easy to publicly circulate and receive assets within the network.
Private Key: The Fundamental Source of Asset Control
A Bitcoin private key is essentially a 256-bit (32-byte) large random integer. Its value range is restricted by the order of the elliptic curve, lying between 1 and $2^{256}-1$. Due to the extremely vast space of private keys, the probability of guessing someone else's private key via random collision is practically zero.
For ease of storage and transmission, the raw binary or hexadecimal private key is typically converted into different text export formats:
- Raw Hexadecimal: A string consisting of 64 hexadecimal characters.
- WIF (Wallet Import Format): A private key format encoded via Base58Check, featuring a built-in checksum to prevent input errors, typically starting with 5, K, or L.
Public Key: From Private Key to Cryptographic Verification Point
The public key is derived from the private key through asymmetric encryption algorithms. Bitcoin adopts the elliptic curve digital signature algorithm (ECDSA) known as secp256k1. Mathematically, the private key acts as a scalar $k$ and is multiplied by a known base point $G$ on the elliptic curve to yield a coordinate point on the curve $K = k \times G$, where this coordinate point $(x, y)$ is the public key.
The core characteristic of elliptic curve multiplication is its "unidirectional irreversibility": given $k$ and $G$, calculating $K$ is highly efficient; however, given $K$ and $G$, reverse-engineering $k$ (the discrete logarithm problem) is computationally infeasible. Public keys primarily come in two storage and display formats:
- Uncompressed Public Key: Contains both $x$ and $y$ coordinate axis data, with a length of 65 bytes and a fixed prefix of
0x04. - Compressed Public Key: Due to the symmetry of the elliptic curve, the complete $y$ can be deduced given the $x$ coordinate and the parity of the $y$ coordinate. The compressed public key occupies only 33 bytes, starting with
0x02or0x03depending on the parity of $y$. Currently, the Bitcoin network universally uses compressed public keys to save block storage space.
Wallet Address: The Publicly Exposed Receiving Identifier
Although public keys can be made public, to enhance security and shorten string lengths, a public key is not directly used as a receiving account; instead, it undergoes a series of hashing processes and encodings to generate a wallet address. Taking the traditional P2PKH (Pay-to-PubKey-Hash) address as an example, its generation process is divided into the following key steps:

- Dual Hash Dimensionality Reduction: First, a SHA-256 hash calculation is performed on the public key, followed by a RIPEMD-160 hash calculation on the result, generating a 160-bit (20-byte) PubKeyHash. This not only shortens the data length but also adds a layer of protection against quantum computing.
- Adding Version Prefix: A mainnet version byte (such as
0x00for traditional addresses) is prepended to the public key hash. - Calculating Checksum: Two consecutive SHA-256 hash calculations are performed on the version-appended data, taking the first 4 bytes as a checksum appended at the end to prevent users from mistakenly entering incorrect addresses.
- Character Encoding: The concatenated data undergoes Base58Check encoding, converting it into a human-readable string (traditional addresses start with
1).
Evolution of Bitcoin Address Formats
Along with technological updates in Bitcoin, address formats have undergone multiple major upgrades:
- P2PKH (Legacy): Traditional address, starting with
1, occupying more space with relatively higher transaction fees. - P2SH (Pay-to-Script-Hash): Starting with
3, commonly used for multi-signature wallets or Nested SegWit. - Bech32 (Native SegWit): Starting with
bc1q, entirely lowercase, possessing higher error-correction capabilities, smaller transaction size, and better fee efficiency. - Taproot (P2TR): Starting with
bc1p, introducing Schnorr signatures and the MAST structure, further enhancing the privacy and scalability of complex transactions.
Transaction Signing and Network-Wide Verification Mechanism
The mathematical relationship among the private key, public key, and address plays a crucial role when initiating transactions. When a Bitcoin holder initiates a transfer, its operational mechanism is as follows:
- Generating Transaction Summary and Signature: The asset owner constructs the transaction data and uses their own private key to digitally sign the transaction summary, generating the signature data (Witness).
- Broadcasting the Transaction: The transaction data, the corresponding public key, and the digital signature are broadcast together into the Bitcoin network.
- Node Verification: After receiving the transaction, network-wide nodes use the attached public key to perform mathematical calculations on the signature. The verification logic confirms that the signature was indeed generated by the private key matching the public key, and that the transaction content has not been tampered with.
- Address Validation: Nodes check whether the public key hash matches the address in the spent UTXO. Once validation passes, the transaction is written to the ledger, and asset control is officially transferred.
Throughout the entire transaction verification chain, the private key always remains local to the owner and is never publicly exposed on the network.
Modern Wallet Management: Seed Phrases and Hierarchical Deterministic (HD) Algorithms
In early Bitcoin wallets, every new address required independently generating and backing up a pair of private and public keys. Modern wallets generally adopt the BIP-39 and BIP-32/BIP-44 standards, solving the challenge of multi-address management.
The 12 or 24 English words users encounter when creating a modern wallet are called the seed phrase. The seed phrase generates a random seed through specific one-way algorithms. Hierarchical Deterministic (HD) Wallets utilize this seed as a root node, capable of infinitely deriving child private keys, child public keys, and corresponding wallet addresses in a tree structure. Users only need to properly back up a single set of seed phrases to recover all assets and historical addresses under the entire wallet tree structure.







