-
Bitcoin
$104,725.9772
-0.53% -
Ethereum
$2,514.7403
-1.26% -
Tether USDt
$1.0005
0.00% -
XRP
$2.1364
-0.42% -
BNB
$644.3840
-1.43% -
Solana
$144.4839
-1.40% -
USDC
$0.9999
0.01% -
Dogecoin
$0.1771
-0.58% -
TRON
$0.2695
0.12% -
Cardano
$0.6237
-2.14% -
Hyperliquid
$40.1548
-2.81% -
Sui
$2.8792
-4.83% -
Chainlink
$12.9941
-2.37% -
Bitcoin Cash
$426.5277
-0.96% -
UNUS SED LEO
$9.0445
-0.08% -
Avalanche
$18.9383
-1.44% -
Stellar
$0.2559
-1.64% -
Toncoin
$2.9326
-2.25% -
Shiba Inu
$0.0...01201
0.41% -
Hedera
$0.1535
-2.13% -
Litecoin
$84.9827
0.22% -
Polkadot
$3.7582
-1.69% -
Ethena USDe
$1.0004
0.00% -
Monero
$313.0333
0.32% -
Dai
$1.0000
0.01% -
Bitget Token
$4.5307
0.30% -
Pepe
$0.0...01095
0.41% -
Uniswap
$7.1944
-3.37% -
Pi
$0.6071
6.63% -
Aave
$271.2732
-3.54%
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.
- FTX Sues Token Issuers NFT Stars Limited and KUROSEMI INC. (operating as Delysium) for Failing to Deliver Contractually Obligated Tokens
- 2025-06-15 00:50:12
- Ripple reportedly made a $4–$5 billion takeover offer for Circle Internet Financial
- 2025-06-15 00:50:12
- Bitcoin (BTC) price forecast today: Bulls eye breakout above $96K as RSI overheats, KC bands widen
- 2025-06-15 00:45:12
- Elderly US Resident Falls Victim to $330M Bitcoin Scam, Ranking as Fifth-Largest Crypto Hack in History
- 2025-06-15 00:45:12
- Ripple (XRP) 2017 Bull Run Echoes in Mutuum Finance (MUTM) as Pre-Sale Phase 4 Draws Crowds
- 2025-06-15 00:40:12
- Forget the Memes: This $0.0003 AI Token Might Be 2025's Best Crypto Investment
- 2025-06-15 00:40:12
Related knowledge

How do I deposit Bitcoin into my Trezor hardware wallet?
Jun 14,2025 at 12:29pm
What is a Trezor Hardware Wallet?A Trezor hardware wallet is a secure device designed to store cryptocurrencies offline, protecting them from online threats. Unlike software wallets, which are vulnerable to hacking and malware, Trezor stores private keys on the physical device itself. This ensures that transactions can only be approved by physically int...

How is the Gas fee of a wallet address calculated?
Jun 14,2025 at 07:57pm
Understanding the Basics of Gas Fees in Blockchain TransactionsIn the cryptocurrency ecosystem, particularly within Ethereum-based networks, a Gas fee is an essential component of executing transactions or smart contract operations. The Gas fee serves as compensation for miners or validators who process and confirm transactions on the blockchain. It is ...

How to merge the balances of multiple wallet addresses?
Jun 13,2025 at 06:21pm
Understanding the Concept of Merging Wallet BalancesMerging the balances of multiple wallet addresses involves consolidating funds from different cryptocurrency wallets into a single address or account. This process is commonly undertaken by users who manage several wallets for security, diversification, or organizational purposes. Merging balances can ...

How to backup and restore wallet addresses?
Jun 14,2025 at 03:21pm
Understanding Wallet Addresses in CryptocurrencyIn the world of cryptocurrency, a wallet address is a unique identifier that allows users to send and receive digital assets. It functions similarly to an email address or bank account number. Each wallet address is associated with a private key, which grants access to the funds stored at that address. Los...

What is the UTXO model of wallet addresses?
Jun 14,2025 at 03:01am
Understanding the UTXO Model in CryptocurrencyThe UTXO (Unspent Transaction Output) model is a fundamental concept in blockchain technology, particularly in cryptocurrencies like Bitcoin. Unlike account-based models used by some other blockchains, such as Ethereum, the UTXO model functions more like physical cash transactions. Each transaction consumes ...

What are the offline generation methods for wallet addresses?
Jun 14,2025 at 10:56pm
Understanding Offline Wallet Address GenerationGenerating wallet addresses offline is a critical security measure for cryptocurrency users. By creating a wallet address without an internet connection, the risk of exposing private keys or other sensitive information to potential attackers is significantly reduced. Offline generation methods are often ref...

How do I deposit Bitcoin into my Trezor hardware wallet?
Jun 14,2025 at 12:29pm
What is a Trezor Hardware Wallet?A Trezor hardware wallet is a secure device designed to store cryptocurrencies offline, protecting them from online threats. Unlike software wallets, which are vulnerable to hacking and malware, Trezor stores private keys on the physical device itself. This ensures that transactions can only be approved by physically int...

How is the Gas fee of a wallet address calculated?
Jun 14,2025 at 07:57pm
Understanding the Basics of Gas Fees in Blockchain TransactionsIn the cryptocurrency ecosystem, particularly within Ethereum-based networks, a Gas fee is an essential component of executing transactions or smart contract operations. The Gas fee serves as compensation for miners or validators who process and confirm transactions on the blockchain. It is ...

How to merge the balances of multiple wallet addresses?
Jun 13,2025 at 06:21pm
Understanding the Concept of Merging Wallet BalancesMerging the balances of multiple wallet addresses involves consolidating funds from different cryptocurrency wallets into a single address or account. This process is commonly undertaken by users who manage several wallets for security, diversification, or organizational purposes. Merging balances can ...

How to backup and restore wallet addresses?
Jun 14,2025 at 03:21pm
Understanding Wallet Addresses in CryptocurrencyIn the world of cryptocurrency, a wallet address is a unique identifier that allows users to send and receive digital assets. It functions similarly to an email address or bank account number. Each wallet address is associated with a private key, which grants access to the funds stored at that address. Los...

What is the UTXO model of wallet addresses?
Jun 14,2025 at 03:01am
Understanding the UTXO Model in CryptocurrencyThe UTXO (Unspent Transaction Output) model is a fundamental concept in blockchain technology, particularly in cryptocurrencies like Bitcoin. Unlike account-based models used by some other blockchains, such as Ethereum, the UTXO model functions more like physical cash transactions. Each transaction consumes ...

What are the offline generation methods for wallet addresses?
Jun 14,2025 at 10:56pm
Understanding Offline Wallet Address GenerationGenerating wallet addresses offline is a critical security measure for cryptocurrency users. By creating a wallet address without an internet connection, the risk of exposing private keys or other sensitive information to potential attackers is significantly reduced. Offline generation methods are often ref...
See all articles
