ipld / specs

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

hashmap: schema changes to root node, tuple nodes, use of 'Any' #315

Closed rvagg closed 3 years ago

rvagg commented 3 years ago

BREAKING change to the block representation in two ways:

Also (cosmetic):

rvagg commented 3 years ago

note that the first node is inline, so they look like this:

root:

{
  "hashAlg": 18,
  "bucketSize": 3,
  "hamt": [
    <bytes>,
    [ ... data ... ]
  ]
}

whereas intermediates and leaves look like:

[
  <bytes>,
  [ ... data ... ]
]