ipfs-chromium
library
include
ipfs_client
crypto
identity_hasher.h
1
#ifndef IDENTITY_HASHER_H
2
#define IDENTITY_HASHER_H
3
4
#include "hasher.h"
5
6
namespace
ipfs::crypto {
10
class
IdentityHasher
final :
public
Hasher
{
11
15
std::optional<std::vector<Byte>> hash(ByteView bytes) {
16
return
std::vector<Byte>(bytes.begin(), bytes.end());
17
}
18
};
19
}
20
21
#endif
// IDENTITY_HASHER_H
ipfs::crypto::Hasher
Definition:
hasher.h:12
ipfs::crypto::IdentityHasher
Definition:
identity_hasher.h:10
Generated by
1.9.1