added Carrot secrets to API calls; bumped salvium
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
const String wallet2_api_c_h_sha256 = "bf14955d181bc1ed7d033eadc02c78d9943845e940cbc687d7cfa8b62d7348db";
|
||||
const String wallet2_api_c_cpp_sha256 = "0cf05a712e9206d29045ec948378534b7f01ba2169078f3f6cd066f0fcdd4b6e-845d46d7b3c0a856299ff9f169ce7d49093d06b8";
|
||||
const String wallet2_api_c_exp_sha256 = "0ef2b0e950f90ae3a2aaf41548364483dfa692d189e587a3964453639b05a374";
|
||||
const String wallet2_api_c_h_sha256 = "93ad4f6247f0b89c17218766c960e956047b0e8032c3db2b791842d576279330";
|
||||
const String wallet2_api_c_cpp_sha256 = "2d52bbe50a6db8c1bd68ce4be288c28319f35f48c6d093a3d67d888c8e4b3230-45404ecc719b916c217938f9e82ad352a4068d12";
|
||||
const String wallet2_api_c_exp_sha256 = "f7ab584f1271f4d533980f403597a1d9e50bced85c233ca2b17c77f4a94ed3bc";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const salviumChecksum = {
|
||||
wallet2_api_c_h_sha256: "bf14955d181bc1ed7d033eadc02c78d9943845e940cbc687d7cfa8b62d7348db",
|
||||
wallet2_api_c_cpp_sha256: "0cf05a712e9206d29045ec948378534b7f01ba2169078f3f6cd066f0fcdd4b6e-845d46d7b3c0a856299ff9f169ce7d49093d06b8",
|
||||
wallet2_api_c_exp_sha256: "0ef2b0e950f90ae3a2aaf41548364483dfa692d189e587a3964453639b05a374",
|
||||
wallet2_api_c_h_sha256: "93ad4f6247f0b89c17218766c960e956047b0e8032c3db2b791842d576279330",
|
||||
wallet2_api_c_cpp_sha256: "2d52bbe50a6db8c1bd68ce4be288c28319f35f48c6d093a3d67d888c8e4b3230-45404ecc719b916c217938f9e82ad352a4068d12",
|
||||
wallet2_api_c_exp_sha256: "f7ab584f1271f4d533980f403597a1d9e50bced85c233ca2b17c77f4a94ed3bc",
|
||||
}
|
||||
|
||||
@@ -146,6 +146,10 @@ _SALVIUM_Wallet_publicViewKey
|
||||
_SALVIUM_Wallet_secretSpendKey
|
||||
_SALVIUM_Wallet_publicSpendKey
|
||||
_SALVIUM_Wallet_publicMultisigSignerKey
|
||||
_SALVIUM_Wallet_secretViewBalance
|
||||
_SALVIUM_Wallet_secretProveSpend
|
||||
_SALVIUM_Wallet_secretGenerateAddress
|
||||
_SALVIUM_Wallet_secretGenerateImage
|
||||
_SALVIUM_Wallet_stop
|
||||
_SALVIUM_Wallet_store
|
||||
_SALVIUM_Wallet_filename
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef MONEROC_CHECKSUMS
|
||||
#define MONEROC_CHECKSUMS
|
||||
const char * SALVIUM_wallet2_api_c_h_sha256 = "bf14955d181bc1ed7d033eadc02c78d9943845e940cbc687d7cfa8b62d7348db";
|
||||
const char * SALVIUM_wallet2_api_c_cpp_sha256 = "0cf05a712e9206d29045ec948378534b7f01ba2169078f3f6cd066f0fcdd4b6e-845d46d7b3c0a856299ff9f169ce7d49093d06b8";
|
||||
const char * SALVIUM_wallet2_api_c_exp_sha256 = "0ef2b0e950f90ae3a2aaf41548364483dfa692d189e587a3964453639b05a374";
|
||||
const char * SALVIUM_wallet2_api_c_h_sha256 = "93ad4f6247f0b89c17218766c960e956047b0e8032c3db2b791842d576279330";
|
||||
const char * SALVIUM_wallet2_api_c_cpp_sha256 = "2d52bbe50a6db8c1bd68ce4be288c28319f35f48c6d093a3d67d888c8e4b3230-45404ecc719b916c217938f9e82ad352a4068d12";
|
||||
const char * SALVIUM_wallet2_api_c_exp_sha256 = "f7ab584f1271f4d533980f403597a1d9e50bced85c233ca2b17c77f4a94ed3bc";
|
||||
#endif
|
||||
|
||||
@@ -1263,6 +1263,51 @@ const char* SALVIUM_Wallet_publicMultisigSignerKey(void* wallet_ptr) {
|
||||
DEBUG_END()
|
||||
}
|
||||
|
||||
const char* SALVIUM_Wallet_secretViewBalance(void* wallet_ptr) {
|
||||
DEBUG_START()
|
||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||
std::string str = wallet->secretViewBalance();
|
||||
const std::string::size_type size = str.size();
|
||||
char *buffer = new char[size + 1]; //we need extra char for NUL
|
||||
memcpy(buffer, str.c_str(), size + 1);
|
||||
return buffer;
|
||||
DEBUG_END()
|
||||
}
|
||||
|
||||
const char* SALVIUM_Wallet_secretProveSpend(void* wallet_ptr) {
|
||||
DEBUG_START()
|
||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||
std::string str = wallet->secretProveSpend();
|
||||
const std::string::size_type size = str.size();
|
||||
char *buffer = new char[size + 1]; //we need extra char for NUL
|
||||
memcpy(buffer, str.c_str(), size + 1);
|
||||
return buffer;
|
||||
DEBUG_END()
|
||||
}
|
||||
|
||||
const char* SALVIUM_Wallet_secretGenerateAddress(void* wallet_ptr) {
|
||||
DEBUG_START()
|
||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||
std::string str = wallet->secretGenerateAddress();
|
||||
const std::string::size_type size = str.size();
|
||||
char *buffer = new char[size + 1]; //we need extra char for NUL
|
||||
memcpy(buffer, str.c_str(), size + 1);
|
||||
return buffer;
|
||||
DEBUG_END()
|
||||
}
|
||||
|
||||
const char* SALVIUM_Wallet_secretGenerateImage(void* wallet_ptr) {
|
||||
DEBUG_START()
|
||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||
std::string str = wallet->secretGenerateImage();
|
||||
const std::string::size_type size = str.size();
|
||||
char *buffer = new char[size + 1]; //we need extra char for NUL
|
||||
memcpy(buffer, str.c_str(), size + 1);
|
||||
return buffer;
|
||||
DEBUG_END()
|
||||
}
|
||||
|
||||
|
||||
void SALVIUM_Wallet_stop(void* wallet_ptr) {
|
||||
DEBUG_START()
|
||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||
|
||||
@@ -555,6 +555,14 @@ extern ADDAPI const char* SALVIUM_Wallet_secretSpendKey(void* wallet_ptr);
|
||||
extern ADDAPI const char* SALVIUM_Wallet_publicSpendKey(void* wallet_ptr);
|
||||
// virtual std::string publicMultisigSignerKey() const = 0;
|
||||
extern ADDAPI const char* SALVIUM_Wallet_publicMultisigSignerKey(void* wallet_ptr);
|
||||
// virtual std::string secretViewBalance() const = 0;
|
||||
extern ADDAPI const char* SALVIUM_Wallet_secretViewBalance(void* wallet_ptr);
|
||||
// virtual std::string secretProveSpend() const = 0;
|
||||
extern ADDAPI const char* SALVIUM_Wallet_secretProveSpend(void* wallet_ptr);
|
||||
// virtual std::string secretGenerateAddress() const = 0;
|
||||
extern ADDAPI const char* SALVIUM_Wallet_secretGenerateAddress(void* wallet_ptr);
|
||||
// virtual std::string secretGenerateImage() const = 0;
|
||||
extern ADDAPI const char* SALVIUM_Wallet_secretGenerateImage(void* wallet_ptr);
|
||||
// virtual void stop() = 0;
|
||||
extern ADDAPI void SALVIUM_Wallet_stop(void* wallet_ptr);
|
||||
// virtual bool store(const std::string &path) = 0;
|
||||
|
||||
Reference in New Issue
Block a user