X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Ffreenet%2Ffrostidentity.h;fp=include%2Ffreenet%2Ffrostidentity.h;h=20bc7424342f112f376b250bd2ed5e17d9934320;hb=109c20e6f822c6efa465af31249e5608469253b6;hp=0000000000000000000000000000000000000000;hpb=9ae3b1434e51788e6feb72e1415ec800d05c535a;p=fms.git diff --git a/include/freenet/frostidentity.h b/include/freenet/frostidentity.h new file mode 100644 index 0000000..20bc742 --- /dev/null +++ b/include/freenet/frostidentity.h @@ -0,0 +1,27 @@ +#ifndef _frost_identity_ +#define _frost_identity_ + +#include +#include +#include +#include + +class FrostIdentity +{ +public: + FrostIdentity(); + ~FrostIdentity(); + + const bool FromPublicKey(const std::string &publickey); + + const bool VerifyAuthor(const std::string &author); + const bool VerifySignature(const std::vector &data, const std::string &signature); + +private: + + std::string m_publickey; + rsa_key m_rsa; + +}; + +#endif // _frost_identity_