Rebase of #47
- define
c - return
xas the x-co-ordinate, not the undefinedr - explicitly state that the return object is a point (and not eg an array or tuple of ints)
Includes squashed contributions by GitHub users jonasnick,
real-or-random, AustinWilliams, JustinTArthur, ysangkok,
RCassatta, Sjors, tnakagawa, and guggero.
Clarify what 'reduced' means in tests and use word 'message' instead of 'message hash'
Though perhaps, the emphasis is warranted given its importance. :-)
remove duplicate warning
If we look at
def IsPayToTaproot(script):
return len(script) == 35 and script[0] == OP_1 and script[1] == 33 and script[2] >= 0 and script[2] <= 1
First byte is is checked for OP_1. OP_1 is 0x51
But the example code in this BIP returns
`bytes([0x01, 0x21, output_pubkey[0] & 1]) + output_pubkey[1:]`
First byte 0x01, but it should be 0x51
taproot_output_script: first returned byte should be OP_1 (0x51)
Clarify description of diagram
Co-Authored-By: Tim Ruffing <tim@timruffing.de>
Co-Authored-By: Tim Ruffing <tim@timruffing.de>
Completely switch to 32-byte public keys in bip-schnorr/taproot/tapscript
Clarify how to disable key path spending
Oops, wrong repo.