15 #include <validation.h> 28 platformStyle(_platformStyle)
50 #if QT_VERSION >= 0x040700 51 ui->
signatureOut_SM->setPlaceholderText(tr(
"Click \"Sign Message\" to generate signature"));
134 ui->
statusLabel_SM->setText(tr(
"The entered address is invalid.") + QString(
" ") + tr(
"Please check the address and try again."));
138 if (!addr.GetKeyID(keyID))
142 ui->
statusLabel_SM->setText(tr(
"The entered address does not refer to a key.") + QString(
" ") + tr(
"Please check the address and try again."));
158 ui->
statusLabel_SM->setText(tr(
"Private key for the entered address is not available."));
166 std::vector<unsigned char> vchSig;
170 ui->
statusLabel_SM->setText(QString(
"<nobr>") + tr(
"Message signing failed.") + QString(
"</nobr>"));
175 ui->
statusLabel_SM->setText(QString(
"<nobr>") + tr(
"Message signed.") + QString(
"</nobr>"));
214 ui->
statusLabel_VM->setText(tr(
"The entered address is invalid.") + QString(
" ") + tr(
"Please check the address and try again."));
218 if (!addr.GetKeyID(keyID))
222 ui->
statusLabel_VM->setText(tr(
"The entered address does not refer to a key.") + QString(
" ") + tr(
"Please check the address and try again."));
226 bool fInvalid =
false;
233 ui->
statusLabel_VM->setText(tr(
"The signature could not be decoded.") + QString(
" ") + tr(
"Please check the signature and try again."));
246 ui->
statusLabel_VM->setText(tr(
"The signature did not match the message digest.") + QString(
" ") + tr(
"Please check the signature and try again."));
253 ui->
statusLabel_VM->setText(QString(
"<nobr>") + tr(
"Message verification failed.") + QString(
"</nobr>"));
258 ui->
statusLabel_VM->setText(QString(
"<nobr>") + tr(
"Message verified.") + QString(
"</nobr>"));
273 if (event->type() == QEvent::MouseButtonPress ||
event->type() == QEvent::FocusIn)
293 return QDialog::eventFilter(
object, event);
QPlainTextEdit * messageIn_SM
void on_addressBookButton_SM_clicked()
void showTab_SM(bool fShow)
void on_copySignatureButton_SM_clicked()
#define SetObjectStyleSheet(object, name)
bool eventFilter(QObject *object, QEvent *event)
std::vector< unsigned char > DecodeBase64(const char *p, bool *pfInvalid)
QPushButton * signMessageButton_SM
void setAddress_VM(const QString &address)
void setModel(AddressTableModel *model)
void setupUi(QDialog *SignVerifyMessageDialog)
UnlockContext requestUnlock()
void on_addressBookButton_VM_clicked()
const QString & getReturnValue() const
base58-encoded Fabcoin addresses.
void on_pasteButton_SM_clicked()
QPushButton * pasteButton_SM
~SignVerifyMessageDialog()
Open address book to pick address.
AddressTableModel * getAddressTableModel()
bool getPrivKey(const CKeyID &address, CKey &vchPrivKeyOut) const
const std::string strMessageMagic
Ui::SignVerifyMessageDialog * ui
void on_signMessageButton_SM_clicked()
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
QPushButton * verifyMessageButton_VM
QPushButton * addressBookButton_VM
void setClipboard(const QString &str)
bool RecoverCompact(const uint256 &hash, const std::vector< unsigned char > &vchSig)
Recover a public key from a compact signature.
void on_verifyMessageButton_VM_clicked()
An encapsulated public key.
void on_clearButton_VM_clicked()
QValidatedLineEdit * signatureIn_VM
Widget that shows a list of sending or receiving addresses.
SignVerifyMessageDialog(const PlatformStyle *platformStyle, QWidget *parent)
void on_clearButton_SM_clicked()
QPushButton * addressBookButton_SM
QValidatedLineEdit * addressIn_SM
bool SignCompact(const uint256 &hash, std::vector< unsigned char > &vchSig) const
Create a compact signature (65 bytes), which allows reconstructing the used public key...
Interface to Fabcoin wallet from Qt view code.
A reference to a CKey: the Hash160 of its serialized public key.
QPushButton * clearButton_VM
QPushButton * clearButton_SM
A writer stream (for serialization) that computes a 256-bit hash.
QPushButton * copySignatureButton_SM
struct evm_uint160be address(struct evm_env *env)
An encapsulated private key.
const PlatformStyle * platformStyle
QValidatedLineEdit * addressIn_VM
CKeyID GetID() const
Get the KeyID of this public key (hash of its serialization)
void setModel(WalletModel *model)
QPlainTextEdit * messageIn_VM
void setValid(bool valid)
QLineEdit * signatureOut_SM
void showTab_VM(bool fShow)
std::string EncodeBase64(const unsigned char *pch, size_t len)
void setAddress_SM(const QString &address)