Closed sipa closed 4 years ago
Concept ACK. I haven't read it carefully to make sure this didn't introduce errors, but this is the sort of change I was suggesting.
I addressed @jonasnick's comments, including replacing "transaction digest" with "signature message" for consistency.
Going to merge.
This tries to address #99 and #104. It moves some things around by abstracting out the bulk of the signature message (everything except epoch and tapleaf/key_version/codesep_pos) into a single function in bip-taproot, which is then used to define both key path signature validation and bip-tapscript signature validation.