Understanding Bitcoin Address Prefixes: A Closer Look at Ethereum’s Multi-Sig Escrow Addresses
For those new to cryptocurrency, it can be confusing when dealing with Bitcoin and Ethereum addresses. One of the most commonly asked questions is: what prefixes do these addresses follow? The answer may seem straightforward, but the reality is more complex than you might think.
In this article, we’ll delve into the world of Bitcoin address prefixes and explain why they’re not always as simple as “1” at first glance.
What are prefix-based addresses?
Prefix-based addresses are a way to represent an Ethereum address using a shorter string of characters. These prefixes are used in conjunction with a longer hexadecimal code, known as the
address hash, which makes up the majority of the address.
The address hash is composed of 66 digits (64 for the leading “1” and 2 for the suffix “.”) that are divided into eight groups of seven, separated by dashes. Each group corresponds to a specific number from 0 to 65, where:
- The first six numbers represent the check digit
- The seventh number is always
The prefixes
There are several prefix-based address formats in use on Ethereum:
Basic Address Format (with leading “1”)
This format is the most common and is represented as a single hexadecimal string with “1” as its leading character.
0x01...
Basic Prefix (with leading “X”)
The prefix is introduced to indicate that the address should be split into multiple segments. The format changes to:
0xX...
- 2 for the check digit
- X for the remaining six digits
For example, 3M8XGFBKwkf7miBzpkU3x2DoWwAVrD1mhk is an address that follows the basic prefix format.
Multi-Sign (MS) Address Format
This format involves splitting the address into multiple segments using prefixes. The MS format requires three different prefixes:
M
,
S, and
P. Each segment starts with a specific prefix, followed by the check digit.
0xMS...
- M for the first segment
- S for the second segment
- P for the third segment
The MS format is used in situations like CoinJoin, where multiple addresses are combined to create a single wallet address. 3M8XGFBKwkf7miBzpkU3x2DoWwAVrD1mhk follows this format.
Example:
As we saw with the example above, 3M8XGFBKwkf7miBzpkU3x2DoWwAVrD1mhk is an MS address. The prefixes used are:
- M (for the first segment)
- S (for the second segment)
- P (for the third segment)
Understanding prefix-based addresses can seem daunting at first, but it’s essential to grasp this concept when working with Ethereum and other cryptocurrencies.
By recognizing the different prefix formats and their meanings, you’ll become more comfortable navigating the world of Bitcoin and Ethereum addresses.