@@ -171,7 +171,7 @@ bool CPubKey::Verify(const uint256 &hash, const std::vector<unsigned char>& vchS
171
171
return false ;
172
172
secp256k1_pubkey pubkey;
173
173
secp256k1_ecdsa_signature sig;
174
- if (!secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, &(* this )[ 0 ] , size ())) {
174
+ if (!secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, vch , size ())) {
175
175
return false ;
176
176
}
177
177
if (!ecdsa_signature_parse_der_lax (secp256k1_context_verify, &sig, vchSig.data (), vchSig.size ())) {
@@ -207,14 +207,14 @@ bool CPubKey::IsFullyValid() const {
207
207
if (!IsValid ())
208
208
return false ;
209
209
secp256k1_pubkey pubkey;
210
- return secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, &(* this )[ 0 ] , size ());
210
+ return secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, vch , size ());
211
211
}
212
212
213
213
bool CPubKey::Decompress () {
214
214
if (!IsValid ())
215
215
return false ;
216
216
secp256k1_pubkey pubkey;
217
- if (!secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, &(* this )[ 0 ] , size ())) {
217
+ if (!secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, vch , size ())) {
218
218
return false ;
219
219
}
220
220
unsigned char pub[PUBLIC_KEY_SIZE];
@@ -232,7 +232,7 @@ bool CPubKey::Derive(CPubKey& pubkeyChild, ChainCode &ccChild, unsigned int nChi
232
232
BIP32Hash (cc, nChild, *begin (), begin ()+1 , out);
233
233
memcpy (ccChild.begin (), out+32 , 32 );
234
234
secp256k1_pubkey pubkey;
235
- if (!secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, &(* this )[ 0 ] , size ())) {
235
+ if (!secp256k1_ec_pubkey_parse (secp256k1_context_verify, &pubkey, vch , size ())) {
236
236
return false ;
237
237
}
238
238
if (!secp256k1_ec_pubkey_tweak_add (secp256k1_context_verify, &pubkey, out)) {
0 commit comments