ipld / specs

Content-addressed, authenticated, immutable data structures
Other
592 stars 108 forks source link

hashmap: remove support for inlined child nodes & resolve kinded union problem #322

Closed rvagg closed 3 years ago

rvagg commented 3 years ago

The original design had the ability to inline child nodes, so you could end up with a partial or complete inlined structure in a single block. But I have no code that actually does this and in practice I'm not considerably more sceptical that there is even a use-case for this. If you wanted to inline data that was stored in a HAMT into a single block, you could just use a data model map and save a lot of space and lot of complexity.

This resolves the broken kinded union that was introduced in the recent change to this spec in #315 where it had a map for a tuple struct but also already had a list, so it just didn't work anyway.