Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
local-keys.hh File Reference
#include "nix/util/json-impls.hh"
#include <map>

Go to the source code of this file.

Classes

struct  nix::Signature
struct  nix::Key
struct  nix::SecretKey
struct  nix::PublicKey

Typedefs

typedef std::map< std::string, PublicKey > nix::PublicKeys

Functions

bool nix::verifyDetached (std::string_view data, const Signature &sig, const PublicKeys &publicKeys)

Typedef Documentation

◆ PublicKeys

typedef std::map<std::string, PublicKey> nix::PublicKeys

Map from key names to public keys

Function Documentation

◆ verifyDetached()

bool nix::verifyDetached ( std::string_view data,
const Signature & sig,
const PublicKeys & publicKeys )
Returns
true iff ‘sig’ is a correct signature over ‘data’ using one of the given public keys.