Dark Market Onion: Understanding .onion Addresses and Technical Structure
.onion addresses are cryptographic identifiers derived from ed25519 public keys, enabling dark web marketplaces to operate without traditional DNS infrastructure.
Published: | Updated: November 23, 2026 | By: Derek Whitman | 10 min read
What .onion Addresses Are and How They Work
A .onion address is a special-use top-level domain suffix designed exclusively for Tor hidden services. Unlike conventional domain names that rely on DNS servers to map human-readable names to IP addresses, .onion addresses functionally correspond to the identity of a given service, combining location and authentication within the cryptographic structure itself[1]. This design means the address is mathematically derived from the service operator's cryptographic key rather than assigned by a registrar, making it fundamentally different from standard web infrastructure.
The Tor network currently uses version 3 onion addresses as the standard format. A version 3 address is 56 characters long and is created using base32 encoding of a 32-byte ed25519 master public key, a checksum, and a version field, followed by the '.onion' suffix[2]. This length and encoding scheme produces addresses that appear as random strings of letters and numbers—for instance, a marketplace address might look like "examplemarket3fykqw7ad6idx4ibqnqd46nfkwibumi4p6gco2qbqzxk2zyd.onion" (conditional example for illustration). The cryptographic binding between the address and the service's private key provides authentication: only the holder of the corresponding private key can operate a service at that specific address.
Older version 2 onion addresses were deprecated since Tor version 0.4.6.1-alpha and used only the first eighty bits of a SHA1 hash of the identity key encoded in base32[3]. These shorter addresses—16 characters before the .onion suffix—offered weaker cryptographic security and are no longer supported by current Tor software. Any marketplace or hidden service still advertising a version 2 address is either outdated or potentially fraudulent, since the Tor network no longer routes connections to these addresses.
Dark web marketplaces and other hidden services use this infrastructure to operate without revealing their physical server location, while the cryptographic structure provides a degree of identity verification that traditional DNS cannot offer. The technical foundation matters because it determines both the privacy properties and the authentication mechanisms users rely on when accessing these services.
Technical Structure of Version 3 Onion Addresses
How does the Tor network construct a 56-character onion address from cryptographic components? A version 3 onion address consists of three distinct elements combined and encoded to produce the final string: PUBKEY (32 bytes ed25519 master public key), CHECKSUM (2 bytes), and VERSION (1 byte with default value '\x03'), all base32 encoded to create the full address[4]. This structure means every character in the address before the '.onion' suffix carries cryptographic meaning rather than arbitrary naming.
The process begins with the service operator generating an ed25519 key pair—a modern elliptic curve cryptography scheme that provides strong security with relatively compact keys. The 32-byte public key from this pair forms the foundation of the address. The VERSION field identifies the address format (value 03 in hexadecimal for version 3), allowing the Tor software to recognise which decoding and verification rules to apply. The CHECKSUM serves as an integrity check, calculated through a specific cryptographic hash function to detect transcription errors or tampering.
The checksum calculation follows a precise specification: it is computed as SHA3_256 of the concatenation of the constant string '.onion checksum', the public key, and the version byte, then truncated to two bytes[5]. This method binds the checksum to both the public key and the version, so changing any component invalidates the address. When a user enters an onion address into Tor Browser, the software decodes the base32 string, extracts these three components, recalculates the checksum, and verifies it matches the embedded value before attempting to connect. If the checksum fails, the address is rejected as malformed.
Base32 encoding transforms the raw binary data into a character set that uses only lowercase letters a–z and digits 2–7, avoiding ambiguous characters like 0/O or 1/l that could cause confusion when addresses are manually transcribed. The 56-character length results from encoding 35 bytes (32 + 2 + 1) in base32, which expands binary data by approximately 60 per cent. This encoding scheme explains why onion addresses appear as seemingly random strings rather than memorable names.
The cryptographic structure provides two practical benefits for users accessing dark web marketplaces. First, the address is deterministically derived from the public key: given the same key, the same address always results, and no two services can share an address without sharing the private key. Second, the binding between address and key means that if you successfully connect to a specific onion address, you have cryptographic assurance you are communicating with the holder of the corresponding private key—though this does not verify the service is legitimate, only that it controls that particular address. This technical foundation is why address verification matters when accessing marketplaces, as discussed in verification methods for dark web market onion links.
Why Version 2 Addresses Were Deprecated
Version 2 onion addresses were deprecated since Tor version 0.4.6.1-alpha and are no longer supported by current Tor software[3]. This deprecation was driven by fundamental cryptographic weaknesses in the older format that could not be patched without replacing the entire address structure. Understanding why this change occurred matters for anyone evaluating dark web marketplace addresses, since any service still advertising a version 2 address is either defunct or potentially fraudulent.
The technical limitation of version 2 addresses lay in their construction: they used only the first eighty bits of a SHA1 hash of the identity key encoded in base32[3]. This produced 16-character addresses before the .onion suffix—shorter and seemingly more convenient than version 3, but built on outdated cryptographic foundations. SHA1 has known collision vulnerabilities, meaning it is theoretically possible to generate two different keys that produce the same hash output. The truncation to only eighty bits further reduced the security margin, making brute-force attacks more feasible than with modern cryptographic standards.
Version 3 addresses address these weaknesses through a complete redesign. Instead of a truncated hash, version 3 uses the full 32-byte ed25519 master public key directly in the address structure, combined with a 2-byte checksum and 1-byte version field, all base32 encoded to produce the 56-character format[2][4]. The ed25519 algorithm provides stronger cryptographic security than the RSA keys used in version 2, with better resistance to both brute-force and algorithmic attacks. The longer address length reflects the full cryptographic material needed for modern security standards rather than a truncated compromise.
For dark web marketplaces, the deprecation created a forced migration period. Established markets had to generate new version 3 addresses and communicate these to their user base, often through forum announcements and signed PGP messages. Some marketplaces successfully transitioned, maintaining continuity through verified announcements on trusted forums. Others disappeared during the transition, either through exit scams timed to the confusion or genuine operational difficulties. The deprecation also invalidated all saved bookmarks and links to version 2 addresses, requiring users to verify new addresses through independent channels rather than relying on old saved links.
The practical implication: any onion address shorter than 56 characters is a version 2 address and will not load in current Tor Browser versions. If a marketplace or service claims to operate at such an address, it is either outdated information or an attempt to exploit users unfamiliar with the technical change. Legitimate services have migrated to version 3 addresses, and address verification methods must account for this format to be effective.
How Onion Address Format Enables Service Identity
Why does the .onion address structure matter for dark web marketplace security? The .onion domain functionally corresponds to the identity of a given service, combining location and authentication rather than using traditional DNS infrastructure[1]. This design means that unlike conventional domains—where the name, the DNS resolution, and the service authentication are separate layers—an onion address cryptographically binds identity to the address itself. The practical consequence: the address is not merely a pointer to a server location but a mathematical representation of the service operator's cryptographic key.
The cryptographic binding works through the address derivation process. A version 3 onion address is created using base32 encoding of a 32-byte ed25519 master public key, a checksum, and a version field[2]. The PUBKEY component—the 32-byte ed25519 master public key—forms the core of the address, with the CHECKSUM and VERSION fields completing the structure[4]. This construction means the address is mathematically derived from the service's public key, making it tied to the operator's private key. Only the holder of the corresponding private key can operate a service at that specific address; without the private key, an attacker cannot generate the same address or intercept connections intended for it.
For dark web marketplaces, this structure provides a degree of authentication that traditional web infrastructure cannot match. When you connect to a specific onion address, the Tor protocol verifies that the service responding holds the private key corresponding to the public key embedded in the address. This verification happens automatically during the connection handshake, before any marketplace content loads. The result: addresses cannot be easily spoofed without the corresponding private key, which would require either stealing the key from the operator or breaking the underlying ed25519 cryptography—both scenarios far beyond the capability of opportunistic attackers.
The limitation lies in what this structure does not prevent. Phishing through visually similar addresses remains possible. An attacker can generate a new key pair and create a legitimate onion address that resembles a known marketplace address—for instance, substituting a lowercase 'l' for a '1', or rearranging characters in the middle of the 56-character string where users are less likely to scrutinise carefully. The cryptographic binding ensures the fake address is authentic for its own key pair, but it does nothing to verify the fake marketplace is the one users intended to visit. This vulnerability is why address verification through multiple independent channels—forum announcements, PGP-signed messages, bookmark comparison—remains essential despite the cryptographic protections built into the address format itself.
The combined location and authentication model also means there is no central authority to appeal to if an address is compromised. In traditional DNS, a domain owner can contact the registrar to reclaim a hijacked domain or prove ownership through administrative processes. With onion addresses, possession of the private key is the sole proof of ownership. If a marketplace operator loses the private key—through server compromise, operational security failure, or exit scam—there is no mechanism to transfer the address to new management or prove the original operator's identity. The address and the service are cryptographically inseparable, which provides strong authentication but also makes key loss catastrophic and irreversible.
Legitimate vs. Phishing Onion Address Characteristics
- Characteristic
- Address length
- Legitimate v3 Address
- 56 characters before .onion
- Phishing/Suspicious Address
- 16 characters (v2, deprecated) or 56 with substitutions
- What This Confirms
- Current cryptographic standard; v2 non-functional since 0.4.6.1-alpha
- Remaining Risk
- Length alone does not verify service legitimacy
- Characteristic
- Character set
- Legitimate v3 Address
- Only lowercase a–z and digits 2–7
- Phishing/Suspicious Address
- May contain visually similar substitutions (l/1, o/0)
- What This Confirms
- Valid base32 encoding; no transcription ambiguity
- Remaining Risk
- Attackers can generate valid addresses resembling targets
- Characteristic
- Checksum validation
- Legitimate v3 Address
- Passes Tor Browser automatic verification
- Phishing/Suspicious Address
- May pass if attacker generated valid key pair
- What This Confirms
- Address structure integrity; not tampered during transcription
- Remaining Risk
- Does not verify the service is the intended marketplace
- Characteristic
- PGP signature presence
- Legitimate v3 Address
- Signed announcement from known key
- Phishing/Suspicious Address
- No signature, unknown key, or mismatched signature
- What This Confirms
- Message authenticity from documented operator key
- Remaining Risk
- Relies on user verifying correct PGP key fingerprint
- Characteristic
- Forum verification status
- Legitimate v3 Address
- Posted by established account with history
- Phishing/Suspicious Address
- New account, no post history, or contradictory posts
- What This Confirms
- Community consensus and historical continuity
- Remaining Risk
- Forums can be compromised; account age is not absolute proof
- Characteristic
- Address consistency
- Legitimate v3 Address
- Matches saved bookmark and multiple independent sources
- Phishing/Suspicious Address
- Differs from bookmark or appears in single source only
- What This Confirms
- Reduces chance of typosquatting or isolated phishing
- Remaining Risk
- All sources could reference outdated or compromised address
Key Takeaways
- Version 3 onion addresses are 56 characters long and derived from a 32-byte ed25519 public key using base32 encoding with a checksum and version field, providing cryptographic authentication that binds the address to the operator's private key[2][4].
- The address structure combines location and identity, meaning successful connection to a specific onion address cryptographically confirms you are communicating with the holder of the corresponding private key, though this does not verify the service is legitimate[1].
- Version 2 addresses (16 characters) were deprecated since Tor 0.4.6.1-alpha due to SHA1 vulnerabilities and will not load in current Tor Browser versions; any marketplace claiming a shorter address is either outdated or fraudulent[3].
- Phishing through visually similar addresses remains possible despite cryptographic protections, as attackers can generate valid onion addresses that resemble known marketplaces by substituting characters within the 56-character string.
- Address verification requires multiple independent sources—PGP-signed announcements, forum posts from established accounts, and bookmark comparison—because the cryptographic structure authenticates the key pair but not the service's claimed identity.
To understand how these technical protections apply when evaluating marketplace claims, examine the verification methods for dark web market onion links and how community consensus intersects with cryptographic authentication.
Footnotes

Explore More Dark Web Guides
Browse our collection of technical guides covering Tor security, marketplace verification, and safe navigation practices.
View All Guides