You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-car/v2 offers an API to replace root CIDs in the inner CARv1 as long as the replacement does not change the size of inner CARv1 header. This is to provide a cheap way to swap root CIDs without having to shift the inner CARv1 sections since they can be quite large.
CARv2 supports optional padding before the data payload. That function can accept replacement roots of different size as long as they fit within the Toal size of padding + current inner CARv1 header.
For example, if the replacements are smaller than existing it would expand the padding. Similarly, when the replacements are larger it would take off the padding needed to fit the new inner CARv1 header. It would then update the CARv2 header with a corrected data offset.
go-car/v2 offers an API to replace root CIDs in the inner CARv1 as long as the replacement does not change the size of inner CARv1 header. This is to provide a cheap way to swap root CIDs without having to shift the inner CARv1 sections since they can be quite large.
CARv2 supports optional padding before the data payload. That function can accept replacement roots of different size as long as they fit within the Toal size of padding + current inner CARv1 header.
For example, if the replacements are smaller than existing it would expand the padding. Similarly, when the replacements are larger it would take off the padding needed to fit the new inner CARv1 header. It would then update the CARv2 header with a corrected data offset.
Relates to:
The text was updated successfully, but these errors were encountered: