Superseeds #1969. On top of #1969.
I’m one of the authors of BIP324 but let’s wait for an ACK from @sipa, please.
ACK 713f000a20421a54b29cd8ab89e711eef1fbccb9
The first commit is the same as the change I previously reviewed and ACKed in #1969, but I didn’t previously verify by re-generating the test vectors, which generates the diff we see in the second commit. Re-verified the second commit by running gen_test_vectors.py on it and seeing no change, and ran run_test_vectors.py to sanity-check that the tests pass.