11#include "../src/storage.h"
12#include "../src/features.h"
52 operator const uint8_t*();
78 void set(const polyseed_data* data);
141 void wipePolyseedData() noexcept;
147 void cleanupPolyseedDataSession() noexcept;
157 void startPolyseedDataSession(
bool write);
166 void endPolyseedDataSession(
bool write);
169 mutable
bool m_pd_session = false;
172 mutable
bool m_pd_session_rw = false;
178 std::unique_ptr<polyseed_data> m_data = std::make_unique<polyseed_data>();
essentialy wraps crypto::secret_key
Definition key-store.hpp:18
Extends KeyStore with specific functionality for polyseed-based cryptographic operations.
Definition polyseed-key-store.hpp:19
void discardPolyseedDataSession()
wipe secure the pointers secret
Definition polyseed-key-store.cpp:51
bool isEncypted() const noexcept
check if polyseed_data secret in encrypted
Definition polyseed-key-store.cpp:7
void set(const polyseed_data *data)
Internal method to set key data from polyseed_data->secret.
Definition polyseed-key-store.cpp:21
polyseed_data * getPolyseedDataSession()
Provide a polyseed_data struct pointer to work On.
Definition polyseed-key-store.cpp:39
void transfer(polyseed_data *data)
Internal method to set key data from polyseed_data->secret, and wipes polyseed_data->secret.
Definition polyseed-key-store.cpp:28
const polyseed_data * getPolyseedDataReadOnlySession()
Provide a polyseed_data struct const pointer to work with.
Definition polyseed-key-store.cpp:33
void commitPolyseedDataSession()
update PolyseedKeyStore data from the pointers secret and wipe secure
Definition polyseed-key-store.cpp:45
uint8_t * unsafe_mutable_bytes()
Get mutable byte access.
Definition polyseed-key-store.cpp:16
PolyseedKeyStore(const std::array< uint8_t, 32 > &key) noexcept
Construct a PolyseedKeyStore from an existing key.
PolyseedKeyStore() noexcept
Default constructor for an empty seed key store.
Definition polyseed-key-store.cpp:85
Represents a Polyseed type.
Definition ots.hpp:706
decoupling of crypto/crypto.h of the monero source
The library exists complete only in this namespace.
Definition account.hpp:39