# Networking

> Pearl's peer-to-peer network at a glance: pearld nodes, DNS seeds, port 44108, mandatory BIP-324 encryption, headers with certificates, light clients.

Source: https://pearlcodex.com/technical/networking/ · Last updated: 2026-10-20 · Checked against Pearl's source code at v1.5.5

Pearl has no central server. Its ledger lives on a crowd of computers, [nodes](https://pearlcodex.com/glossary/#node), each connected to a handful of others, its [peers](https://pearlcodex.com/glossary/#peer). A new block or transaction spreads like news in a village: each node checks it, then tells its neighbors.

This group is about that conversation: how a node finds peers, what it says to them, how the conversation is encrypted, and how lighter software follows along. Most of it is inherited from btcd, the Bitcoin node Pearl’s code grew from. The parts that changed all trace back to two facts: Pearl’s blocks carry a \~60 KB certificate, and Pearl encrypts everything.

## Try it

The network’s live vital signs: tip height, difficulty, block pace and mining rate.

_Interactive: Pearl, right now. Try it on the page: <https://pearlcodex.com/technical/networking/>_

## What happens when a node joins?

1. **Find peers**

   Ask the three DNS seeds (`reef.`, `tide.` and `stream.seeder.pearlnetwork.net`) for addresses of healthy nodes. See [peers and seeds](https://pearlcodex.com/technical/networking/peers-and-seeds/).

2. **Connect**

   Open a TCP connection to port 44108. See [magic bytes and ports](https://pearlcodex.com/technical/networking/magic-bytes-and-ports/).

3. **Encrypt**

   Run the BIP-324 handshake. From here on, every byte is encrypted. See [encrypted transport](https://pearlcodex.com/technical/networking/encrypted-transport/).

4. **Say hello**

   Swap `version` and `verack` messages: protocol version 2, services, user agent. See [messages](https://pearlcodex.com/technical/networking/messages/).

5. **Catch up**

   Download headers with their certificates, 100 at a time, verifying every certificate, then the blocks themselves.

6. **Stay in sync**

   Hear about new blocks and transactions, check them, and pass them on. See [nodes](https://pearlcodex.com/technical/networking/nodes/).

## The network at a glance

- **P2P port:** 44108 RPC 44107 · wallet 44207
- **Magic:** 0x50524C4D "PRLM" never sent in the clear
- **Transport:** BIP-324 only no unencrypted fallback
- **Protocol version:** 2 minimum accepted: 2
- **Headers per message:** 100 each with its certificate
- **User agent:** /pearlwire:0.5.0/pearld:1.5.5/ pearld 1.5.5

## What’s different from Bitcoin’s network?

| Topic                    | Bitcoin                                                    | Pearl                                             | Explained in                                                                    |
| ------------------------ | ---------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------- |
| Encryption               | BIP-324 when both sides support it, otherwise plaintext v1 | BIP-324 always; no v1 at all                      | [Read more](https://pearlcodex.com/technical/networking/encrypted-transport/)   |
| Magic bytes on the wire  | f9 be b4 d9 starts every v1 message                        | Never in the clear; mixed into the key derivation | [Read more](https://pearlcodex.com/technical/networking/magic-bytes-and-ports/) |
| Ports                    | 8333 (P2P), 8332 (RPC)                                     | 44108 (P2P), 44107 (RPC)                          | [Read more](https://pearlcodex.com/technical/networking/magic-bytes-and-ports/) |
| Headers message          | Up to 2,000 × 81 bytes                                     | Up to 100 × (certificate + 108 bytes)             | [Read more](https://pearlcodex.com/technical/networking/messages/)              |
| Header sync              | Check each header’s hash against its target                | Verify each header’s zero-knowledge certificate   | [Read more](https://pearlcodex.com/technical/networking/messages/)              |
| Compact blocks (BIP-152) | Yes                                                        | No                                                | [Read more](https://pearlcodex.com/technical/networking/messages/)              |
| Light clients            | 80 bytes and one hash per header                           | \~60 KB and one proof check per header            | [Read more](https://pearlcodex.com/technical/networking/light-clients/)         |

> **Pearl vs Bitcoin**
>
> Message by message, Pearl speaks btcd’s protocol: the same `version`, `inv`, `getdata`, `block` and `tx` messages, the same compact block filters for light clients. What changed is the packaging. Every connection is encrypted with no fallback, a block’s certificate rides in front of its header in every message that carries one, and headers come 100 at a time instead of 2,000. And, like btcd, Pearl has no compact blocks.

**Make a guess:** A brand-new node syncs Pearl from scratch. Roughly how much certificate data does it download just for the headers up to block 130,827?

**Answer:** About 7.8 GB.

Each header arrives with its certificate: 108 + 59,768 = 59,876 bytes today. There were 130,827 blocks by 20 October 2026: 130,827 × 59,876 bytes ≈ 7.8 GB, before a single transaction. (Rough arithmetic: early certificates were a few bytes smaller.) The node verifies every one of those proofs as it goes.

## In this group

1. [Nodes](https://pearlcodex.com/technical/networking/nodes/): The computers that check every rule for themselves
2. [Peers and seeds](https://pearlcodex.com/technical/networking/peers-and-seeds/): How a brand-new node finds its first friends
3. [Magic bytes and ports](https://pearlcodex.com/technical/networking/magic-bytes-and-ports/): PRLM: a network name that never crosses the wire in the clear
4. [Messages](https://pearlcodex.com/technical/networking/messages/): What nodes say to each other, and why headers come 100 at a time
5. [Encrypted transport](https://pearlcodex.com/technical/networking/encrypted-transport/): Every connection encrypted, with no way to switch it off
6. [Light clients](https://pearlcodex.com/technical/networking/light-clients/): Checking the mining work without keeping the blocks

## In short

- Pearl is a peer-to-peer network of nodes, mostly running pearld. Each node connects to a few peers and passes on blocks and transactions it has checked.
- A new node finds its first peers through three DNS seeds, then learns more addresses from its peers. Mainnet nodes listen on port 44108.
- Every connection is encrypted with BIP-324 and there is no unencrypted fallback, so Pearl’s magic bytes, PRLM, never appear on the wire.
- Headers travel with their certificates, at most 100 per message, and a syncing node verifies every certificate.
- Light clients also download and verify every header’s certificate, but keep only the 108-byte headers.

## Read the code

- [Mainnet port 44108 and DNS seeds](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L341-L349) `node/chaincfg/params.go:341-349`
- [Network magic values](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/wire/protocol.go#L133-L152) `node/wire/protocol.go:133-152`
- [Every connection runs the BIP-324 handshake](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/peer/peer.go#L2231-L2296) `node/peer/peer.go:2231-2296`
- [At most 100 headers per message](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/wire/msgheaders.go#L12-L16) `node/wire/msgheaders.go:12-16`
- [Default service flags](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/server.go#L47-L50) `node/server.go:47-50`

## Sources

### Pearl source

- [Pearl source code at v1.5.5](https://github.com/pearl-research-labs/pearl/tree/v1.5.5)

### Bitcoin standards

- [BIP-324: Version 2 P2P Encrypted Transport Protocol](https://github.com/bitcoin/bips/blob/master/bip-0324.mediawiki)

### Chain data

- [Pearl Blockbook (node user agent)](https://blockbook.pearlresearch.ai/api/v2/)

### Other

- [Bitcoin Developer Guide: P2P network](https://developer.bitcoin.org/devguide/p2p_network.html)
