Monday, June 22, 2026
No Result
View All Result
Crypeto News
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
Crypeto News
No Result
View All Result

Understanding & Generating Ethereum Addresses | by Isaac Coffie | The Capital | Dec, 2022

by crypetonews
January 3, 2023
in Altcoin
Reading Time: 7 mins read
0 0
A A
0
Home Altcoin
Share on FacebookShare on Twitter


Anyone who has traded or invested in cryptocurrencies may know about wallet addresses. When you set up a Metamask or a Trust wallet account, an address is automatically generated. More so, users who keep their crypto tokens on centralised exchanges such as Binance, Coinbase, and KuCoin also get wallet addresses.

This article aims to uncover the behind-the-scenes of generating a wallet address.

From a layman’s perspective, an address is synonymous with your bank account or an email address. A crypto wallet address gives you a unique digital identity on the internet, specifically, a blockchain network. Your address enables you to sign transactions on the blockchain, receive funds, and send cryptocurrencies to other users.

Ethereum is the second largest blockchain platform by market capitalisation, closely behind Bitcoin, the first ever built blockchain-based cryptocurrency. Ethereum is equally one of the highest used platforms with many use cases and projects ranging from decentralised finance, metaverse, NFTs, etc. That said, it makes sense to study how Ethereum addresses are generated by DApps such as Metamask.

By design (from the yellow paper), Ethereum addresses are hexadecimal characters of 20 bytes or 40 characters long. They are typically prefixed with 0x, making them 42 characters long. An example address is 0x6B96f06B72D5A21d64b9D460534977799c332434. These 42 long characters are generated using public key cryptography, also known as asymmetric cryptography. In an asymmetric cryptographic scheme, two keys (a public and a private key) are needed to provide secure encryption. It turns out that your address is the output of your public key.

To generate an Ethereum address, you need

A 256-bit (or 32-bytes) random private key. A private key can come in several formats: a binary string, a mnemonic, or a secret hexadecimal string.You then pass your 256-bit private key through an Elliptic Curve Digital Signature Algorithm (ECDSA), the same curve used in generating Bitcoin addresses. The ECDSA is a cryptographic algorithm that offers robust and secure encryption for communications.The output of the ECDSA (public key) is then hashed using a hashing function, specifically Keccak-256.Your Ethereum address is the last 20 bytes or 40 characters of the hashed output, prefixed with 0x.

We shall use one of the popular Ethereum crypto libraries. With this utility, we can perform cryptographic operations such as hashing, signing transactions, and generating public keys of different algorithms.

Let’s start by initializing our project folder with node.js and installing the library.

npm install ethereum-cryptography

Part 1: Generating Private Key

We need to generate a random 256-bit or 32-byte (8 bits equals 1 byte) hexadecimal string using a cryptographic random number generator (RNG) function. See the code snippet below.

Private key generation

Running the code (node index.js) gives you the below output — your private key.

Your private key

Part 2: Generating Public Key using ECDSA

In this part, we shall derive a public key for our private key using the secp256k1 curve. See the code below.

Public key generation

The output is a 64-byte integer.

Your public key

Part 3: Hashing the Public Key using Keccak-256

The last technical part is hashing the output of the secp256k1 curve using the famous keccak-256 hashing algorithm. And finally, we take the last 40 characters from the hash (digest)

Keccak-256 of the public key

The output value (0xdf86c04b91b0d2711158d89bf62387f6bba0fb8b) is our Ethereum address.

Final output (Ethereum address)

PS: I have successfully received 0.5 MATIC tokens on this address using the Polygon Test blockchain. See the screenshot below.

Conclusion

If you’ve made it this far, I hope you now understand how wallet providers (such as Metamask) and crypto exchanges (such as Binance) provision new addresses for every crypto user. With these simple steps, anyone can generate their Ethereum addresses as there are 2^ 256 possible addresses to be owned. It is crucial to generate a powerful private key that is impossible to brute-force or hack.



Source link

Tags: AddressesCapitalCoffieDecethereumGeneratingIsaacUnderstanding
Previous Post

Bitfarms Ends 2022 with 50% Increase in BTC Mining

Next Post

Bullish Case Emerges for XRP Price After it Becomes the ‘Crypto-Pick’ for January 2023

Related Posts

ASIC Blocks 14,000 Scam Sites as Crypto Cons Flood Online
Altcoin

ASIC Blocks 14,000 Scam Sites as Crypto Cons Flood Online

August 22, 2025
Ben Waxman to Block Politicians From Crypto Trading
Altcoin

Ben Waxman to Block Politicians From Crypto Trading

August 22, 2025
DOJ Hints No Second Trial for Tornado Cash’s Roman Storm
Altcoin

DOJ Hints No Second Trial for Tornado Cash’s Roman Storm

August 22, 2025
Public Isn’t Ready for “Conscious” AI
Altcoin

Public Isn’t Ready for “Conscious” AI

August 22, 2025
13 Traders Score M From Kanye West’s YZY Token Crash
Altcoin

13 Traders Score $24M From Kanye West’s YZY Token Crash

August 22, 2025
South Park Mocks Trump With Crypto Jabs in New Episode
Altcoin

South Park Mocks Trump With Crypto Jabs in New Episode

August 22, 2025
Next Post
Bullish Case Emerges for XRP Price After it Becomes the ‘Crypto-Pick’ for January 2023

Bullish Case Emerges for XRP Price After it Becomes the ‘Crypto-Pick’ for January 2023

Notes on elliptic curves over finite fields and their pairings : ethereum

Notes on elliptic curves over finite fields and their pairings : ethereum

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RECOMMENDED

No Content Available

  • USD
  • EUR
  • GBP
  • AUD
  • JPY
  • bitcoinBitcoin(BTC)
    $63,918.00-0.73%
  • ethereumEthereum(ETH)
    $1,731.64-0.24%
  • tetherTether(USDT)
    $1.000.00%
  • binancecoinBNB(BNB)
    $589.250.01%
  • usd-coinUSDC(USDC)
    $1.00-0.01%
  • rippleXRP(XRP)
    $1.13-1.48%
  • solanaSolana(SOL)
    $73.560.04%
  • tronTRON(TRX)
    $0.3278690.54%
  • Figure HelocFigure Heloc(FIGR_HELOC)
    $1.030.00%
  • HyperliquidHyperliquid(HYPE)
    $65.73-5.87%
  • Trending
  • Comments
  • Latest
4 Expert Tips to Turn Blank Pages Into Business Blueprints

4 Expert Tips to Turn Blank Pages Into Business Blueprints

October 21, 2024
Top Crypto Portfolio Rebalancing Tools (Automated & Manual)

Top Crypto Portfolio Rebalancing Tools (Automated & Manual)

April 13, 2025
What are Meta Transactions? Exploring ERC-2771

What are Meta Transactions? Exploring ERC-2771

October 25, 2023
How to Set Up NFT Sales Notifications

How to Set Up NFT Sales Notifications

October 19, 2023
Uniswap v4 Teases Major Updates for 2025

Uniswap v4 Teases Major Updates for 2025

January 2, 2025
How to Bridge Avalanche (AVAX) to Fantom (FTM)?

How to Bridge Avalanche (AVAX) to Fantom (FTM)?

November 11, 2022
AI Expert: Truth Protocols Could Become the SSL of the Information Age

AI Expert: Truth Protocols Could Become the SSL of the Information Age

August 24, 2025
Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means

Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means

August 24, 2025
Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse

Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse

August 24, 2025
Ethereum’s Tech Edge Could Outshine Bitcoin — Here’s How

Ethereum’s Tech Edge Could Outshine Bitcoin — Here’s How

August 23, 2025
IRS Loses Top Crypto Enforcer After Only 90 Days on the Job

IRS Loses Top Crypto Enforcer After Only 90 Days on the Job

August 23, 2025
US Court Grants Stay In Coinbase Biometric Data Lawsuit — Details

US Court Grants Stay In Coinbase Biometric Data Lawsuit — Details

August 23, 2025
Crypeto News

Find the latest Bitcoin, Ethereum, blockchain, crypto, Business, Fintech News, interviews, and price analysis at Crypeto News.

CATEGORIES

  • Altcoin
  • Analysis
  • Bitcoin
  • Blockchain
  • Crypto Exchanges
  • Crypto Updates
  • DeFi
  • Ethereum
  • Metaverse
  • Mining
  • NFT
  • Regulations
  • Scam Alert
  • Uncategorized
  • Videos
  • Web3

LATEST UPDATES

  • AI Expert: Truth Protocols Could Become the SSL of the Information Age
  • Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means
  • Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us
  • About Us

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

No Result
View All Result
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In