ipfs / ipfs/go-ipld-cbor

"Nil" CIDs

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
37
Forks
26
PR merge metrics
No merged PRs in 30d

Description

We're now using `cid.Cid{}` (empty) as the "nil" CID. Unfortunately, refmt won't encode this to null. With https://github.com/polydawn/refmt/pull/36, we can at least *omit* empty CIDs however, we still need to be able to do something intelligent with empty/nil CIDs.

* We could just panic or return an error but, IMO, we should do something a bit smarter.
* We can also inject a token "mapper" to transform the token stream. It may be worth adding this feature to atlas entries?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.