Separate helper functions for pubkey_create and seckey_tweak_add
Summary:
This is in preparation for allowing code reuse by keypair functions
This is a partial backport of secp256k1 PR558 : https://github.com/bitcoin-core/secp256k1/pull/558/commits/f0010349b876bc6b3f0a6ec6c8bad0b12ca17b51
Test Plan:
ninja check-secp256k1
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D7642