File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,12 @@ void SignVerifyMessageDialog::on_signMessageButton_SM_clicked()
148
148
return ;
149
149
}
150
150
151
- CDataStream ss (SER_GETHASH, 0 );
151
+ CHashWriter ss (SER_GETHASH, 0 );
152
152
ss << strMessageMagic;
153
153
ss << ui->messageIn_SM ->document ()->toPlainText ().toStdString ();
154
154
155
155
std::vector<unsigned char > vchSig;
156
- if (!key.SignCompact (Hash ( ss.begin (), ss. end () ), vchSig))
156
+ if (!key.SignCompact (ss.GetHash ( ), vchSig))
157
157
{
158
158
ui->statusLabel_SM ->setStyleSheet (" QLabel { color: red; }" );
159
159
ui->statusLabel_SM ->setText (QString (" <nobr>" ) + tr (" Message signing failed." ) + QString (" </nobr>" ));
@@ -223,12 +223,12 @@ void SignVerifyMessageDialog::on_verifyMessageButton_VM_clicked()
223
223
return ;
224
224
}
225
225
226
- CDataStream ss (SER_GETHASH, 0 );
226
+ CHashWriter ss (SER_GETHASH, 0 );
227
227
ss << strMessageMagic;
228
228
ss << ui->messageIn_VM ->document ()->toPlainText ().toStdString ();
229
229
230
230
CPubKey pubkey;
231
- if (!pubkey.RecoverCompact (Hash ( ss.begin (), ss. end () ), vchSig))
231
+ if (!pubkey.RecoverCompact (ss.GetHash ( ), vchSig))
232
232
{
233
233
ui->signatureIn_VM ->setValid (false );
234
234
ui->statusLabel_VM ->setStyleSheet (" QLabel { color: red; }" );
You can’t perform that action at this time.
0 commit comments