We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 099132d + af1b55e commit 4dab46fCopy full SHA for 4dab46f
src/main/java/io/ipfs/cid/Cid.java
@@ -20,6 +20,7 @@ public CidEncodingException(String message, Throwable cause) {
20
}
21
22
public enum Codec {
23
+ Cbor(0x51),
24
Raw(0x55),
25
DagProtobuf(0x70),
26
DagCbor(0x71),
@@ -43,6 +44,7 @@ public enum Codec {
43
44
for (Codec c: Codec.values())
45
lookup.put(c.type, c);
46
// https://github.com/multiformats/multicodec/blob/master/table.csv
47
+ nameLookup.put("cbor", Cbor);
48
nameLookup.put("raw", Raw);
49
nameLookup.put("dag-pb", DagProtobuf);
50
nameLookup.put("dag-cbor", DagCbor);
0 commit comments