Compare commits

...

1 Commits

Author SHA1 Message Date
Steven Allen
c0ab85119f feat: add non-dag codec variants (json/cbor)
We now CBOR, at least, in Filecoin when we want structured data that
can't have links.
2023-04-17 11:25:22 -07:00

4
cid.go
View File

@@ -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/