Merge pull request #3599

8787fd8 WalletApi: publicMultisigSignerKey method (naughtyfox)
release-v0.5.1
luigi1111 6 years ago
commit 6884db7b31
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -778,6 +778,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);
}
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
{
return m_wallet->path();

@ -91,6 +91,7 @@ public:
std::string publicViewKey() const;
std::string secretSpendKey() const;
std::string publicSpendKey() const;
std::string publicMultisigSignerKey() const;
std::string path() const;
bool store(const std::string &path);
std::string filename() const;

@ -443,6 +443,12 @@ struct Wallet
*/
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.
* \param path - main filename to store wallet to. additionally stores address file and keys file.

Loading…
Cancel
Save