6 #ifndef IROHA_MULTIHASH_HPP 7 #define IROHA_MULTIHASH_HPP 48 template <
typename Container>
50 using NumberType = std::underlying_type_t<Type>;
51 encodeVarInt(static_cast<NumberType>(multihash_type), buffer);
63 template <
typename OutputContainer>
66 OutputContainer &output) {
67 std::basic_string<std::byte> prefix_bin;
81 #endif // IROHA_MULTIHASH_HPP
Type
https://github.com/multiformats/js-multihash/blob/master/src/constants.js
Definition: type.hpp:14
Definition: result_fwd.hpp:27
void encodeHexAppend(Type multihash_type, shared_model::interface::types::ByteRange input, OutputContainer &output)
Definition: multihash.hpp:64
shared_model::interface::types::ByteRange data
Definition: multihash.hpp:27
void bytestringToHexstringAppend(shared_model::interface::types::ByteRange input, OutputContainer &destination)
Definition: hexutils.hpp:36
Type type
Definition: multihash.hpp:28
Definition: block_query.hpp:15
Definition: multihash.hpp:26
void encodeVarIntType(Type multihash_type, Container &buffer)
Definition: multihash.hpp:49
std::basic_string_view< std::byte > ByteRange
Definition: byte_range.hpp:16
void encodeVarInt(NumberType number, Container &buffer)
Definition: varint.hpp:77
iroha::expected::Result< Multihash, const char * > createFromBuffer(ByteRange buffer)
Definition: multihash.cpp:13