Remove bits argument from secp256k1_wnaf_const (always 256)

This commit is contained in:
Pieter Wuille
2022-12-29 14:48:36 -05:00
parent 0f8642079b
commit a575339c02
6 changed files with 43 additions and 63 deletions

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 */