42#ifndef _DWMCREDENCEKEYSTASH_HH_
43#define _DWMCREDENCEKEYSTASH_HH_
62 KeyStash(
const std::string & dirName =
"~/.credence");
96 bool MakeStashDir()
const;
Dwm::Credence::Ed25519KeyPair class declaration.
Encapsulates an Ed25519 key pair.
Definition DwmCredenceEd25519KeyPair.hh:64
Encapsulates storage of an Ed25519KeyPair in a filesystem.
Definition DwmCredenceKeyStash.hh:56
bool Get(Ed25519KeyPair &edkp) const
Fetches the keypair from the key stash and stores it in edkp.
bool Save(const Ed25519KeyPair &edkp) const
Saves the given keypair.
const std::string & DirName() const
Returns the directory where the keys are stored.
KeyStash(const std::string &dirName="~/.credence")
Construct from the given dirName, which is the directory where the keys will be stored.
bool IsValid() const
Returns true if the key stash is valid, i.e.