![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <signer.hh>
Public Member Functions | |
| virtual Signature | signDetached (std::string_view data) const =0 |
| virtual const PublicKey & | getPublicKey ()=0 |
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.
|
pure virtual |
View the public key associated with this Signer.
Implemented in nix::LocalSigner.
|
pure virtual |
Sign the given data, creating a (detached) signature.
| data | data to be signed. |
Implemented in nix::LocalSigner.