diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-05-02 17:29:35 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-05-03 11:14:57 +0200 |
| commit | f31b27d3fd02c4d87c4cfdea87ae84685d04f430 (patch) | |
| tree | 0bc0c29f5694b20a790caf536d5a2274e0a56c18 /src | |
| parent | 4ca35af11ac8b41192bdb373216513e524ee4cb0 (diff) | |
| download | monzero-gui-f31b27d3fd02c4d87c4cfdea87ae84685d04f430.tar.gz monzero-gui-f31b27d3fd02c4d87c4cfdea87ae84685d04f430.tar.xz monzero-gui-f31b27d3fd02c4d87c4cfdea87ae84685d04f430.zip | |
add wallet view/spend keys to seed dialog
requires #2012
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/Wallet.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index 9477f896..1224b24d 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -41,6 +41,10 @@ class Wallet : public QObject Q_PROPERTY(AddressBookModel * addressBookModel READ addressBookModel) Q_PROPERTY(AddressBook * addressBook READ addressBook) Q_PROPERTY(bool viewOnly READ viewOnly) + Q_PROPERTY(QString secretViewKey READ getSecretViewKey) + Q_PROPERTY(QString publicViewKey READ getPublicViewKey) + Q_PROPERTY(QString secretSpendKey READ getSecretSpendKey) + Q_PROPERTY(QString publicSpendKey READ getPublicSpendKey) public: @@ -231,6 +235,12 @@ public: // check if fork rules should be used Q_INVOKABLE bool useForkRules(quint8 version, quint64 earlyBlocks = 0) const; + //! Get wallet keys + QString getSecretViewKey() const {return QString::fromStdString(m_walletImpl->secretViewKey());} + QString getPublicViewKey() const {return QString::fromStdString(m_walletImpl->publicViewKey());} + QString getSecretSpendKey() const {return QString::fromStdString(m_walletImpl->secretSpendKey());} + QString getPublicSpendKey() const {return QString::fromStdString(m_walletImpl->publicSpendKey());} + // TODO: setListenter() when it implemented in API signals: // emitted on every event happened with wallet |
