#include "signature/signer.hh" #include "error.hh" #include namespace nix { LocalSigner::LocalSigner(SecretKey && privateKey) : privateKey(privateKey) , publicKey(privateKey.toPublicKey()) { } std::string LocalSigner::signDetached(std::string_view s) const { return privateKey.signDetached(s); } const PublicKey & LocalSigner::getPublicKey() { return publicKey; } }