I made some minor corrections, which I believe are beneficial. Please let me know if any of them are incorrect or need modification.
Changes:
- An error test vector doesn’t specify the
InvalidContributionErrortype - In DeterministicSign, use
GetXonlyPubkeyinstead ofGetPubkey(doesn’t exist) - The
key_agg_and_tweakfn doesn’t specify the return type - In
partial_sig_verify_internal, the pubkey arg type should bePlainPkrather thanbytes - Remove unnecessary
enumerate()calls- I suspect this was initially used in debugging to find the failing test vector, and then it was forgotten.
- In
test_sign_verify, add an additionalassertstatement that checks if two pubnonces add up to the infinity aggnonce.