Add support for AND, OR and XOR opcodes
Summary:
These opcodes are gated by a flag and compute what you'd expect for
binary ops. Added cases to the json test cases. In addition, added a
new unit tests that check if the opcodes behave in the expected way
in a large variety of situations.
Co-authored-by: Joshua Yabut <yabut.joshua@gmail.com>
Co-authored-by: Marcos Mayorga <mm@mm-studios.com>
Co-authored-by: Daniel Connolly <daniel@dconnolly.com>
Co-authored-by: Shammah Chancellor <shammah.chancellor@bitcoinabc.org>
Test Plan: make check
Reviewers: #bitcoin_abc, jasonbcox, schancel
Reviewed By: #bitcoin_abc, jasonbcox
Subscribers: jasonbcox, teamcity
Maniphest Tasks: T304
Differential Revision: https://reviews.bitcoinabc.org/D1211