Module forest_filecoin::lotus_json::ipld

source ·
Expand description

§Differences between serializers

The serializer created here uses multihash and libipld-json uses plain base64. That means one has an extra m in front of all the encoded byte values, using our serializer.

For example:

this: { "/": { "bytes": "mVGhlIHF1aQ" } }

libipld-json: { "/": { "bytes": "VGhlIHF1aQ" } }

Since Lotus is also using multihash-base64 and we’re trying to be compatible, we cannot switch to libipld-json.

§Tech debt

  • The real way to do this is to implement libipld::codec bits appropriately, or embrace using our own struct.

Structs§

Constants§

Functions§