ipfs-chromium
signature_verifier.h
1 #ifndef IPFS_CHROMIUM_SIGNATURE_VERIFIER_H
2 #define IPFS_CHROMIUM_SIGNATURE_VERIFIER_H
3 
4 #include <vocab/byte_view.h>
5 
6 namespace ipfs::crypto {
12  public:
13  virtual ~SignatureVerifier() noexcept {}
16  using ByteView = ipfs::ByteView;
17  virtual bool VerifySignature(ByteView signature,
18  ByteView data,
19  ByteView key) = 0;
20 };
21 } // namespace ipfs::crypto
22 
23 #endif // IPFS_CHROMIUM_SIGNATURE_VERIFIER_H
Definition: signature_verifier.h:11
ipfs::ByteView ByteView
Definition: signature_verifier.h:16