Skip to content

Commit

Permalink
feat: add non-dag codec variants (json/cbor)
Browse files Browse the repository at this point in the history
We now CBOR, at least, in Filecoin when we want structured data that
can't have links.
  • Loading branch information
Stebalien committed Apr 17, 2023
1 parent 829c826 commit c0ab851
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cid.go
Expand Up @@ -81,6 +81,10 @@ const (
DagJSON = 0x0129 // https://ipld.io/docs/codecs/known/dag-json/
Libp2pKey = 0x72 // https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md#peer-ids

// Non "dag" variants of common codecs
CBOR = 0x51 // Regular (arbitrary) CBOR.
JSON = 0x0200 // Regular (arbitrary) JSON.

// other
GitRaw = 0x78
DagJOSE = 0x85 // https://ipld.io/specs/codecs/dag-jose/spec/
Expand Down

0 comments on commit c0ab851

Please sign in to comment.