# OGBP: The Open Messaging Protocol — Like Ham Radio, Without a License<no value>

*— Over. Over. Do you copy? This is LU1XXX on the 40-meter band, repeating the message from the central relay...*

## The Radio Metaphor

If you've ever listened to a ham radio conversation — those folks with giant antennas in their backyard talking about capacitors and propagation — you already understand 80% of OGBP. The rest is firmware and digital signatures.

**OGBP** stands for **Open Guestbook Protocol** (or **Open Group Booking Protocol**, depending on who you ask). It's the protocol that allows messages to travel from one relay to another without anyone in the middle being able to censor, alter, or even fully understand them.

But instead of explaining it with flowcharts and RFC specifications (boring), we'll do it with antennas, QSOs, and repeaters.

## The Parts of a Radio Communication

### 1. The Repeater → The Relay

In ham radio, a repeater is a device that listens on one frequency and retransmits on another. It sits on a mountain, on a tall building, somewhere with good line of sight. Its job isn't to understand the message — it's to **repeat it** so it reaches farther.

The OGBP relay is exactly that. It doesn't ask who you are, doesn't store your messages forever, doesn't read them. It just receives them and **retransmits** them to other relays it knows. A software repeater.

```json
{
  "type": "federated_message",
  "origin_domain": "guestbook.obelix.top",
  "target_domain": "other-guestbook.com",
  "entry": {
    "user": "LU1XXX",
    "message": "CQ CQ CQ from the federated network"
  },
  "signature": "ed25519_signature_verifying_provenance"
}
```

That's a **QSO** (contact) in JSON format. The relay grabs it, signs it if needed, and sends it to its peers.

### 2. The Callsign → The Hostname

Every ham operator has a callsign. It's unique, assigned by the competent authority, and when someone hears it, they know who it's from.

In OGBP, your guestbook's **hostname** is your callsign. Nobody assigns it — you choose your domain. But once you register it with the relay, that hostname becomes your federated identity.

Just like a ham says *"LU1XXX calling, over"*, your guestbook says *"guestbook.obelix.top has a new message, over"*.

### 3. The Frequency Band → The Feature Flag

Hams operate on different bands: 40 meters, 80 meters, 2 meters, UHF. Each band has its characteristics: range, penetration, noise.

OGBP has **capabilities** that work the same way:

- **Registration** (40m band) — Accept new user registrations.
- **Relay** (2m band) — Retransmit messages from others.
- **Storage** (80m band) — Store messages for others when they're offline.
- **Search** (UHF band) — Offer federated search across all guestbooks.

When a guestbook registers with the relay, it states which bands it operates on. The relay notes it and, when someone looks for a guestbook with certain capabilities, responds: *"On this frequency you have these active nodes"*.

### 4. The QSL Card → The Digital Signature

In ham radio, when you make a contact, you sometimes send a **QSL card** — a postcard confirming the QSO. It's proof the communication happened.

In OGBP, the **ED25519 signature** is your digital QSL card. Every federated message carries a signature that verifies:

1. The message wasn't altered in transit.
2. It really comes from the hostname it claims.
3. The relay retransmitting it didn't insert a fake *"over"*.

```rust
// How a signature is verified in OGBP (simplified)
let valid_message = signature.verify(&message_bytes, &hostname_public_key);
// If true, the message is authentic — like receiving a QSL card.
```

### 5. DX → Federation

**DX** is making contact with a ham in another country, another continent, on the other side of the world. It's the holy grail for ham operators.

Federation in OGBP is permanent DX. Your guestbook can receive a message from someone in Japan, retransmitted by a relay in Germany, originating from a guestbook in Brazil. And it all works because the relays talk to each other using the same protocol — like an international network of repeaters that doesn't ask permission from any central authority.

## Anatomy of a Federated Message

Just like a ham QSO has a recognizable structure (CQ, callsign, report, over), an OGBP message has fields that any relay understands:

| Radio Concept | OGBP Field | Description |
|--------------|-----------|-------------|
| Callsign | `origin_domain` | Who originates the message |
| Frequency | `version` | Protocol version in use |
| QTH (location) | `target_domain` | Who it's addressed to (or CQ for broadcast) |
| Message | `entry.message` | The content |
| QSL card | `signature` | Signature proving authenticity |
| Timestamp | `timestamp` | When it was transmitted |

A typical federated message looks like this in serialized form:

```
OGBP/1.0
ORIGIN: guestbook.obelix.top
TARGET: CQ
TIMESTAMP: 2026-08-18T14:30:00Z
SIGNATURE: a1b2c3d4e5f6...

Hello everyone from the federated network. Over.
```

Sound like a QSO? Exactly. It's a QSO, but over HTTP with JSON.

## The Lifecycle of a Message

Let's follow a message from when it's written to when it reaches its destination:

1. **User writes**: `"Good propagation today"` on guestbook.obelix.top
2. **Guestbook signs**: The message is signed with the hostname's private key.
3. **Guestbook sends to relay**: `POST /api/v1/federation/entries` with the signed payload.
4. **Relay verifies**: Checks the signature, timestamp, and spam score.
5. **Relay propagates**: The message enters the gossip mesh and travels to peers.
6. **Destination relay receives**: The peer queues it for the target guestbook.
7. **Target guestbook fetches**: `GET /api/v1/federation/entries?since=...` and receives new messages.

Like a chain of repeaters: the original message leaves clean from the base station and each repeater amplifies and passes it to the next. But here there's no noise — there's TLS, ED25519 signatures, and UUID7 guaranteeing no collisions or duplicates.

## The Politics of the Airwaves

In ham radio there's an unwritten principle: **listen before you transmit**. Don't step on someone else. Share the frequency.

OGBP has the same principle with **rate limiting**. You can't flood the network with messages. The relay limits you, queues you, asks you to wait. It's the *"over, over... listening"* of the digital world.

And just as a ham operator can decide not to repeat a message they consider out of line, a relay can configure **content policies**: domain blocking, spam filters, allowlists. The difference is that in OGBP everything is configurable, everything is opt-in, and no central relay imposes rules on others.

Each relay is its own *radio club* with its own rules. But they all speak the same protocol.

## Why This Matters

Ham radio survived a century because it doesn't depend on any company, government, or platform. It depends on the spectrum, on technology, and on people's willingness to communicate.

OGBP is built with the same philosophy. You don't need Google to give you an account. You don't need Twitter to give you a blue checkmark. You need:

- A guestbook (or any frontend that speaks OGBP)
- A relay to connect to
- A pair of ED25519 keys

With that, you send messages to the network. To anyone. Without intermediaries deciding what can and cannot be said.

*— Over and out. 73.*

---

## Glossary for Hams (and Everyone Else)

| Term | Meaning in OGBP |
|------|-----------------|
| **CQ** | General call to any station (broadcast) |
| **QRZ?** | Who is calling me? (discovery request) |
| **QSL** | Acknowledge receipt / confirmation (ack) |
| **QRM** | Interference (spam, channel noise) |
| **QRN** | Atmospheric noise (network issues, latency) |
| **73** | Best regards (end of transmission) |
| **BK** | Break (interject into a conversation) |
| **Relay** | Repeater (the node that retransmits) |
| **Peer** | Another repeater on the network (another relay) |
| **Guestbook** | Your station (your OGBP-speaking frontend) |


