This is an incompatible update to the CBOR serialization (it could be made backwards compatible).
It's inspired by #11 - an appendable serialization. The changes make the CBOR serialization usable as CBOR Sequence (RFC 8742) and thus appendable.
Furthermore it allows including only references to blocks. This might be useful for transporting a manifest of blocks without the actual block content.
We can make these changes backwards compatible by adding the previous map in the ERISContent definition:
ERISContent = [ Block / BlockWithReference / Reference / ReadCapability / BlockMap]
BlockMap = { * bstr => bstr }
I'm unsure if we should, given there are only very few (known) implementations.
This is an incompatible update to the CBOR serialization (it could be made backwards compatible).
It's inspired by https://codeberg.org/eris/eer/pulls/11 - an appendable serialization. The changes make the CBOR serialization usable as CBOR Sequence ([RFC 8742](https://www.rfc-editor.org/rfc/rfc8742.html)) and thus appendable.
Furthermore it allows including only references to blocks. This might be useful for transporting a manifest of blocks without the actual block content.
We can make these changes backwards compatible by adding the previous map in the `ERISContent` definition:
```
ERISContent = [ Block / BlockWithReference / Reference / ReadCapability / BlockMap]
BlockMap = { * bstr => bstr }
```
I'm unsure if we should, given there are only very few (known) implementations.