feather/src/dialog/VerifyProofDialog.h
2021-06-27 16:33:18 +02:00

42 lines
1,015 B
C++

// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020-2021, The Monero Project.
#ifndef FEATHER_VERIFYPROOFDIALOG_H
#define FEATHER_VERIFYPROOFDIALOG_H
#include <QDialog>
#include <QIcon>
#include "libwalletqt/Wallet.h"
namespace Ui {
class VerifyProofDialog;
}
class VerifyProofDialog : public QDialog
{
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);
void checkSpendProof(const QString &txId, const QString &message, const QString &signature);
void checkOutProof();
void checkInProof();
void checkFormattedProof();
void proofStatus(bool success, const QString &message);
QScopedPointer<Ui::VerifyProofDialog> ui;
Wallet *m_wallet;
QPixmap m_success;
QPixmap m_failure;
};
#endif //FEATHER_VERIFYPROOFDIALOG_H