ipld / js-codec-interface

IPLD Codec Interface
2 stars 1 forks source link

Reader errors on dag-pb #3

Open carsonfarmer opened 4 years ago

carsonfarmer commented 4 years ago

This is because dag-pb stores links under Links key, which the spec in this repo doesn't check for. See https://github.com/ipld/js-ipld-dag-pb/blob/master/src/resolver.js#L28 for how this is handled in the dag-pb resolver. That snippet could be added to Reader.get here, or perhaps there is some way to 'promote' Links use nested structures as well? Willing to provide tests and a possible PR if this is desirable?

autonome commented 4 years ago

@mikeal Can you triage this?