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
InvalidContributionError
type - In DeterministicSign, use
GetXonlyPubkey
instead ofGetPubkey
(doesn’t exist) - The
key_agg_and_tweak
fn doesn’t specify the return type - In
partial_sig_verify_internal
, the pubkey arg type should bePlainPk
rather 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 additionalassert
statement that checks if two pubnonces add up to the infinity aggnonce.