Technical background of version 1 Bitcoin addresses (2024)

This article may be too technical for some users. The more basic article on Bitcoin Addresses may be more appropriate.

A Bitcoin address is a 160-bit hash of the public portion of a public/private ECDSA keypair. Using public-key cryptography, you can "sign" data with your private key and anyone who knows your public key can verify that the signature is valid.

A new keypair is generated for each receiving address (with newer HD wallets, this is done deterministically).The public key and their associated private keys (or the seed needed to generate them) are stored in the wallet data file.This is the only file users should need to backup.A "send" transaction to a specific Bitcoin address requires that the corresponding wallet knows the private key implementing it.This has the implication that if you create an address and receive coins to that address, then restore the wallet from an earlier backup, before the address was generated, then the coins received with that address are lost; this is not an issue for HD wallets where all addresses are generated from a single seed.Addresses are added to an address key pool prior to being used for receiving coins. If you lose your wallet entirely, all of your coins are lost and can never be recovered.

Bitcoin allows you to create as many addresses as you want, and use a new one for every transaction.There is no "master address": the "Your Bitcoin address" area in some wallet UIs has no special importance.It's only there for your convenience, and it should change automatically when used.

Bitcoin addresses contain a built-in check code, so it's generally not possible to send Bitcoins to a mistyped address. However, if the address is well-formed but no one owns it (or the owner lost their wallet.dat), any coins sent to that address will be lost forever.

Hash values and the checksum data are converted to an alpha-numeric representation using a custom scheme: the Base58Check encoding scheme. Under Base58Check, addresses can contain all alphanumeric characters except 0, O, I, and l. Mainnet P2PKH addresses start with 1, while P2SH addresses start with 3 (Bech32 addresses start with bc1 and do not use Base58Check encoding). Testnet addresses usually start with m or n. Mainnet addresses can be 25-34 characters in length, and testnet addresses can be 26-34 characters in length. Most addresses are 33 or 34 characters long.

Collisions (lack thereof)

Since Bitcoin addresses are basically random numbers, it is possible, although extremely unlikely, for two people to independently generate the same address. This is called a collision. If this happens, then both the original owner of the address and the colliding owner could spend money sent to that address. It would not be possible for the colliding person to spend the original owner's entire wallet (or vice versa).

But because the space of possible addresses is so astronomically large it is more likely that the Earth is destroyed in the next 5 seconds, than that a collision occur in the next millenium.

How to create Bitcoin Address

The correct way to create a Bitcoin address is to use well tested, open source, peer reviewed wallet software. Manually handling keys has resulted in funds loss over and over again. Unlike other centralized systems losses in Bitcoin are usually unrecoverable.

Here is a brief overview of how address generation works, for informational purposes:

0 - Having a private ECDSA key

 18e14a7b6a307f426a94f8114701e7c8e774e7f9a47e2c2035db29a206321725

1 - Take the corresponding public key generated with it (33 bytes, 1 byte 0x02 (y-coord is even), and 32 bytes corresponding to X coordinate)

 0250863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352

2 - Perform SHA-256 hashing on the public key

 0b7c28c9b7290c98d7438e70b3d3f7c848fbd7d1dc194ff83f4f7cc9b1378e98

3 - Perform RIPEMD-160 hashing on the result of SHA-256

 f54a5851e9372b87810a8e60cdd2e7cfd80b6e31

4 - Add version byte in front of RIPEMD-160 hash (0x00 for Main Network)

 00f54a5851e9372b87810a8e60cdd2e7cfd80b6e31

(note that below steps are the Base58Check encoding, which has multiple library options available implementing it)
5 - Perform SHA-256 hash on the extended RIPEMD-160 result

 ad3c854da227c7e99c4abfad4ea41d71311160df2e415e713318c70d67c6b41c

6 - Perform SHA-256 hash on the result of the previous SHA-256 hash

 c7f18fe8fcbed6396741e58ad259b5cb16b7fd7f041904147ba1dcffabf747fd

7 - Take the first 4 bytes of the second SHA-256 hash. This is the address checksum

 c7f18fe8

8 - Add the 4 checksum bytes from stage 7 at the end of extended RIPEMD-160 hash from stage 4. This is the 25-byte binary Bitcoin Address.

 00f54a5851e9372b87810a8e60cdd2e7cfd80b6e31c7f18fe8

9 - Convert the result from a byte string into a base58 string using Base58Check encoding. This is the most commonly used Bitcoin Address format

 1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs

See Also

Bitcoin Core documentation

User documentation

Alert systemBitcoin Core compatible devicesData directoryFallback NodesHow to import private keys in Bitcoin Core 0.7+Installing Bitcoin CoreRunning BitcoinTransaction feesVocabulary

Developer documentation

Accounts explainedAPI calls listAPI reference (JSON-RPC)Block chain downloadDump formatgetblocktemplateList of address prefixesProtocol documentationScriptTechnical background of version 1 Bitcoin addressesTestnetTransaction MalleabilityWallet import format

History & theory

Common Vulnerabilities and ExposuresDOS/STONED incidentEconomic majorityFull nodeOriginal Bitcoin clientValue overflow incident

Technical background of version 1 Bitcoin addresses (2024)
Top Articles
How to Save Money for a House
A Frugal Mom's 25 Favorite Easy Ways to Savedo Money
Robot or human?
Blackstone Launchpad Ucf
Top Financial Advisors in the U.S.
Dr Klabzuba Okc
Betonnen afdekplaten (schoorsteenplaten) ter voorkoming van lekkage schoorsteen. - HeBlad
Craigslist Edmond Oklahoma
State HOF Adds 25 More Players
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Bx11
Khiara Keating: Manchester City and England goalkeeper convinced WSL silverware is on the horizon
Nearest Walgreens Or Cvs Near Me
Promiseb Discontinued
Self-Service ATMs: Accessibility, Limits, & Features
Lisas Stamp Studio
Yisd Home Access Center
Vernon Dursley To Harry Potter Nyt Crossword
Target Minute Clinic Hours
Mals Crazy Crab
Amelia Chase Bank Murder
Makemv Splunk
Bay Area Craigslist Cars For Sale By Owner
Blackboard Login Pjc
Lovindabooty
Feathers
The Procurement Acronyms And Abbreviations That You Need To Know Short Forms Used In Procurement
Meggen Nut
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Ryujinx Firmware 15
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Myra's Floral Princeton Wv
Elanco Rebates.com 2022
47 Orchid Varieties: Different Types of Orchids (With Pictures)
Japanese Pokémon Cards vs English Pokémon Cards
The Pretty Kitty Tanglewood
Snohomish Hairmasters
My.lifeway.come/Redeem
Dollar Tree's 1,000 store closure tells the perils of poor acquisitions
Pokemon Reborn Locations
Craigslist Free Manhattan
Reese Witherspoon Wiki
Martha's Vineyard – Travel guide at Wikivoyage
Centimeters to Feet conversion: cm to ft calculator
Oakley Rae (Social Media Star) – Bio, Net Worth, Career, Age, Height, And More
Booknet.com Contract Marriage 2
Movie Hax
Dayton Overdrive
Used Auto Parts in Houston 77013 | LKQ Pick Your Part
Hcs Smartfind
Gameplay Clarkston
Arre St Wv Srj
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 6219

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.