ipfs-chromium
library
include
ipfs_client
crypto
hasher.h
1
#ifndef IPFS_HASHER_H_
2
#define IPFS_HASHER_H_
3
4
#include <vocab/byte_view.h>
5
6
#include <optional>
7
#include <vector>
8
9
namespace
ipfs::crypto {
12
class
Hasher
{
13
public
:
14
virtual
~
Hasher
() noexcept {}
15
16
virtual
std::optional<std::vector<Byte>> hash(ByteView) = 0;
17
};
18
}
// namespace ipfs::crypto
19
20
#endif
// IPFS_HASHER_H_
ipfs::crypto::Hasher
Definition:
hasher.h:12
Generated by
1.9.1