Remove bits argument from secp256k1_wnaf_const (always 256)

This commit is contained in:
Pieter Wuille committed 2023-04-10 06:40:21 -04:00
1 parent 0f8642079b
commit a575339c02
6 files changed
+43 -63

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ int secp256k1_ecdh(const secp256k1_context* ctx, unsigned char *output, const se
overflow |= secp256k1_scalar_is_zero(&s);
secp256k1_scalar_cmov(&s, &secp256k1_scalar_one, overflow);
secp256k1_ecmult_const(&res, &pt, &s, 256);
secp256k1_ecmult_const(&res, &pt, &s);
secp256k1_ge_set_gej(&pt, &res);
/* Compute a hash of the point */