ipfs-chromium
Loading...
Searching...
No Matches
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
9namespace ipfs::crypto {
12class Hasher {
13 public:
14 virtual ~Hasher() noexcept {}
15
19 virtual std::optional<std::vector<Byte>> hash(ByteView bytes) = 0;
20};
21} // namespace ipfs::crypto
22
23#endif // IPFS_HASHER_H_
Definition hasher.h:12
virtual std::optional< std::vector< Byte > > hash(ByteView bytes)=0