Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
signverifymessagedialog.cpp
Go to the documentation of this file.
55 GUIUtil::setFont({ui->signatureOut_SM, ui->signatureIn_VM}, GUIUtil::FontWeight::Normal, 11, true);
141 /* Clear old signature to ensure users don't get confused on error with an old signature displayed */
146 ui->statusLabel_SM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
147 ui->statusLabel_SM->setText(tr("The entered address is invalid.") + QString(" ") + tr("Please check the address and try again."));
153 ui->statusLabel_SM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
154 ui->statusLabel_SM->setText(tr("The entered address does not refer to a key.") + QString(" ") + tr("Please check the address and try again."));
161 ui->statusLabel_SM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
169 ui->statusLabel_SM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
181 ui->statusLabel_SM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
182 ui->statusLabel_SM->setText(QString("<nobr>") + tr("Message signing failed.") + QString("</nobr>"));
186 ui->statusLabel_SM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_SUCCESS));
189 ui->signatureOut_SM->setText(QString::fromStdString(EncodeBase64(vchSig.data(), vchSig.size())));
224 ui->statusLabel_VM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
225 ui->statusLabel_VM->setText(tr("The entered address is invalid.") + QString(" ") + tr("Please check the address and try again."));
230 ui->statusLabel_VM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
231 ui->statusLabel_VM->setText(tr("The entered address does not refer to a key.") + QString(" ") + tr("Please check the address and try again."));
236 std::vector<unsigned char> vchSig = DecodeBase64(ui->signatureIn_VM->text().toStdString().c_str(), &fInvalid);
241 ui->statusLabel_VM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
242 ui->statusLabel_VM->setText(tr("The signature could not be decoded.") + QString(" ") + tr("Please check the signature and try again."));
254 ui->statusLabel_VM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
255 ui->statusLabel_VM->setText(tr("The signature did not match the message digest.") + QString(" ") + tr("Please check the signature and try again."));
260 ui->statusLabel_VM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
261 ui->statusLabel_VM->setText(QString("<nobr>") + tr("Message verification failed.") + QString("</nobr>"));
265 ui->statusLabel_VM->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_SUCCESS));
void on_addressBookButton_SM_clicked()
Definition: signverifymessagedialog.cpp:118
void showTab_SM(bool fShow)
Definition: signverifymessagedialog.cpp:86
void on_copySignatureButton_SM_clicked()
Definition: signverifymessagedialog.cpp:192
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
Definition: standard.h:80
bool eventFilter(QObject *object, QEvent *event)
Definition: signverifymessagedialog.cpp:279
std::vector< unsigned char > DecodeBase64(const char *p, bool *pfInvalid)
Definition: utilstrencodings.cpp:177
void setFont(const std::vector< QWidget *> &vecWidgets, FontWeight weight, int nPointSize, bool fItalic)
Workaround to set correct font styles in all themes since there is a bug in macOS which leads to issu...
Definition: guiutil.cpp:1552
void setAddress_VM(const QString &address)
Definition: signverifymessagedialog.cpp:80
void on_addressBookButton_VM_clicked()
Definition: signverifymessagedialog.cpp:207
Definition: addressbookpage.h:12
Definition: addressbookpage.h:31
QButtonGroup pageButtons
Definition: signverifymessagedialog.h:38
bool IsValidDestination(const CTxDestination &dest)
Check whether a CTxDestination is a CNoDestination.
Definition: standard.cpp:281
void on_pasteButton_SM_clicked()
Definition: signverifymessagedialog.cpp:131
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent, bool fAllowURI)
Definition: guiutil.cpp:286
~SignVerifyMessageDialog()
Definition: signverifymessagedialog.cpp:64
AddressTableModel * getAddressTableModel()
Definition: walletmodel.cpp:464
CKeyID GetID() const
Get the KeyID of this public key (hash of its serialization)
Definition: pubkey.h:149
bool SignCompact(const uint256 &hash, std::vector< unsigned char > &vchSig) const
Create a compact signature (65 bytes), which allows reconstructing the used public key...
Definition: key.cpp:221
void on_signMessageButton_SM_clicked()
Definition: signverifymessagedialog.cpp:136
void updateFonts()
Update the font of all widgets where a custom font has been set with GUIUtil::setFont.
Definition: guiutil.cpp:1563
bool getPrivKey(const CKeyID &address, CKey &vchPrivKeyOut) const
Definition: walletmodel.cpp:709
bool RecoverCompact(const uint256 &hash, const std::vector< unsigned char > &vchSig)
Recover a public key from a compact signature.
Definition: pubkey.cpp:186
void on_verifyMessageButton_VM_clicked()
Definition: signverifymessagedialog.cpp:220
void on_clearButton_VM_clicked()
Definition: signverifymessagedialog.cpp:269
Widget that shows a list of sending or receiving addresses.
Definition: addressbookpage.h:25
void on_clearButton_SM_clicked()
Definition: signverifymessagedialog.cpp:197
void disableMacFocusRect(const QWidget *w)
Disable the OS default focus rect for macOS because we have custom focus rects set in the css files...
Definition: guiutil.cpp:1789
UnlockContext requestUnlock(bool fForMixingOnly=false)
Definition: walletmodel.cpp:640
QString getThemedStyleQString(ThemedStyle style)
Helper to get css style strings which are injected into rich text through qt.
Definition: guiutil.cpp:210
SignVerifyMessageDialog(QWidget *parent)
Definition: signverifymessagedialog.cpp:23
void setIcon(QAbstractButton *button, const QString &strIcon, const ThemedColor color, const ThemedColor colorAlternative, const QSize &size)
Helper to set an icon for a button with the given color (replaces black) and colorAlternative (replac...
Definition: guiutil.cpp:247
Definition: walletmodel.h:182
void setModel(WalletModel *model)
Definition: signverifymessagedialog.cpp:69
Definition: serialize.h:162
void showTab_VM(bool fShow)
Definition: signverifymessagedialog.cpp:93
std::string EncodeBase64(const unsigned char *pch, size_t len)
Definition: utilstrencodings.cpp:126
const QString & getReturnValue() const
Definition: addressbookpage.h:44
void setAddress_SM(const QString &address)
Definition: signverifymessagedialog.cpp:74