Add CheckDataSignatureEncoding to check signature with a sighashtype.
Summary:
As per title.
Depends on D1578
Test Plan:
make check
Reviewers: #bitcoin_abc, jasonbcox
Reviewed By: #bitcoin_abc, jasonbcox
Subscribers: teamcity
Differential Revision: https://reviews.bitcoinabc.org/D1579