29 #if QT_VERSION >= 0x040700
30 ui->
signatureOut_SM->setPlaceholderText(tr(
"Click \"Sign Message\" to generate signature"));
32 ui->
addressIn_VM->setPlaceholderText(tr(
"Enter an Anoncoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
115 ui->
statusLabel_SM->setText(tr(
"The entered address is invalid.") + QString(
" ") + tr(
"Please check the address and try again."));
119 if (!addr.GetKeyID(keyID))
123 ui->
statusLabel_SM->setText(tr(
"The entered address does not refer to a key.") + QString(
" ") + tr(
"Please check the address and try again."));
139 ui->
statusLabel_SM->setText(tr(
"Private key for the entered address is not available."));
147 std::vector<unsigned char> vchSig;
151 ui->
statusLabel_SM->setText(QString(
"<nobr>") + tr(
"Message signing failed.") + QString(
"</nobr>"));
156 ui->
statusLabel_SM->setText(QString(
"<nobr>") + tr(
"Message signed.") + QString(
"</nobr>"));
195 ui->
statusLabel_VM->setText(tr(
"The entered address is invalid.") + QString(
" ") + tr(
"Please check the address and try again."));
199 if (!addr.GetKeyID(keyID))
203 ui->
statusLabel_VM->setText(tr(
"The entered address does not refer to a key.") + QString(
" ") + tr(
"Please check the address and try again."));
207 bool fInvalid =
false;
214 ui->
statusLabel_VM->setText(tr(
"The signature could not be decoded.") + QString(
" ") + tr(
"Please check the signature and try again."));
227 ui->
statusLabel_VM->setText(tr(
"The signature did not match the message digest.") + QString(
" ") + tr(
"Please check the signature and try again."));
234 ui->
statusLabel_VM->setText(QString(
"<nobr>") + tr(
"Message verification failed.") + QString(
"</nobr>"));
239 ui->
statusLabel_VM->setText(QString(
"<nobr>") + tr(
"Message verified.") + QString(
"</nobr>"));
254 if (event->type() == QEvent::MouseButtonPress ||
event->type() == QEvent::FocusIn)
274 return QDialog::eventFilter(
object, event);
QPlainTextEdit * messageIn_SM
void on_addressBookButton_SM_clicked()
void showTab_SM(bool fShow)
void on_copySignatureButton_SM_clicked()
bool eventFilter(QObject *object, QEvent *event)
const_iterator begin() const
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
void on_pasteButton_SM_clicked()
Double ended buffer combining vector and stream-like interfaces.
~SignVerifyMessageDialog()
Open address book to pick address.
AddressTableModel * getAddressTableModel()
bool GetKey(const CKeyID &address, CKey &keyOut) const
const string strMessageMagic
Ui::SignVerifyMessageDialog * ui
void on_signMessageButton_SM_clicked()
string EncodeBase64(const unsigned char *pch, size_t len)
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void setClipboard(const QString &str)
bool RecoverCompact(const uint256 &hash, const std::vector< unsigned char > &vchSig)
void on_verifyMessageButton_VM_clicked()
An encapsulated public key.
void on_clearButton_VM_clicked()
base58-encoded Anoncoin addresses.
QValidatedLineEdit * signatureIn_VM
uint256 Hash(const T1 pbegin, const T1 pend)
Widget that shows a list of sending or receiving addresses.
QFont anoncoinAddressFont()
void on_clearButton_SM_clicked()
QValidatedLineEdit * addressIn_SM
bool SignCompact(const uint256 &hash, std::vector< unsigned char > &vchSig) const
Interface to Anoncoin wallet from Qt view code.
A reference to a CKey: the Hash160 of its serialized public key.
SignVerifyMessageDialog(QWidget *parent)
An encapsulated private key.
QValidatedLineEdit * addressIn_VM
vector< unsigned char > DecodeBase64(const char *p, bool *pfInvalid)
void setModel(WalletModel *model)
QPlainTextEdit * messageIn_VM
void setValid(bool valid)
QLineEdit * signatureOut_SM
void showTab_VM(bool fShow)
const_iterator end() const
void setAddress_SM(const QString &address)