Skip to content

201910 simple fixes#855

Closed
sipa wants to merge 90 commits intobitcoin:masterfrom
sipa:201910_simple_fixes
Closed

201910 simple fixes#855
sipa wants to merge 90 commits intobitcoin:masterfrom
sipa:201910_simple_fixes

Conversation

@sipa
Copy link
Copy Markdown
Member

@sipa sipa commented Oct 15, 2019

No description provided.

sipa and others added 30 commits May 6, 2019 10:40
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. :-)
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)
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
Clarify pseudocode of lift_x
Use key path spend terminology more consistently in taproot/tapscript
sipa and others added 28 commits September 23, 2019 12:19
Rework resource limits section
Move/reword tagged hashes motivation
Improve readability of bip-taproot wallet section
Link to Schnorr's paper instead of Wikipedia
Accept seckey in the form of bytes and not int in the reference BIP-schnorr code...
Extend codeseparator_position and input_index from 16 to 32 bits
Increase max Merkle path length
Small fix: 0xc1 is possible as first control block byte
@sipa
Copy link
Copy Markdown
Member Author

sipa commented Oct 15, 2019

Grr.

@sipa sipa closed this Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants