Skip to content

Deterministic namespace ID based on blob content  #1377

@rootulp

Description

@rootulp

Context

@nashqueue shared an interesting idea over Slack that I wanted to preserve for future consideration

Imagine if we enforce a specific rule. Every Namespace will only have one blob. The PFB commitment of this blob equals to the namespace of this blob. Now we can find any blob by commitment and not by index or understanding the PFB state logic. We have no woods attack on a namespace. The PFB does not need to include the index anymore.

My understanding of this proposal is that blobs would be content addressable. In other words, a user would not submit a namespace along with a PFB and instead the blob content of the PFB would determine the namespace.

In order for this proposal to be considered, the namespace number of bytes may need to increase from 8 => 32 to avoid hash collisions. Additionally, since rollups can no longer rely on a consistent namespace ID, they may need to provide their own block sync/header gossip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussioninherently unactionable issue for the sole purpose of discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions