Beersy
BRC-131

Multicast Block Announcement Frame Format

Clients need to know when a new block arrives, and polling for it wastes time and bandwidth. This pushes the block's summary to everyone listening as soon as it exists.

About Multicast, sending one transaction to many listeners at once.

AlsoBlocksFrames

Jeff Harrischanged 13 Oct 202611 min read

Reference for an AI

Everything an assistant needs to answer questions about BRC-131 accurately, including what it depends on.

Summary

Why
Every subscriber on the multicast fabric, regardless of which transaction shard it follows, needs to receive a new block and its in full so it can validate the block without fetching data elsewhere.
What
BRC-131 is a wire frame format for multicasting a complete block, including its , to every subscriber over a dedicated control-plane multicast group.
How
A node emits or listens for a 92-byte header with 0x04 on the dedicated multicast group, reads to know whether the payload is a full BRC-144 block object or a legacy standalone coinbase, and uses the same / stamping and BRC-126 NACK retry as ordinary transaction frames…

What this lets you do

  • Announce a full block to every subscriber on the multicast fabric in one frame
  • Verify a received block by checking SHA256d of the header against the frame's
  • Rely on the existing NACK/retry machinery to recover dropped block frames
  • Fragment large block announcements with BRC-130 when they exceed jumbo frame size
  • Recognize and safely drop deprecated standalone coinbase frames

Written by claude-sonnet-5 from the specification text. Where the two differ, the original is correct.

proxyminerexchangeoverlay

The specification

Abstract

This BRC specifies the wire format for distributing block data over the IPv6 multicast fabric. A new (0x04) reuses the BRC-124 92-byte header layout and carries either a block announcement, whose payload is a complete BRC-144 block object, or a standalone , delivered to all subscribers via a dedicated control-plane multicast group (FF0E::B:FFFE). On this fabric a block announcement and the block data are the same thing: the announcement carries the block. The standalone message type (MsgType 0x02) is deprecated but retained and reserved; see the CoinbaseTx Payload section and BRC-133.

This BRC is licensed under the Open BSV License.

Motivation

The multicast fabric defined in BRC-124 shards transaction delivery across deterministic IPv6 multicast groups. Block events require a complementary distribution path:

  1. Block announcements must reach every subscriber — miners, exchanges, and — so they can update block templates, advance chain state, and validate received transactions against the new . The announcement carries the whole block object, because a subscriber that learns of a block without its list and coinbase must fetch them over some other path, which the fabric exists to avoid.
  2. Coinbase transactions must reach every subscriber regardless of shard assignment, since every node needs the coinbase to reconstruct the block . The coinbase therefore travels INSIDE the block object, where it inherits the block's proof of ; the standalone message type that once carried it separately is deprecated (see CoinbaseTx Payload).
  3. Both events must carry the same sequencing and reliability guarantees (/ stamping and NACK-based retransmission) as ordinary transaction frames, so existing retry infrastructure works without modification.

Defining a new FrameVer byte satisfies these requirements with minimal protocol surface: the BRC-124 header layout is fully preserved, the same proxy/listener/retry machinery applies, and the only routing change is substituting the shard-derived multicast group with the dedicated control group.

Specification

Frame Header Format (92 bytes)

The BRC-131 header is layout-identical to the BRC-124 header. All multi-byte integers are big-endian.

OffsetSizeAlignmentFieldDescription
04—Network Magic0xE3E1F3E8 (BSV mainnet P2P magic)
42—Protocol Ver0x02BF (703, BSV large-block baseline)
61—Frame Version0x04 — BRC-131 block control
71—0x01 = BlockAnnounce; 0x02 = CoinbaseTx
8328-byte (announce) or CoinbaseTxID (coinbase)
4088-byteHashKeyXXH64(senderIPv6 ∥ ∥ zeros); proxy-stamped
4888-byteSeqNumPer-sender monotonic counter; stamped by proxy
56328-byteReserved32All zeros
8848-bytePayload Lengthuint32 BE
92*—PayloadMsgType-specific (see below)

Distinction from BRC-124: Byte 7 carries MsgType rather than Reserved=0x00. The 32 bytes at 56–87 are always zeros (no subtree ID; block frames address all subscribers).

Field Definitions

Network Magic (bytes 0–3)

The value 0xE3E1F3E8 (BSV mainnet P2P magic). Frames with incorrect magic are rejected.

Protocol Version (bytes 4–5)

0x02BF (703). Informational; receivers do not validate.

Frame Version (byte 6)

0x04 for BRC-131 frames. Any other value causes the frame to be handled by a different decoder.

MsgType (byte 7)

Identifies the payload type:

ValueConstantPayload
0x01BlockMsgAnnounceA BRC-144 block object, carried verbatim
0x02BlockMsgCoinbaseRaw serialized coinbase transaction bytes

Any other value is rejected. 0x02 is deprecated (see the CoinbaseTx Payload section) and stays reserved for standalone coinbase carriage; it must not be reassigned.

ContentID (bytes 8–39)

A 32-byte identifier:

  • BlockAnnounce: the block hash in internal byte order (not reversed display order).
  • CoinbaseTx: SHA256d of the raw coinbase transaction bytes (the CoinbaseTxID).

HashKey (bytes 40–47)

uint64 big-endian. XXH64 of (senderIPv6[16] ∥ flowIdx[4] ∥ zeroSubtreeID[32]) where flowIdx is a 4-byte big-endian value selected by MsgType, so the two payload types form independent flows on the shared egress group:

  • BlockAnnounce (MsgType 0x01): flowIdx = 0x0000FFFE (GroupBlockBroadcast).
  • CoinbaseTx (MsgType 0x02): flowIdx = 0x0000FFF8 (GroupCoinbaseFlow, a virtual HashKey index — see BRC-129 and BRC-133).

Stamped in-place by the proxy if zero on arrival.

SeqNum (bytes 48–55)

uint64 big-endian. Monotonic per-sender counter for the (HashKey, flowIdx) flow. Stamped in-place by the proxy if zero on arrival. Used by listeners and retry endpoints as the secondary cache key.

Reserved32 (bytes 56–87)

All zero bytes. Block control frames have no subtree ID; the field is reserved for future use.

Payload Length (bytes 88–91)

uint32 big-endian. Number of payload bytes immediately following the header.

Payload (byte 92 onward)

MsgType-specific (see below).

BlockAnnounce Payload (MsgType 0x01)

The payload is a complete BRC-144 block object, carried verbatim with no additional :

SizeFieldDescription
80BlockHeaderStandard 80-byte BSV
8TransactionCountuint64 BE. Transactions committed by the block
8SizeInBytesuint64 BE. Total serialized block size
8SubtreeCount (M)uint64 BE. Number of subtree roots that follow
32 × MSubtreeHashesOrdered subtree Merkle roots, each 32 bytes
*CoinbaseFull coinbase transaction (BRC-12), self-delimiting by structure
8Heightuint64 BE. Block height
8CoinbaseBUMPLenuint64 BE. Byte length of the coinbase that follows
*CoinbaseBUMPBRC-74 of the coinbase; present only when CoinbaseBUMPLen > 0

The fixed prefix through SubtreeCount is 104 bytes; everything after it is variable. The Coinbase carries no length prefix — it is self-delimiting by transaction structure, so a reader parses it and resumes at Height. The field definitions, including the block-header layout and the coinbase-placeholder rule for the first subtree, are normative in BRC-144 and are not restated here.

Minimum payload size: 120 bytes plus the coinbase transaction (M = 0, no BUMP). Total payload size: 120 + 32 × M + len(Coinbase) + CoinbaseBUMPLen bytes.

The ContentID in the frame header is the 32-byte block hash, which a receiver verifies as SHA256d(BlockHeader) over the payload's first 80 bytes. The SubtreeHashes are the ordered Merkle roots of the sharded transaction subtrees included in this block, matching the producer's subtree enumeration. M may be zero for empty blocks or blocks with no sharded subtrees.

There is no separate coinbase identifier field. The coinbase transaction itself is present, so its id is SHA256d(Coinbase) and a reader that wants the id computes it. A payload that ends after the subtree hashes, with no coinbase, is malformed and MUST be rejected.

Revision . Earlier revisions of this BRC defined this payload as an 80-byte header, a 32-byte coinbase id and a uint32 subtree count — a lean announcement that named the block without carrying it. No implementation ever produced that grammar: every producer has emitted the BRC-144 block object described above, and this revision makes the specification say so. Because the two grammars share a prefix, a reader built to the old text does not fail cleanly on a zero-subtree block; it reads a SubtreeCount of zero out of the coinbase's null previous-output hash and reports a coinbase id that is actually the block's count fields. A reader MUST therefore treat the payload as a BRC-144 object.

CoinbaseTx Payload (MsgType 0x02)

Deprecated, and retained deliberately. Current implementations never produce CoinbaseTx frames: a coinbase transaction is invalid to a node unless it is connected to its block, so the coinbase travels inline in the BRC-144 block body, where it inherits the block's proof of work. A standalone coinbase frame carries no proof of work of its own, and a listener that gates block-control frames before fan-out (the reference listener's block-control gate, on by default) drops it; the reference implementation counts it under the drop reason coinbase_legacy. The message type is kept, not withdrawn, because a future design may need to carry blocks and their coinbase separately across the multicast fabric and recombine them at the edges. MsgType 0x02 and BRC-133 therefore remain reserved for that purpose. The format below remains normative for any implementation that emits or accepts the message type.

The payload is the raw serialized coinbase transaction — the same encoding as a BRC-12 transaction payload (version LE32 + inputs + outputs + locktime LE32), with no additional envelope.

The ContentID in the frame header is the SHA256d of these raw bytes (the CoinbaseTxID), which is also SHA256d(Coinbase) over the coinbase carried inside the corresponding BlockAnnounce frame.

Control-Plane Multicast Group

BRC-131 frames are distributed exclusively on the group:

IndexIPv6 AddressConstant
0xFFFEglobalFF0E::B:FFFEGroupBlockBroadcast

The global scope (FF0E) ensures block announcements cross site boundaries. The group index 0xFFFE is in the reserved control-plane range and is never used as a shard group for any shard_bits ≤ 12.

The address is shown in form (FF0E::B:FFFE), which under RFC 8815 is intra-domain only; inter-domain delivery across site boundaries uses the SSM address FF3E::B:FFFE (see BRC-129). The frame format, HashKey, SeqNum, and NACK path are unchanged across modes. Under SSM, receivers (S,G)-join using the block-announce source (the emitting proxy, senderIPv6); block-broadcast sources are distributed per BRC-129.

Sequence Tracking and Retransmission

BRC-131 frames use the same XXH64 hash-chain sequencing as BRC-124:

  • HashKey is computed as XXH64(senderIPv6 ∥ flowIdx ∥ zeroSubtreeID) where flowIdx = 0x0000FFFE for BlockAnnounce and 0x0000FFF8 for CoinbaseTx (see the HashKey field definition).
  • SeqNum is a monotonic per-sender counter for the (HashKey, flowIdx) flow.
  • The proxy stamps both fields in-place if SeqNum == 0 on arrival.
  • Listeners detect gaps by comparing consecutive SeqNum values on the control flow and dispatch BRC-126 NACKs to retry endpoints.
  • Retry endpoints cache BRC-131 frames by HashKey ∥ SeqNum and retransmit to FF0E::B:FFFE on NACK. The retransmit destination is the control group, not the shard group derived from ContentID.

TCP Transport

The read sequence is identical to BRC-124:

  1. Read 44 bytes (sufficient for legacy header or BRC-131 start).
  2. Inspect FrameVer at byte 6.
    • Version 0x04 (BRC-131): read 48 more bytes to complete the 92-byte header; PayLen is at bytes 88–91.
  3. Read exactly PayLen bytes.
  4. Process the complete frame.

Fragmentation (BRC-130 Extension)

When len(Payload) > fragDataSize, the proxy fragments the frame using BRC-130. The OrigFrameVer field at byte 100 of the BRC-130 fragment header is set to 0x04. The MsgType byte is preserved in the BRC-130 fragment's byte 7. Fragment gap tracking uses the (HashKey, flowIdx, zeroSubtreeID) flow identically to BRC-124 fragments.

A block announcement carries the whole block object, so its size follows the block: the fixed prefix and the subtree list are small (104 + 32 × 128 = 4200 bytes for 128 subtrees), and the coinbase transaction and its optional BUMP carry the rest. Announcements therefore routinely exceed a 9000-byte jumbo frame and fragmentation is the normal case, not the exception.

Error Handling

ConditionUDP BehaviorTCP Behavior
Bad magicSilent dropConnection closed
FrameVer ≠ 0x04Not BRC-131Not BRC-131
Unknown MsgTypeSilent dropConnection closed
Payload length too largeSilent dropConnection closed
Truncated datagramSilent dropConnection closed
SeqNum == 0 at listenerDiscardDiscard

Examples

BlockAnnounce Frame (M=2 subtrees)

// Header (92 bytes)
E3E1F3E8                                                          // Network Magic
02BF                                                              // Protocol Version
04                                                                // Frame Version (BRC-131)
01                                                                // MsgType (BlockAnnounce)
<32-byte block hash>                                              // ContentID
<8-byte HashKey>                                                  // Proxy-stamped XXH64
<8-byte SeqNum>                                                   // Proxy-stamped monotonic
0000000000000000000000000000000000000000000000000000000000000000  // Reserved32
<4-byte PayloadLen>                                               // 184 + len(Coinbase)

// Payload — a BRC-144 block object
<80-byte block header>                                            // BlockHeader
0000000000000FA0                                                  // TransactionCount = 4000
00000000001E8480                                                  // SizeInBytes = 2,000,000
0000000000000002                                                  // SubtreeCount = 2
<32-byte subtree hash 0>                                          // SubtreeHashes[0]
<32-byte subtree hash 1>                                          // SubtreeHashes[1]
<coinbase transaction>                                            // Coinbase (self-delimiting)
00000000000C3500                                                  // Height = 800,000
0000000000000000                                                  // CoinbaseBUMPLen = 0

CoinbaseTx Frame

// Header (92 bytes)
E3E1F3E8                                                          // Network Magic
02BF                                                              // Protocol Version
04                                                                // Frame Version (BRC-131)
02                                                                // MsgType (CoinbaseTx)
<32-byte CoinbaseTxID>                                            // ContentID = SHA256d(payload)
<8-byte HashKey>                                                  // Proxy-stamped XXH64
<8-byte SeqNum>                                                   // Proxy-stamped monotonic
0000000000000000000000000000000000000000000000000000000000000000  // Reserved32
<4-byte PayloadLen>                                               // Coinbase tx byte count

// Payload
<raw coinbase transaction bytes>

Alignment Verification

FieldOffsetOffset % 8
ContentID80 ✓
HashKey400 ✓
SeqNum480 ✓
Reserved32560 ✓
Payload Length880 ✓
Payload924

Constants Reference

NameValueHexDescription
FrameVerV440x04BRC-131 block control frame version
BlockMsgAnnounce10x01MsgType: block announcement (payload = a BRC-144 block object)
BlockMsgCoinbase20x02MsgType: coinbase transaction (deprecated; reserved)
GroupBlockBroadcast655340xFFFEControl-plane group index for block frames
BlockHeaderSize800x50Standard BSV block header size (bytes)
BlockObjectFixedPrefix1040x68BRC-144 fixed prefix through SubtreeCount
HeaderSize920x5CBRC-131 header size (identical to BRC-124)

References

Was this helpful?

Search Beersy

Search standards by number, title, author or topic