Following up on the recent decision that secp256k1lab should be vendored per-BIP if needed/useful (see #2004 (comment) ff. and #1855 (comment) ff.), this PR exercises this for BIP-374. The changes add secp256k1lab version 1.0.0 as subtree [1] within the bip-0374 folder and take use of it in the reference implementation. In particular, secp256k1.py is removed and the TaggedHash and xor_bytes routines are used from the secp256k1lab utils module, to simplify the code further. Usage of the library is mentioned in the BIP text to be license compliant (see #2004 (comment)).
Can be tested via:
0$ ./bip-0374/run_test_vectors.py
1.....
2All test vectors passed.
3$ ./bip-0374/gen_test_vectors.py
4Generating /home/thestack/bips/bip-0374/test_vectors_generate_proof.csv...
5Generating /home/thestack/bips/bip-0374/test_vectors_verify_proof.csv...
6$ git diff
7<shouldn't show any diffs, as generated .csv files should match the ones in the repository>
[1] added via the command $ git subtree add --prefix=bip-0374/secp256k1lab --squash https://github.com/secp256k1lab/secp256k1lab v1.0.0