You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int ret = secp256k1_ecdsa_sign_recoverable(secp256k1_context_sign, &rsig, hash.begin(), begin(), secp256k1_nonce_function_rfc6979, nullptr);
261
+
int ret = secp256k1_ecdsa_sign_recoverable(secp256k1_context_sign, &rsig, hash.begin(), UCharCast(begin()), secp256k1_nonce_function_rfc6979, nullptr);
262
262
assert(ret);
263
263
ret = secp256k1_ecdsa_recoverable_signature_serialize_compact(secp256k1_context_sign, &vchSig[1], &rec, &rsig);
264
264
assert(ret);
265
265
assert(rec != -1);
266
266
vchSig[0] = 27 + rec + (fCompressed ? 4 : 0);
267
267
// Additional verification step to prevent using a potentially corrupted signature
268
268
secp256k1_pubkey epk, rpk;
269
-
ret = secp256k1_ec_pubkey_create(secp256k1_context_sign, &epk, begin());
269
+
ret = secp256k1_ec_pubkey_create(secp256k1_context_sign, &epk, UCharCast(begin()));
270
270
assert(ret);
271
271
ret = secp256k1_ecdsa_recover(secp256k1_context_static, &rpk, &rsig, hash.begin());
0 commit comments