Instead of duplicating signing code, just use the function we already
have.
Backport of Core [[https://github.com/bitcoin/bitcoin/pull/18115 | PR18115]] part [4/9] : https://github.com/bitcoin/bitcoin/pull/18115/commits/a4af324d15c1ee43c2abd11a304ae18c7ee82eb0
Depends on D8098