ipfs / go-cid

Content ID v1 implemented in go
MIT License
157 stars 47 forks source link

Support for reading concatenated CIDs #93

Closed anorth closed 5 years ago

anorth commented 5 years ago

CIDs carry a prefix including the length of the multihash payload, so it should be possible to read concatenated CIDs from a stream or buffer without the need for additional metadata or delimiters. Unfortunately the methods available don't expose quite enough information to achieve this.

Some ways this could be fixed: