Если есть возможность, то нужно регистрировать пользователя МС при запуске МС с указанными в конфиге bitcoin и PGP ключами.

This commit is contained in:
Преподобный Ален
2022-09-18 00:42:20 +03:00
parent 16c1abefe5
commit fe4d665e8c
7 changed files with 338 additions and 94 deletions

View File

@@ -95,6 +95,9 @@ namespace Apostol {
//--------------------------------------------------------------------------------------------------------------
typedef TList<CKeyContext> CKeys;
//--------------------------------------------------------------------------------------------------------------
enum CContextStatus { csInitialization = 0, csPreparing, csInitialized, csAuthorization, csAuthorized, csInProgress, csRunning };
//--------------------------------------------------------------------------------------------------------------
@@ -113,8 +116,8 @@ namespace Apostol {
CString m_Session {};
CString m_Secret {};
CKeyContext m_PGP {};
CKeyContext m_BTC {};
CKeys m_PGP {};
CKeys m_BTC {};
CStringList m_BTCKeys {};
CStringList m_Tokens {};
@@ -129,7 +132,12 @@ namespace Apostol {
Assign(Context);
}
explicit CContext(const CLocation &URL): CContext() {
explicit CContext(const CString &Name): CContext() {
m_Name = Name;
}
explicit CContext(const CString &Name, const CLocation &URL): CContext() {
m_Name = Name;
m_URL = URL;
}
@@ -165,6 +173,7 @@ namespace Apostol {
m_Providers.Clear();
};
CLocation& URL() { return m_URL; }
const CLocation& URL() const { return m_URL; }
CContextStatus Status() const { return m_Status; }
@@ -185,11 +194,11 @@ namespace Apostol {
CString& Secret() { return m_Secret; }
const CString& Secret() const { return m_Secret; }
CKeyContext& PGP() { return m_PGP; }
const CKeyContext& PGP() const { return m_PGP; }
CKeys& PGP() { return m_PGP; }
const CKeys& PGP() const { return m_PGP; }
CKeyContext& BTC() { return m_BTC; }
const CKeyContext& BTC() const { return m_BTC; }
CKeys& BTC() { return m_BTC; }
const CKeys& BTC() const { return m_BTC; }
CStringList& BTCKeys() { return m_BTCKeys; }
const CStringList& BTCKeys() const { return m_BTCKeys; }