feather/src/dialog/VerifyProofDialog.h

46 lines
1.1 KiB
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2022-02-10 10:26:41 +00:00
// SPDX-FileCopyrightText: 2020-2022 The Monero Project
#ifndef FEATHER_VERIFYPROOFDIALOG_H
#define FEATHER_VERIFYPROOFDIALOG_H
#include <QDialog>
2021-03-08 20:03:20 +00:00
#include <QIcon>
2021-06-27 14:33:18 +00:00
2021-10-22 17:19:56 +00:00
#include "components.h"
#include "libwalletqt/Wallet.h"
namespace Ui {
class VerifyProofDialog;
}
2021-10-22 17:19:56 +00:00
class VerifyProofDialog : public WindowModalDialog
{
Q_OBJECT
public:
explicit VerifyProofDialog(Wallet *wallet, QWidget *parent = nullptr);
~VerifyProofDialog() override;
private slots:
void checkProof();
private:
void checkTxProof(const QString &txId, const QString &address, const QString &message, const QString &signature);
2021-03-08 20:03:20 +00:00
void checkSpendProof(const QString &txId, const QString &message, const QString &signature);
void checkOutProof();
void checkInProof();
2021-03-08 20:03:20 +00:00
void checkFormattedProof();
void proofStatus(bool success, const QString &message);
void onTxProofVerified(TxProofResult result);
void onSpendProofVerified(QPair<bool, bool> result);
2021-03-08 20:03:20 +00:00
2021-06-27 12:13:05 +00:00
QScopedPointer<Ui::VerifyProofDialog> ui;
Wallet *m_wallet;
2021-05-10 13:20:33 +00:00
QPixmap m_success;
QPixmap m_failure;
};
#endif //FEATHER_VERIFYPROOFDIALOG_H