Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PeerDAS #1

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
bb674ef
Copied from Danny's ethresearch post
hwwhww Nov 9, 2023
b62d532
wip
hwwhww Nov 14, 2023
af9a9b7
wip
hwwhww Nov 29, 2023
54661f4
Add `TARGET_NUMBER_OF_PEERS`
hwwhww Nov 29, 2023
a27bee0
Add networking spec draft
hwwhww Nov 29, 2023
5a0b661
fix
hwwhww Nov 29, 2023
ef3586e
simplification
hwwhww Nov 29, 2023
88d840e
Rename `DoYouHave` to `GetCustodyStatus`
hwwhww Nov 29, 2023
ab85c7c
Add DataLineSidecar design
hwwhww Nov 29, 2023
0440a8c
Apply suggestions from code review
hwwhww Dec 1, 2023
b2d08fa
Revamp after reviews and discussion
hwwhww Dec 1, 2023
65ce492
Remove `CustodyStatus`
hwwhww Dec 1, 2023
b36bbf5
minor fix
hwwhww Dec 2, 2023
b970213
Change`DataColumn` to `List[DataCell, MAX_BLOBS_PER_BLOCK]`
hwwhww Dec 2, 2023
28a914a
Move folder
hwwhww Dec 2, 2023
3c386fe
Replace `DataColumnByRootAndIndex` with `DataColumnSidecarByRoot` mes…
hwwhww Dec 2, 2023
b5d1220
Remove `DataRow`
hwwhww Dec 2, 2023
9d0cd0f
Apply suggestions from @jacobkaufmann code review
hwwhww Dec 4, 2023
8d55943
Represent matrix in `BLSFieldElement` form
hwwhww Dec 4, 2023
8e7dca2
Merge branch 'dev' into peer-das
hwwhww Dec 5, 2023
b2ffa27
Misc minor fix
hwwhww Dec 5, 2023
2feed04
Add linter support
hwwhww Dec 5, 2023
82d2e58
Add column subnet validation. Split `verify_column_sidecar` into two …
hwwhww Dec 5, 2023
208a4f7
Fix `get_data_column_sidecars` by using `compute_samples_and_proofs`
hwwhww Dec 5, 2023
be5a0e2
Apply suggestions from code review
hwwhww Dec 5, 2023
9435da3
Do not assign row custody
hwwhww Dec 5, 2023
e896d40
Apply suggestions from code review
hwwhww Dec 6, 2023
0dde817
Revamp reconstruction section
hwwhww Dec 6, 2023
6f08051
Use depth as the primary preset for inclusion proof. Fix `get_data_co…
hwwhww Dec 6, 2023
b08e1ed
Change `SAMPLES_PER_SLOT` to 8 and add tests (requirement TBD)
hwwhww Dec 6, 2023
d714e97
Apply PR feedback from @ppopth and @jtraglia
hwwhww Dec 7, 2023
826782c
Fix `get_data_column_sidecars`
hwwhww Dec 7, 2023
08856d0
Apply suggestions from code review
hwwhww Dec 11, 2023
317b30e
Apply suggestions from code review
hwwhww Dec 12, 2023
8e28884
Fix `get_data_column_sidecars` and `get_custody_lines`
hwwhww Dec 12, 2023
df76abf
Apply suggestions from code review
hwwhww Dec 12, 2023
e61f454
Enhance tests
hwwhww Dec 12, 2023
e38c4c4
fix typo
hwwhww Dec 19, 2023
f40c75e
Remove `epoch` from `get_custody_lines`
hwwhww Dec 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ tests/core/pyspec/eth2spec/deneb/
tests/core/pyspec/eth2spec/eip6110/
tests/core/pyspec/eth2spec/eip7002/
tests/core/pyspec/eth2spec/whisk/
tests/core/pyspec/eth2spec/peerdas/

# coverage reports
.htmlcov
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MARKDOWN_FILES = $(wildcard $(SPEC_DIR)/*/*.md) \
$(wildcard $(SPEC_DIR)/_features/*/*/*.md) \
$(wildcard $(SSZ_DIR)/*.md)

ALL_EXECUTABLE_SPECS = phase0 altair bellatrix capella deneb eip6110 whisk
ALL_EXECUTABLE_SPECS = phase0 altair bellatrix capella deneb eip6110 whisk peerdas
# The parameters for commands. Use `foreach` to avoid listing specs again.
COVERAGE_SCOPE := $(foreach S,$(ALL_EXECUTABLE_SPECS), --cov=eth2spec.$S.$(TEST_PRESET_TYPE))
PYLINT_SCOPE := $(foreach S,$(ALL_EXECUTABLE_SPECS), ./eth2spec/$S)
Expand Down
3 changes: 3 additions & 0 deletions configs/minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ EIP7002_FORK_EPOCH: 18446744073709551615
# WHISK
WHISK_FORK_VERSION: 0x06000001
WHISK_FORK_EPOCH: 18446744073709551615
# PEERDAS
PEERDAS_FORK_VERSION: 0x06000001
PEERDAS_FORK_EPOCH: 18446744073709551615


# Time parameters
Expand Down
10 changes: 10 additions & 0 deletions presets/mainnet/peerdas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Mainnet preset - PeerDAS

# Misc
# ---------------------------------------------------------------
# uint64(floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments'))
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH: 4
# `uint64(2**6)` (= 64)
FIELD_ELEMENTS_PER_CELL: 64
# `uint64((FIELD_ELEMENTS_PER_BLOB * 2) // FIELD_ELEMENTS_PER_CELL)` (= 128)
NUMBER_OF_COLUMNS: 128
10 changes: 10 additions & 0 deletions presets/minimal/peerdas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Minimal preset - PeerDAS

# Misc
# ---------------------------------------------------------------
# uint64(floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments'))
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH: 4
# `uint64(2**6)` (= 64)
FIELD_ELEMENTS_PER_CELL: 64
# `uint64((FIELD_ELEMENTS_PER_BLOB * 2) // FIELD_ELEMENTS_PER_CELL)` (= 128)
NUMBER_OF_COLUMNS: 128
1 change: 1 addition & 0 deletions pysetup/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
EIP6110 = 'eip6110'
EIP7002 = 'eip7002'
WHISK = 'whisk'
PEERDAS = 'peerdas'



Expand Down
2 changes: 2 additions & 0 deletions pysetup/md_doc_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
EIP6110,
WHISK,
EIP7002,
PEERDAS,
)


Expand All @@ -21,6 +22,7 @@
EIP6110: DENEB,
WHISK: CAPELLA,
EIP7002: CAPELLA,
PEERDAS: DENEB,
}

ALL_FORKS = list(PREVIOUS_FORK_OF.keys())
Expand Down
3 changes: 2 additions & 1 deletion pysetup/spec_builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
from .eip6110 import EIP6110SpecBuilder
from .eip7002 import EIP7002SpecBuilder
from .whisk import WhiskSpecBuilder
from .peerdas import PeerDASSpecBuilder


spec_builders = {
builder.fork: builder
for builder in (
Phase0SpecBuilder, AltairSpecBuilder, BellatrixSpecBuilder, CapellaSpecBuilder, DenebSpecBuilder,
EIP6110SpecBuilder, EIP7002SpecBuilder, WhiskSpecBuilder,
EIP6110SpecBuilder, EIP7002SpecBuilder, WhiskSpecBuilder, PeerDASSpecBuilder,
)
}
26 changes: 26 additions & 0 deletions pysetup/spec_builders/peerdas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from typing import Dict

from .base import BaseSpecBuilder
from ..constants import PEERDAS


class PeerDASSpecBuilder(BaseSpecBuilder):
fork: str = PEERDAS

@classmethod
def imports(cls, preset_name: str):
return f'''
from eth2spec.deneb import {preset_name} as deneb
'''
@classmethod
def hardcoded_custom_type_dep_constants(cls, spec_object) -> str:
return {
'NUMBER_OF_COLUMNS': spec_object.preset_vars['NUMBER_OF_COLUMNS'].value,
'FIELD_ELEMENTS_PER_CELL': spec_object.preset_vars['FIELD_ELEMENTS_PER_CELL'].value,
}

@classmethod
def hardcoded_func_dep_presets(cls, spec_object) -> Dict[str, str]:
return {
'KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH': spec_object.preset_vars['KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH'].value,
}
234 changes: 234 additions & 0 deletions specs/_features/peerdas/das-core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
# Peer Data Availability Sampling -- Core

**Notice**: This document is a work-in-progress for researchers and implementers.

## Table of contents

<!-- TOC -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Custom types](#custom-types)
- [Configuration](#configuration)
- [Data size](#data-size)
- [Custody setting](#custody-setting)
- [Helper functions](#helper-functions)
- [`get_custody_lines`](#get_custody_lines)
- [`compute_extended_data`](#compute_extended_data)
- [`compute_extended_matrix`](#compute_extended_matrix)
- [`compute_samples_and_proofs`](#compute_samples_and_proofs)
- [`get_data_column_sidecars`](#get_data_column_sidecars)
- [Custody](#custody)
- [Custody requirement](#custody-requirement)
- [Public, deterministic selection](#public-deterministic-selection)
- [Peer discovery](#peer-discovery)
- [Extended data](#extended-data)
- [Column gossip](#column-gossip)
- [Parameters](#parameters)
- [Reconstruction and cross-seeding](#reconstruction-and-cross-seeding)
- [Peer sampling](#peer-sampling)
- [Peer scoring](#peer-scoring)
- [DAS providers](#das-providers)
- [A note on fork choice](#a-note-on-fork-choice)
- [FAQs](#faqs)
- [Row (blob) custody](#row-blob-custody)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- /TOC -->

## Custom types

We define the following Python custom types for type hinting and readability:

| Name | SSZ equivalent | Description |
| - | - | - |
| `DataCell` | `Vector[BLSFieldElement, FIELD_ELEMENTS_PER_CELL]` | The data unit of a cell in the extended data matrix |
| `DataColumn` | `List[DataCell, MAX_BLOBS_PER_BLOCK]` | The data of each column in PeerDAS |
| `ExtendedMatrix` | `List[DataCell, MAX_BLOBS_PER_BLOCK * NUMBER_OF_COLUMNS]` | The full data with blobs and one-dimension erasure coding extension |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to prefer the 1D array representation instead of a 2D array representation?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it can be List[Vector[DataCell, NUMBER_OF_COLUMNS], MAX_BLOBS_PER_BLOCK] or Vector[List[DataCell, MAX_BLOBS_PER_BLOCK], NUMBER_OF_COLUMNS].

I'm not sure which one would be more useful in implementation. What do you think?

hwwhww marked this conversation as resolved.
Show resolved Hide resolved
| `FlatExtendedMatrix` | `List[BLSFieldElement, MAX_BLOBS_PER_BLOCK * FIELD_ELEMENTS_PER_BLOB * NUMBER_OF_COLUMNS]` | The flatten format of `ExtendedMatrix` |
hwwhww marked this conversation as resolved.
Show resolved Hide resolved
| `LineIndex` | `uint64` | The index of the rows or columns in `FlatExtendedMatrix` matrix |

## Configuration

### Data size

| Name | Value | Description |
| - | - | - |
| `FIELD_ELEMENTS_PER_CELL` | `uint64(2**6)` (= 64) | Elements per `DataCell` |
| `NUMBER_OF_COLUMNS` | `uint64((FIELD_ELEMENTS_PER_BLOB * 2) // FIELD_ELEMENTS_PER_CELL)` (= 128) | Number of columns in the extended data matrix. |

### Custody setting

| Name | Value | Description |
| - | - | - |
| `SAMPLES_PER_SLOT` | `8` | Number of random samples a node queries per slot |
| `CUSTODY_REQUIREMENT` | `2` | Minimum number columns an honest node custodies and serves samples from |
hwwhww marked this conversation as resolved.
Show resolved Hide resolved
| `TARGET_NUMBER_OF_PEERS` | `70` | Suggested minimum peer count |

### Helper functions

#### `get_custody_lines`

```python
def get_custody_lines(node_id: NodeID, epoch: Epoch, custody_size: uint64) -> Sequence[LineIndex]:
assert custody_size <= MAX_BLOBS_PER_BLOCK
all_items = list(range(MAX_BLOBS_PER_BLOCK))
line_index = (node_id + epoch) % MAX_BLOBS_PER_BLOCK
return [LineIndex(all_items[(line_index + i) % len(all_items)]) for i in range(custody_size)]
Copy link

@fradamt fradamt Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the custody assignment be stable over the blob retrievability period? Maybe for some portion of the assigned columns it could be stable and for others depend on the epoch?

Suggested change
def get_custody_lines(node_id: NodeID, epoch: Epoch, custody_size: uint64) -> Sequence[LineIndex]:
assert custody_size <= MAX_BLOBS_PER_BLOCK
all_items = list(range(MAX_BLOBS_PER_BLOCK))
line_index = (node_id + epoch) % MAX_BLOBS_PER_BLOCK
return [LineIndex(all_items[(line_index + i) % len(all_items)]) for i in range(custody_size)]
def get_custody_lines(node_id: NodeID, epoch: Epoch, custody_size: uint64) -> Sequence[LineIndex]:
assert custody_size <= MAX_BLOBS_PER_BLOCK
all_items = list(range(MAX_BLOBS_PER_BLOCK))
line_index = (node_id + epoch // MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS) % MAX_BLOBS_PER_BLOCK
return [LineIndex(all_items[(line_index + i) % len(all_items)]) for i in range(custody_size)]

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS as defined in Deneb?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah sorry, I misremembered the name of the parameter.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed epoch as @djrtwo suggested: f40c75e

```

#### `compute_extended_data`

```python
def compute_extended_data(data: Sequence[BLSFieldElement]) -> Sequence[BLSFieldElement]:
# TODO
# pylint: disable=unused-argument
...
```

#### `compute_extended_matrix`

```python
def compute_extended_matrix(blobs: Sequence[Blob]) -> FlatExtendedMatrix:
matrix = [compute_extended_data(blob) for blob in blobs]
return FlatExtendedMatrix(matrix)
```

#### `compute_samples_and_proofs`

```python
def compute_samples_and_proofs(blob: Blob) -> Tuple[
Vector[DataCell, NUMBER_OF_COLUMNS],
Vector[KZGProof, NUMBER_OF_COLUMNS]]:
"""
Defined in polynomial-commitments-sampling.md
"""
# pylint: disable=unused-argument
...
```

#### `get_data_column_sidecars`

```python
def get_data_column_sidecars(signed_block: SignedBeaconBlock,
blobs: Sequence[Blob]) -> Sequence[DataColumnSidecar]:
signed_block_header = compute_signed_block_header(signed_block)
block = signed_block.message
kzg_commitments_inclusion_proof = compute_merkle_proof(
block.body,
get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments'),
)
cells, proofs = [compute_samples_and_proofs(blob) for blob in blobs]
sidecars = []
for column_index in range(NUMBER_OF_COLUMNS):
column = DataColumn([cells[0][column_index + NUMBER_OF_COLUMNS * i]
for i in range(MAX_BLOBS_PER_BLOCK)])
kzg_proof_of_column = [proofs[1][column_index + NUMBER_OF_COLUMNS * i]
for i in range(MAX_BLOBS_PER_BLOCK)]
hwwhww marked this conversation as resolved.
Show resolved Hide resolved
sidecars.append(DataColumnSidecar(
index=column_index,
column=column,
kzg_commitments=block.body.blob_kzg_commitments,
kzg_proofs=kzg_proof_of_column,
signed_block_header=signed_block_header,
kzg_commitments_inclusion_proof=kzg_commitments_inclusion_proof,
))
return sidecars
```

## Custody

### Custody requirement

Each node downloads and custodies a minimum of `CUSTODY_REQUIREMENT` columns per slot. The particular columns that the node is required to custody are selected pseudo-randomly (more on this below).

A node *may* choose to custody and serve more than the minimum honesty requirement. Such a node explicitly advertises a number greater than `CUSTODY_REQUIREMENT` via the peer discovery mechanism -- for example, in their ENR (e.g. `custody_lines: 8` if the node custodies `8` columns each slot) -- up to a `NUMBER_OF_COLUMNS` (i.e. a super-full node).

A node stores the custodied columns for the duration of the pruning period and responds to peer requests for samples on those columns.

### Public, deterministic selection

The particular columns that a node custodies are selected pseudo-randomly as a function (`get_custody_lines`) of the node-id, epoch, and custody size -- importantly this function can be run by any party as the inputs are all public.

*Note*: increasing the `custody_size` parameter for a given `node_id` and `epoch` extends the returned list (rather than being an entirely new shuffle) such that if `custody_size` is unknown, the default `CUSTODY_REQUIREMENT` will be correct for a subset of the node's custody.

*Note*: Even though this function accepts `epoch` as an input, the function can be tuned to remain stable for many epochs depending on network/subnet stability requirements. There is a trade-off between the rigidity of the network and the depth to which a subnet can be utilized for recovery. To ensure subnets can be utilized for recovery, staggered rotation likely needs to happen on the order of the pruning period.

## Peer discovery

At each slot, a node needs to be able to readily sample from *any* set of columns. To this end, a node should find and maintain a set of diverse and reliable peers that can regularly satisfy their sampling demands.

A node runs a background peer discovery process, maintaining at least `TARGET_NUMBER_OF_PEERS` of various custody distributions (both custody_size and column assignments). The combination of advertised `custody_size` size and public node-id make this readily and publicly accessible.

`TARGET_NUMBER_OF_PEERS` should be tuned upward in the event of failed sampling.

*Note*: while high-capacity and super-full nodes are high value with respect to satisfying sampling requirements, a node should maintain a distribution across node capacities as to not centralize the p2p graph too much (in the extreme becomes hub/spoke) and to distribute sampling load better across all nodes.

*Note*: A DHT-based peer discovery mechanism is expected to be utilized in the above. The beacon-chain network currently utilizes discv5 in a similar method as described for finding peers of particular distributions of attestation subnets. Additional peer discovery methods are valuable to integrate (e.g., latent peer discovery via libp2p gossipsub) to add a defense in breadth against one of the discovery methods being attacked.

## Extended data

In this construction, we entend the blobs using one-dimension erasure coding extension. The matrix comprises maximum `MAX_BLOBS_PER_BLOCK` rows and fixed `NUMBER_OF_COLUMNS` columns, with each row containing a `Blob` and its corresponding extension.
hwwhww marked this conversation as resolved.
Show resolved Hide resolved

## Column gossip

### Parameters

For each column -- use `data_column_sidecar_{subnet_id}` subnets, where each column index maps to the `subnet_id`. The sidecars can be computed with `get_data_column_sidecars(signed_block: SignedBeaconBlock, blobs: Sequence[Blob])` helper.

To custody a particular column, a node joins the respective gossip subnet. Verifiable samples from their respective column are gossiped on the assigned subnet.

### Reconstruction and cross-seeding

If the node obtains 50%+ of all the columns, they can reconstruct the full data matrix via `recover_samples_impl` helper.

If a node fails to sample a peer or fails to get a column on the column subnet, a node can utilize the Req/Resp message to query the missing column from other peers.

Once the node obtain the column, the node should send the missing columns to the column subnets.

*Note*: A node always maintains a matrix view of the rows and columns they are following, able to cross-reference and cross-seed in either direction.

*Note*: There are timing considerations to analyze -- at what point does a node consider samples missing and choose to reconstruct and cross-seed.

*Note*: There may be anti-DoS and quality-of-service considerations around how to send samples and consider samples -- is each individual sample a message or are they sent in aggregate forms.

## Peer sampling

At each slot, a node makes (locally randomly determined) `SAMPLES_PER_SLOT` queries for samples from their peers via `DataColumnSidecarByRoot` request. A node utilizes `get_custody_lines` helper to determine which peer(s) to request from. If a node has enough good/honest peers across all rows and columns, this has a high chance of success.

## Peer scoring

Due to the deterministic custody functions, a node knows exactly what a peer should be able to respond to. In the event that a peer does not respond to samples of their custodied rows/columns, a node may downscore or disconnect from a peer.

## DAS providers

A DAS provider is a consistently-available-for-DAS-queries, super-full (or high capacity) node. To the p2p, these look just like other nodes but with high advertised capacity, and they should generally be able to be latently found via normal discovery.

DAS providers can also be found out-of-band and configured into a node to connect to directly and prioritize. Nodes can add some set of these to their local configuration for persistent connection to bolster their DAS quality of service.

Such direct peering utilizes a feature supported out of the box today on all nodes and can complement (and reduce attackability and increase quality-of-service) alternative peer discovery mechanisms.

## A note on fork choice

*Fork choice spec TBD, but it will just be a replacement of `is_data_available()` call in Deneb with column sampling instead of full download. Note the `is_data_available(slot_N)` will likely do a `-1` follow distance so that you just need to check the availability of slot `N-1` for slot `N` (starting with the block proposer of `N`).*

The fork choice rule (essentially a DA filter) is *orthogonal to a given DAS design*, other than the efficiency of a particular design impacting it.
hwwhww marked this conversation as resolved.
Show resolved Hide resolved

In any DAS design, there are probably a few degrees of freedom around timing, acceptability of short-term re-orgs, etc.

For example, the fork choice rule might require validators to do successful DAS on slot N to be able to include block of slot `N` in its fork choice. That's the tightest DA filter. But trailing filters are also probably acceptable, knowing that there might be some failures/short re-orgs but that they don't hurt the aggregate security. For example, the rule could be — DAS must be completed for slot N-1 for a child block in N to be included in the fork choice.
hwwhww marked this conversation as resolved.
Show resolved Hide resolved

Such trailing techniques and their analysis will be valuable for any DAS construction. The question is — can you relax how quickly you need to do DA and in the worst case not confirm unavailable data via attestations/finality, and what impact does it have on short-term re-orgs and fast confirmation rules.

## FAQs

### Row (blob) custody

In the one-dimension construction, a node samples the peers by requesting the whole `DataColumn`. In reconstruction, a node can reconstruct all the blobs by 50% of the columns. Note that nodes can still download the row via `blob_sidecar_{subnet_id}` subnets.

The potential benefits of having row custody could include:

1. Allow for more "natural" distribution of data to consumers -- e.g., roll-ups -- but honestly, they won't know a priori which row their blob is going to be included in in the block, so they would either need to listen to all rows or download a particular row after seeing the block. The former looks just like listening to column [0, N) and the latter is req/resp instead of gossiping.
2. Help with some sort of distributed reconstruction. Those with full rows can compute extensions and seed missing samples to the network. This would either need to be able to send individual points on the gossip or would need some sort of req/resp faculty, potentially similar to an `IHAVEPOINTBITFIELD` and `IWANTSAMPLE`.

However, for simplicity, we don't assign row custody assignments to nodes in the current design.
Loading