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

#include <signer.hh>

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

Public Member Functions

virtual Signature signDetached (std::string_view data) const =0
virtual const PublicKey & getPublicKey ()=0

Detailed Description

An abstract signer

Derive from this class to implement a custom signature scheme.

It is only necessary to implement signature of bytes and provide a public key.

Member Function Documentation

◆ getPublicKey()

virtual const PublicKey & nix::Signer::getPublicKey ( )
pure virtual

View the public key associated with this Signer.

Implemented in nix::LocalSigner.

◆ signDetached()

virtual Signature nix::Signer::signDetached ( std::string_view data) const
pure virtual

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.

Implemented in nix::LocalSigner.


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