-
Bitcoin
$118000
0.67% -
Ethereum
$3750
0.71% -
XRP
$3.183
1.61% -
Tether USDt
$1.000
-0.01% -
BNB
$788.1
1.21% -
Solana
$186.0
0.85% -
USDC
$0.9999
-0.02% -
Dogecoin
$0.2373
1.25% -
TRON
$0.3204
1.76% -
Cardano
$0.8266
1.85% -
Hyperliquid
$44.04
1.28% -
Sui
$4.192
5.88% -
Stellar
$0.4399
2.63% -
Chainlink
$18.40
1.19% -
Hedera
$0.2842
9.06% -
Bitcoin Cash
$560.5
2.46% -
Avalanche
$24.99
4.58% -
Litecoin
$114.5
1.25% -
UNUS SED LEO
$8.980
-0.03% -
Shiba Inu
$0.00001406
0.53% -
Toncoin
$3.306
4.27% -
Ethena USDe
$1.001
0.03% -
Polkadot
$4.169
2.37% -
Uniswap
$10.56
1.95% -
Monero
$322.8
1.06% -
Dai
$0.0000
0.00% -
Bitget Token
$4.545
0.12% -
Pepe
$0.00001261
1.29% -
Aave
$296.5
1.27% -
Cronos
$0.1379
5.90%
How is an Ethereum wallet address generated from a public key?
An Ethereum wallet address is derived from the public key through Keccak-256 hashing, using the last 20 bytes to form a unique identifier.
Jun 14, 2025 at 11:14 am

Understanding the Relationship Between Ethereum Wallet Addresses and Public Keys
In the world of Ethereum, a wallet address is not directly the public key itself but rather a derived version of it. The public key is generated from a private key using elliptic curve cryptography (specifically, the secp256k1 curve). Once this public key is created, it undergoes further hashing to generate the final wallet address.
The process begins with a randomly generated private key, which is a 256-bit number. From this, the public key is derived using the secp256k1 algorithm. This public key is typically represented as a 64-byte array (or 128 hexadecimal characters) when compressed. It's crucial to understand that while the public key can be shared openly, it must never be altered or exposed in insecure environments.
Hashing the Public Key Using Keccak-256
Once the public key is generated, the next step involves applying a cryptographic hash function. Ethereum uses the Keccak-256 hashing algorithm for this purpose. Unlike SHA-256 used by Bitcoin, Keccak-256 was chosen due to its flexibility and performance characteristics.
- Take the full public key (including the prefix byte if present).
- Apply the Keccak-256 hash function to produce a 32-byte (256-bit) output.
- The resulting hash will be a unique sequence of bytes representing the input public key.
This hashed value serves as the intermediate stage before extracting the actual Ethereum wallet address.
Extracting the Final Ethereum Address
After obtaining the Keccak-256 hash of the public key, only a portion of it is used to form the final Ethereum wallet address. Specifically, the last 20 bytes (160 bits) of the hash are selected for this purpose.
- Take the 32-byte output from the Keccak-256 hash.
- Discard the first 12 bytes.
- Retain the remaining 20 bytes as the Ethereum address.
These 20 bytes are then encoded into a hexadecimal string without the "0x" prefix initially. When displayed in wallets or explorers, the address is usually prefixed with "0x" to indicate it's an Ethereum-compatible hexadecimal format.
Applying Checksum Encoding for Security
To enhance security and reduce the risk of typos, Ethereum introduced EIP-55, which enables mixed-case checksum encoding for addresses. This feature allows users to detect errors when entering Ethereum addresses manually.
- Convert the Ethereum address (without the "0x") into its lowercase form.
- Compute the Keccak-256 hash of this lowercase string.
- For each character in the original address:
- If the corresponding nibble in the hash is greater than or equal to 8, capitalize the character.
- Otherwise, leave it lowercase.
This results in an Ethereum wallet address that appears like 0xAbCdef1234567890aBcDef1234567890aBcDef12
, where capitalization serves as a visual checksum.
Verifying the Correctness of the Generated Address
Before using any Ethereum wallet address, it's essential to verify its correctness through tools or libraries designed for this purpose. Many developers use libraries such as ethers.js or web3.js to ensure their implementation aligns with Ethereum standards.
- Use a trusted library to regenerate the address from the same public key.
- Compare the output with the manually computed one.
- Ensure that both checksum-encoded and lowercase versions match expected values.
Additionally, test transactions with small amounts should be performed before deploying on mainnet to confirm that the address behaves as intended.
Frequently Asked Questions
Q: Can two different public keys result in the same Ethereum address?
While theoretically possible due to the finite size of the Ethereum address space (2^160), the probability is astronomically low. However, collisions are not considered a practical threat due to the vast number of possible combinations.
Q: Is it safe to share my Ethereum wallet address publicly?
Yes, sharing your Ethereum wallet address is safe since it does not expose your private key or public key directly. However, avoid sharing transaction details or metadata that could compromise privacy.
Q: Why does Ethereum use only 20 bytes from the Keccak-256 hash instead of the full 32 bytes?
Using 20 bytes strikes a balance between security and gas efficiency. A shorter address reduces storage and computation costs on the blockchain while maintaining sufficient entropy to prevent collisions.
Q: What happens if I send ETH to a malformed Ethereum address?
Sending funds to a non-existent or malformed Ethereum address may result in permanent loss of assets. Always validate addresses using checksum encoding or verification tools before initiating transfers.
Disclaimer:info@kdj.com
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.
- Tron ETF, Staking Rewards, and Institutional Capital: A New Era for TRX?
- 2025-07-27 12:50:13
- Bitcoin Reserves, Price, and Hyper Up: Riding the Crypto Wave to $1M?
- 2025-07-27 12:55:12
- Smart Money Moves: Wallet Withdrawal, SPX Accumulation, and What It All Means
- 2025-07-27 12:30:12
- Ethereum, Justin Sun, and Market Speculation: A Crypto Cocktail
- 2025-07-27 12:30:12
- Meme Coins in July 2025: Bitcoin Takes a Backseat?
- 2025-07-27 10:30:12
- HIFI Price Eyes Breakout: Downtrend Line in the Crosshairs?
- 2025-07-27 10:30:12
Related knowledge

How to bridge assets on Coinbase Wallet
Jul 27,2025 at 01:14am
What Is Asset Bridging in the Context of Coinbase Wallet?Bridging assets refers to the process of transferring tokens from one blockchain network to a...

Can I use Coinbase Wallet without a Coinbase account?
Jul 18,2025 at 04:35am
What is Coinbase Wallet?Coinbase Wallet is a self-custodial wallet that allows users to store, send, and receive various cryptocurrencies directly on ...

How to speed up a transaction on Coinbase Wallet
Jul 27,2025 at 07:14am
Understanding Transaction Speed on Coinbase WalletWhen using Coinbase Wallet, users may occasionally encounter delays in transaction confirmations. Th...

Coinbase Wallet "uh oh something went wrong"
Jul 20,2025 at 10:00am
Understanding the Coinbase Wallet Error: 'Uh Oh, Something Went Wrong'If you're a Coinbase Wallet user, encountering the error message 'Uh Oh, Somethi...

How to add Optimism network to Coinbase Wallet
Jul 20,2025 at 05:21am
What is the Optimism Network?The Optimism network is a Layer 2 scaling solution built on top of the Ethereum blockchain. It aims to enhance transactio...

How to add Arbitrum to Coinbase Wallet
Jul 18,2025 at 03:00pm
Understanding Arbitrum and Its Integration with Coinbase WalletArbitrum is a layer-2 scaling solution developed by Offchain Labs to enhance the speed ...

How to bridge assets on Coinbase Wallet
Jul 27,2025 at 01:14am
What Is Asset Bridging in the Context of Coinbase Wallet?Bridging assets refers to the process of transferring tokens from one blockchain network to a...

Can I use Coinbase Wallet without a Coinbase account?
Jul 18,2025 at 04:35am
What is Coinbase Wallet?Coinbase Wallet is a self-custodial wallet that allows users to store, send, and receive various cryptocurrencies directly on ...

How to speed up a transaction on Coinbase Wallet
Jul 27,2025 at 07:14am
Understanding Transaction Speed on Coinbase WalletWhen using Coinbase Wallet, users may occasionally encounter delays in transaction confirmations. Th...

Coinbase Wallet "uh oh something went wrong"
Jul 20,2025 at 10:00am
Understanding the Coinbase Wallet Error: 'Uh Oh, Something Went Wrong'If you're a Coinbase Wallet user, encountering the error message 'Uh Oh, Somethi...

How to add Optimism network to Coinbase Wallet
Jul 20,2025 at 05:21am
What is the Optimism Network?The Optimism network is a Layer 2 scaling solution built on top of the Ethereum blockchain. It aims to enhance transactio...

How to add Arbitrum to Coinbase Wallet
Jul 18,2025 at 03:00pm
Understanding Arbitrum and Its Integration with Coinbase WalletArbitrum is a layer-2 scaling solution developed by Offchain Labs to enhance the speed ...
See all articles
