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
19
virtual
std::optional<std::vector<Byte>>
hash
(ByteView bytes) = 0;
20
};
21
}
// namespace ipfs::crypto
22
23
#endif
// IPFS_HASHER_H_
ipfs::crypto::Hasher
Definition:
hasher.h:12
ipfs::crypto::Hasher::hash
virtual std::optional< std::vector< Byte > > hash(ByteView bytes)=0
Generated by
1.9.1