hashberg-io / dag-cbor

Python implementation of the DAG-CBOR codec for IPLD.
https://dag-cbor.readthedocs.io
MIT License
13 stars 6 forks source link

encode / decode Links with identity Multibase prefix #2

Closed d70-t closed 2 years ago

d70-t commented 2 years ago

According to the spec, CIDs MUST be encoded including the identity Multibase prefix (0x00).

This change adds the Multibase prefix in encoding (in order to follow the specs) and requires the Multibase prefix in decoding (in order not to become ambiguous and be in line with the spec).

fixes #1