ipfs-chromium
Loading...
Searching...
No Matches
multicodec.h
1#ifndef IPFS_MUTLICODEC_H_
2#define IPFS_MUTLICODEC_H_
3
4#include <limits>
5#include <string_view>
6
7#include <cstdint>
8
9namespace ipfs {
10enum class MultiCodec : std::uint32_t {
11 INVALID = 0xFFFF,
12 IDENTITY = 0x00,
13 RAW = 0x55,
14 DAG_PB = 0x70,
15 DAG_CBOR = 0x71,
16 LIBP2P_KEY = 0x72,
17 DAG_JSON = 0x0129,
18};
19MultiCodec Validate(MultiCodec);
20std::string_view GetName(MultiCodec);
21} // namespace ipfs
22
23#endif // IPFS_MUTLICODEC_H_