4 #include "multi_hash.h"
5 #include "multicodec.h"
7 #include <vocab/byte_view.h>
10 #include <string_view>
17 MultiCodec codec_ = MultiCodec::INVALID;
23 explicit Cid(std::string_view);
24 explicit Cid(ByteView);
25 bool ReadStart(ByteView&);
28 MultiCodec codec()
const {
return codec_; }
29 MultiHash const& multi_hash()
const {
return hash_; }
30 ByteView hash()
const;
31 HashType hash_type()
const;
33 std::string to_string()
const;
34 bool operator==(
Cid const&)
const =
default;
36 constexpr
static std::size_t MinSerializedLength =
Definition: multi_hash.h:17