Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Key Struct Reference
Inheritance diagram for nix::Key:
nix::PublicKey nix::SecretKey

Public Member Functions

std::string to_string () const

Public Attributes

std::string name
std::string key

Protected Member Functions

 Key (std::string_view s, bool sensitiveValue)
 Key (std::string_view name, std::string &&key)

Constructor & Destructor Documentation

◆ Key()

nix::Key::Key ( std::string_view s,
bool sensitiveValue )
protected

Construct Key from a string in the format ‘<name>:<key-in-base64>’.

Parameters
sensitiveValueAvoid displaying the raw Base64 in error messages to avoid leaking private keys.

The documentation for this struct was generated from the following files:
  • libutil/include/nix/util/signature/local-keys.hh
  • libutil/signature/local-keys.cc