ipfs-shipyard / git-remote-ipld

MIT License
147 stars 33 forks source link

Wrap big object data #12

Open magik6k opened 6 years ago

magik6k commented 6 years ago

Currently big objects are added to directly ipfs with the header: https://github.com/magik6k/git-remote-ipld/blob/master/cmd/git-remote-ipld/ipld.go#L242

We could add just raw data, and then wrap it with an object with [blob/tree/*] [size]\0 and a link to the raw data.

This would allow to deduplicate the data with other ipfs objects