Skip to content

Production hash selection (SHA2-512 and beyond) #2344

Not planned

Description

@bplatz

Follow-up from #2280. SHA2-512 content IDs are a Rust builder option only. There is no server flag, and erasure and clusters refuse them.

Production use needs:

  • a server setting;
  • for clusters, persisted, membership-enforced reader capabilities before any member writes with another hash.

Poseidon, and erasing commits that are not SHA2-256, are separate future work.

Activity

  1. added
    P3
    triage:needs-decision
    area:storage
    on Nov 11, 2026
  2. added this to the 5.0.0 milestone on Nov 12, 2026
  3. bplatz commented on Nov 23, 2026

    @bplatz
    ContributorAuthor

    Not planned for v5. Content IDs already record their hash: they're CIDv1, so the multihash code names the algorithm in both the string and binary forms, and every 5.x build reads SHA2-256 and SHA2-512. A future reader can tell which hash was used where, and adding another hash later doesn't need a format change.

    The SHA2-512 builder option (FlureeBuilder::with_content_hash) stays as plumbing. A server setting and cluster reader capabilities are only needed once there's demand for a second hash in production; reopen then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:storagetriage:needs-decision

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions