airgapped signing with UR

This commit is contained in:
tobtoht
2023-12-04 16:06:33 +01:00
parent 33035a21a8
commit 51b0fcc19d
80 changed files with 3943 additions and 624 deletions
+33
View File
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#include "AddressCheckerIndexDialog.h"
#include "ui_AddressCheckerIndexDialog.h"
#include "utils/Utils.h"
#include "components.h"
AddressCheckerIndexDialog::AddressCheckerIndexDialog(Wallet *wallet, QWidget *parent)
: WindowModalDialog(parent)
, ui(new Ui::AddressCheckerIndexDialog)
, m_wallet(wallet)
{
ui->setupUi(this);
connect(ui->btn_showAddress, &QPushButton::clicked, [this] {
this->showAddress(ui->line_index->text().toUInt());
});
auto indexValidator = new U32Validator(this);
ui->line_index->setValidator(indexValidator);
ui->line_index->setText("0");
this->showAddress(0);
this->adjustSize();
}
void AddressCheckerIndexDialog::showAddress(uint32_t index) {
ui->address->setText(m_wallet->address(m_wallet->currentSubaddressAccount(), index));
}
AddressCheckerIndexDialog::~AddressCheckerIndexDialog() = default;