Public functions that require a context for generator point multiplication (i.e. ctx->ecmult_gen_ctx
is built) usually denote this in the API header by mentioning to not use secp256k1_context_static
, so add this for _ellswift_create
as well. This seems the only instance where this is missing currently, see
0$ git grep ecmult_gen_context_is_built
1$ git grep ctx:.*context_static
(note that in the musig and schnorr modules, two public functions for nonce generation / signing map to a single internal function where the context requirement is checked).
Noted while reviewing #1698.