> For the complete documentation index, see [llms.txt](https://bsv.brc.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bsv.brc.dev/transactions/0149.md).

# Multicast BEEF Object Frame Format

Jeff Harris (<jeff@lightweb.net>)

## Abstract

This BRC specifies the three wire forms of the [BRC-148](/transactions/0148.md) BEEF object plane: the **multicast object frame** (FrameVer `0x09`, assigned here), which carries one BEEF-family transaction object on the plane's domain-tagged shard groups; the **submission record**, the unicast envelope a publisher sends to operator ingress naming one object to one or more overlay topics; and the **delivery record**, the unicast envelope a delivery edge streams to a subscriber. The frame reuses the [BRC-124](/transactions/0124.md) 92-byte header layout at identical offsets, so existing classifiers, retransmission, and fragmentation infrastructure require no changes. The records exist because BEEF bytes are not self-delimiting without a full structural parse — which the fabric never performs — so unlike the BRC-143/BRC-144 push lanes, BEEF lanes carry an explicit length-carrying envelope.

## Copyright

This BRC is licensed under the Open BSV License.

## Motivation

[BRC-148](/transactions/0148.md) allocates the BEEF object plane (domain `0x1`), defines its topical sharding, filtering, and coordination, and constrains the header fields that addressing, retransmission, and filtering depend on — but, following the convention that frame formats are specified separately from addressing (BRC-124 vs BRC-129; BRC-143/BRC-144 vs their carriage rules), it defers the concrete formats to this BRC. This BRC assigns the frame version and fixes the byte layouts: the fabric frame, and the two unicast record forms that carry BEEF objects between participants and operator infrastructure.

## Specification

### BEEF object frame (FrameVer `0x09`) — 92-byte header + payload

FrameVer `0x09` is assigned to the BEEF object frame (the next code after BRC-142's `0x08`).

| Offset | Size | Type        | Field            | Description                                                                                                                                                                                                 |
| ------ | ---- | ----------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 0      | 4    | `uint32` BE | Network Magic    | `0xE3E1F3E8` (BSV mainnet P2P magic). Frames with incorrect magic are rejected.                                                                                                                             |
| 4      | 2    | `uint16` BE | Protocol Version | `0x02BF` (703). Informational; receivers do not validate.                                                                                                                                                   |
| 6      | 1    | `byte`      | Frame Version    | `0x09` — BEEF object frame. Any other value is handled by a different decoder.                                                                                                                              |
| 7      | 1    | `byte`      | Reserved         | `0x00` on send; ignored on receive (reserved for future plane-level message types). The BEEF encoding version is **not** duplicated here — it is the payload's first four bytes.                            |
| 8      | 32   | `[32]byte`  | ContentID        | `SHA-256d(payload bytes)` — the object's identity; and the BRC-130 reassembly verification hash. With TopicID it keys both fragment reassembly and duplicate suppression. Never the subject TxID.           |
| 40     | 8    | `uint64` BE | HashKey          | Per-(sender, group) flow identifier; stamped at ingress; `0` = unset. Derivation and flow semantics per [BRC-148](/transactions/0148.md) §Frame carriage (TopicID excluded).                                |
| 48     | 8    | `uint64` BE | SeqNum           | Per-sender monotonic counter within the (sender, group) flow; stamped at ingress; `0` = unstamped. Drives gap detection, NACK recovery, and retransmit dedup.                                               |
| 56     | 32   | `[32]byte`  | TopicID          | `SHA-256(UTF-8 topic name)`. The delivery-selectivity key: group derivation takes its top bits, and fan-out filters subscribers on it. Occupies the field that carries the SubtreeID in transaction frames. |
| 88     | 4    | `uint32` BE | Payload Length   | Byte length of the payload.                                                                                                                                                                                 |
| 92     | \*   | `[]byte`    | Payload          | The BEEF object **verbatim** — no envelope, no re-encoding, proof data intact.                                                                                                                              |

#### Payload leading bytes — BEEF version word

| Payload `[0:4]` | Type                                         | Encoding                      | Reference                       |
| --------------- | -------------------------------------------- | ----------------------------- | ------------------------------- |
| `0100BEEF`      | `uint32` LE (4022206465)                     | BEEF                          | [BRC-62](/transactions/0062.md) |
| `0200BEEF`      | `uint32` LE (4022206466)                     | BEEF V2 (TXID-only extension) | [BRC-96](/transactions/0096.md) |
| `01010101`      | 4-byte prefix (32-byte subject TxID follows) | Atomic BEEF                   | [BRC-95](/transactions/0095.md) |

The version word is the BRC-148 version filter's input — an encoding-capability gate only, never an overlay namespace. Intentionally absent from the header: the subject TxID (consumer-level semantics inside the payload) and any per-format sub-type byte (the marker is self-identifying at a fixed offset).

#### Fragmentation

Objects exceeding the path MTU are carried as [BRC-130](/transactions/0130.md) fragments (`FrameVer 0x03`, `OrigFrameVer = 0x09`) with bytes 0–91 layout-identical to the table above, so ContentID and TopicID appear in every fragment; ContentID is the reassembly verification hash. Reassembly MUST key slots on the (ContentID, TopicID) pair — sibling emissions of one object to different topics share a ContentID, so a ContentID-only key collapses them and delivers only one. The interaction with filtering is specified in BRC-148 §Frame carriage.

### Submission record (ingress)

A publisher submits the pair *(topic list, BEEF object)* as one record:

```
Offset  Size  Field
  0       2   Tag         (uint16 BE = 0xBEEF — record discriminator on shared ports)
  2       1   RecordVer   (0x01)
  3       1   TopicCount  (1..15)
  4       …   Topics      (TopicCount × { uint8 NameLen (1..64) ∥ NameLen bytes UTF-8 topic name })
  …       4   ObjectLen   (uint32 BE, ≥ 1; operators bound the maximum accepted size)
  …       …   Object      (the BEEF object; leading marker per the version-word table)
```

For each named topic the ingress derives `TopicID = SHA-256(name)`, computes the object's ContentID once, and emits one `FrameVer 0x09` frame to that topic's group — sibling emissions share a ContentID, and ingress duplicate suppression keys on the (ContentID, TopicID) pair per BRC-148. A record whose object does not lead with a marker from the version-word table, whose lengths violate the bounds above, or whose object exceeds the operator's size bound MUST be rejected. A malformed record desynchronises its stream; the receiver MUST close the connection.

#### Fan-out admission

`TopicCount` ranges 1..15, but a multi-topic record fans one object out to that many full-object frames — an up-to-15× amplification of one submission, attacker-declarable and free on an anonymous path. Admission is therefore conditioned on the ingress identity path: open / public / anonymous ingress MUST admit `TopicCount == 1` and MUST reject a public record with `TopicCount > 1`; multi-topic (`TopicCount > 1`) is an authenticated-ingress capability, where the operator accounts the fan-out (typically the first N topics free and additional topics charged at the operator's delivery rate; N is operator policy). This is an admission policy over an unchanged wire grammar — the 92-byte frame and record layout are identical on both paths.

#### Detection on shared ports

Single-topic BEEF submission records MAY ride the open transaction port (multi-topic records require the authenticated path, above) alongside the existing grammars, distinguished by leading bytes — network magic `0xE3E1F3E8` selects a framed datagram, the `0xBEEF` tag selects a submission record, and anything else is a bare transaction ([BRC-12](/transactions/0012.md) raw / [BRC-30](/transactions/0030.md) Extended Format, whose little-endian version byte at offset 1 is `0x00` — the three forms cannot collide). Over TCP the grammar is committed once per connection; over UDP it is detected per datagram, and a record must fit one datagram (larger objects submit over a stream transport). Operators MAY additionally expose a dedicated single-record-grammar port for flow separation; it carries no additional admission semantics.

### Delivery record (egress)

A delivery edge streaming BEEF objects to a subscriber over a unicast lane emits, per delivered object:

```
Offset  Size  Field
  0      32   TopicID    (the matched topic's identifier)
 32       4   ObjectLen  (uint32 BE, ≥ 1)
 36       …   Object     (the BEEF object verbatim)
```

The record carries the TopicID, not the topic name — the subscriber elected its topics and maps identifiers back locally. Subscribers taking whole `FrameVer 0x09` frames instead of a stripped lane need no record; the frame already carries both identifiers.

## References

* [BRC-12: Raw Transaction Format](/transactions/0012.md) — bare-transaction grammar sharing the open port
* [BRC-30: Extended Format Transaction](/transactions/0030.md) — bare-transaction grammar sharing the open port
* [BRC-62: Background Evaluation Extended Format (BEEF) Transactions](/transactions/0062.md) — BEEF encoding and version word
* [BRC-95: Atomic BEEF Transactions](/transactions/0095.md) — explicit-subject BEEF encoding
* [BRC-96: BEEF V2 Txid Only Extension](/transactions/0096.md) — TXID-only BEEF encoding
* [BRC-124: Multicast Transaction Frame Format](/transactions/0124.md) — the 92-byte header layout this frame reuses
* [BRC-126: Multicast Transaction NACK Retransmission Protocol](/transactions/0126.md) — retransmission machinery operating on HashKey/SeqNum
* [BRC-130: Multicast Transaction Frame Fragmentation](/transactions/0130.md) — fragmentation for large objects
* BRC-143 / BRC-144 (Multicast Subtree Data / Block Push Frame Formats) — push-lane format precedent (in submission)
* [BRC-148: Multicast Shard Domain Partitioning and the BEEF Object Plane](/transactions/0148.md) — the plane, sharding, filtering, and coordination this format serves


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bsv.brc.dev/transactions/0149.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
