go-car icon indicating copy to clipboard operation
go-car copied to clipboard

Minimum `DataSize` value when validating CARv2 header

Open masih opened this issue 2 years ago • 4 comments

Question: What should the minimum accepted DataSize value be in a CARv2 header?

  • Could it be zero?
  • or should it be the minimum valid size for a CARv1 which is header plus at least one root CID that comes to 26 bytes.

See discussion:

  • https://github.com/ipld/go-car/pull/309#discussion_r910563620_

masih avatar Jun 30 '22 09:06 masih