# The network

> Pearl runs on a crowd of independent computers called nodes. Each one checks every rule for itself, which is what makes cheating so hard.

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

When you send PRL, there is no company to send it to.

Your payment goes to the Pearl network instead: a crowd of computers, all running the same rules, all talking to each other. This page is about that crowd, and why it doesn’t need a boss.

## What is the Pearl network?

Each computer in the network is a [node](https://pearlcodex.com/glossary/#node). Pearl’s reference node software is called [pearld](https://pearlcodex.com/glossary/#pearld).

A node connects to a handful of other nodes, its [peers](https://pearlcodex.com/glossary/#peer). News travels like gossip in a village: you tell your neighbors, they tell theirs, and soon everyone has heard.

There is no center. If some nodes go offline, the rest carry on, and the ones that come back catch up by asking their peers what they missed.

## What does a node do all day?

A node’s job is a loop with four steps.

1. **Receive**

   It hears about new transactions and new blocks from its peers.

2. **Check**

   It tests each one against every rule, using only its own software and its own copy of the ledger.

3. **Keep**

   Valid blocks go into its copy of the ledger. Valid transactions wait in its waiting room until a block includes them.

4. **Pass on**

   It forwards whatever passed the checks to its peers, and drops whatever failed.

The rules are things like these:

- The coins being spent exist, and haven’t been spent already.
- Every signature is valid for the coins it unlocks.
- Nobody pays themselves more new coins than the schedule allows.
- Every block carries a valid certificate proving the mining work.
- Block times are sensible: at least 1 second after the previous block, and no more than 5 minutes in the future.

## Why doesn’t anyone have to trust anyone?

Here is the key idea: nodes don’t vote, and they don’t take each other’s word for anything.

A [full node](https://pearlcodex.com/glossary/#full-node) downloads the whole history of the ledger and checks every block in it, all the way back to the first. After that, it checks each new block the same way.

So the [consensus rules](https://pearlcodex.com/glossary/#consensus) are enforced by everyone at once. A block that breaks one doesn’t need to be voted down. It simply never makes it into anyone’s copy, as if it had never been sent.

**Make a guess:** A wealthy company runs 1,000 nodes, and all of them accept a block that pays the company a million PRL out of thin air. Your single node receives that block. What does it do?

**Answer:** It rejects the block.

Your node doesn’t care how many other nodes accepted it. It checks the reward against the schedule in its own software, sees the rule is broken, and drops the block. Every honest node does the same, so the company’s block stays stuck inside its own computers.

This is what people mean by [decentralization](https://pearlcodex.com/glossary/#decentralization). It isn’t just that many computers exist. It’s that each one can check everything without help.

## How does a new node find the others?

A brand-new node knows nobody. To get started, it asks a few [DNS seeds](https://pearlcodex.com/glossary/#dns-seed), name servers whose job is to list active nodes. Pearl’s mainnet has 3 of them.

Once the new node has made its first connections, its peers tell it about other peers. From then on it can find its way around without the seeds.

## Can anyone listen in?

Not easily. Every connection between two Pearl nodes is encrypted, using a standard called [BIP-324](https://pearlcodex.com/glossary/#bip-324), and there is no unencrypted fallback.

Someone watching the wire can still see which computers are talking to each other. But the messages themselves look like random bytes.

## What about phones and small devices?

Checking everything needs the full history of the ledger, which is a lot to ask of a phone. Lighter software, called a [light client](https://pearlcodex.com/glossary/#light-client), downloads only the block headers, the short summary at the top of each block, and skips the transactions it doesn’t need.

On Pearl, each header comes with its mining certificate, about 60 KB, and the light client verifies every one. That’s much heavier than a Bitcoin light client. The upside is that even a light client checks the mining work for itself instead of trusting whoever sent it the headers.

| Topic                                | Bitcoin                               | Pearl                                          |
| ------------------------------------ | ------------------------------------- | ---------------------------------------------- |
| Connections between nodes            | Plain or encrypted (BIP-324 optional) | Always encrypted (BIP-324 only)                |
| What a light client checks per block | An 80-byte header                     | A 108-byte header plus its \~60 KB certificate |
| Default network port                 | 8333                                  | 44108                                          |
| New block about every                | 10 minutes                            | 194 seconds                                    |

> **Pearl vs Bitcoin**
>
> Bitcoin’s network is where Pearl’s comes from, and most of it works the same way. The visible differences are the encryption, which Pearl makes mandatory, and the light client, which has to verify a zero-knowledge proof for every header. Even the four “magic bytes” that label the network (“PRLM” on Pearl) never appear in plain view on the wire, because they only exist inside the encryption setup and in the files a node writes to disk.

## Why does all this make cheating hard?

To cheat, you would need your rule-breaking block in other people’s copies of the ledger. But every node checks for itself, so a rule-breaking block goes nowhere.

There is one thing rules alone can’t settle, though. Suppose you sign two different payments that spend the same coins, and send them to different parts of the network at the same moment. Both look valid on their own. Nodes need a way to agree which one came first.

Agreeing on the order of events is the job of blocks and mining. Before we get there, the next page looks at what a transaction actually contains.

## In short

- The Pearl network is made of nodes, computers that each keep a copy of the ledger and talk to a few peers.
- Every node checks every transaction and block against the rules itself. Nobody votes and nobody is trusted.
- A rule-breaking block is simply ignored, no matter how many computers its maker controls.
- Connections between Pearl nodes are always encrypted.
- Light clients download headers instead of whole blocks, but on Pearl they still verify every block’s mining certificate.

## Read the code

- [Mainnet port and DNS seeds](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L344-L349) `node/chaincfg/params.go:344-349`
- [The encrypted (BIP-324) handshake every connection starts with](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/peer/peer.go#L2231-L2296) `node/peer/peer.go:2231-2296`
- [The light client checking each header and its certificate](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/spv/blockmanager.go#L2895-L2935) `spv/blockmanager.go:2895-2935`

## 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)
- [BIP-157: Client Side Block Filtering](https://github.com/bitcoin/bips/blob/master/bip-0157.mediawiki)
