mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
WalletApi: publicMultisigSignerKey method
This commit is contained in:
parent
8361d60aef
commit
8787fd899b
@ -753,6 +753,16 @@ std::string WalletImpl::publicSpendKey() const
|
|||||||
return epee::string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_account_address.m_spend_public_key);
|
return epee::string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_account_address.m_spend_public_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string WalletImpl::publicMultisigSignerKey() const
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
crypto::public_key signer = m_wallet->get_multisig_signer_public_key();
|
||||||
|
return epee::string_tools::pod_to_hex(signer);
|
||||||
|
} catch (const std::exception&) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
std::string WalletImpl::path() const
|
std::string WalletImpl::path() const
|
||||||
{
|
{
|
||||||
return m_wallet->path();
|
return m_wallet->path();
|
||||||
|
@ -90,6 +90,7 @@ public:
|
|||||||
std::string publicViewKey() const;
|
std::string publicViewKey() const;
|
||||||
std::string secretSpendKey() const;
|
std::string secretSpendKey() const;
|
||||||
std::string publicSpendKey() const;
|
std::string publicSpendKey() const;
|
||||||
|
std::string publicMultisigSignerKey() const;
|
||||||
std::string path() const;
|
std::string path() const;
|
||||||
bool store(const std::string &path);
|
bool store(const std::string &path);
|
||||||
std::string filename() const;
|
std::string filename() const;
|
||||||
|
@ -408,6 +408,12 @@ struct Wallet
|
|||||||
*/
|
*/
|
||||||
virtual std::string publicSpendKey() const = 0;
|
virtual std::string publicSpendKey() const = 0;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief publicMultisigSignerKey - returns public signer key
|
||||||
|
* \return - public multisignature signer key or empty string if wallet is not multisig
|
||||||
|
*/
|
||||||
|
virtual std::string publicMultisigSignerKey() const = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief store - stores wallet to file.
|
* \brief store - stores wallet to file.
|
||||||
* \param path - main filename to store wallet to. additionally stores address file and keys file.
|
* \param path - main filename to store wallet to. additionally stores address file and keys file.
|
||||||
|
Loading…
Reference in New Issue
Block a user