Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::LocalSigner Struct Reference

#include <signer.hh>

Inheritance diagram for nix::LocalSigner:
nix::Signer

Public Member Functions

 LocalSigner (SecretKey &&privateKey)
Signature signDetached (std::string_view s) const override
const PublicKey & getPublicKey () override

Detailed Description

Local signer

The private key is held in this machine's RAM

Member Function Documentation

◆ getPublicKey()

const PublicKey & nix::LocalSigner::getPublicKey ( )
overridevirtual

View the public key associated with this Signer.

Implements nix::Signer.

◆ signDetached()

Signature nix::LocalSigner::signDetached ( std::string_view data) const
overridevirtual

Sign the given data, creating a (detached) signature.

Parameters
datadata to be signed.
Returns
the detached signature, i.e. just the signature itself without a copy of the signed data.

Implements nix::Signer.


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