ipfs-chromium
Loading...
Searching...
No Matches
identity_hasher.h
1#ifndef IDENTITY_HASHER_H
2#define IDENTITY_HASHER_H
3
4#include "hasher.h"
5
6namespace ipfs::crypto {
10class 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
Definition hasher.h:12
Definition identity_hasher.h:10