19 Key(std::string_view s);
21 std::string to_string()
const;
24 Key(std::string_view name, std::string && key)
25 : name(name), key(std::move(key)) { }
41 static SecretKey generate(std::string_view name);
44 SecretKey(std::string_view name, std::string && key)
45 :
Key(name, std::move(key)) { }
53 PublicKey(std::string_view name, std::string && key)
54 :
Key(name, std::move(key)) { }
58typedef std::map<std::string, PublicKey> PublicKeys;
64bool verifyDetached(
const std::string & data,
const std::string & sig,
65 const PublicKeys & publicKeys);
67PublicKeys getDefaultPublicKeys();
Key(std::string_view s)
Definition crypto.cc:19
std::string signDetached(std::string_view s) const
Definition crypto.cc:44