This repository has been archived by the owner on May 6, 2024. It is now read-only.
add type ByteString for backwards compat with IPLD schema #16
Labels
good first issue
Good for newcomers
Milestone
Edelweiss type String definitionally holds valid Unicode strings only, and encodes/decodes them from IPLD strings with valid UTF8 encodings.
However, there may be pre-existing IPLD schemas that place non-UTF8 byte sequences in IPLD string objects.
By design requirement, Edelweiss must provide a way for working with pre-existing schemas.
One way of doing this without violating Edelweiss's type semantics is to introduce a new Edelweiss type, say called ByteString, which:
The text was updated successfully, but these errors were encountered: