Skip to content

More invalid test vectors#6

Open
roconnor-blockstream wants to merge 708 commits intoapoelstra:masterfrom
roconnor-blockstream:2023-03--volvelles
Open

More invalid test vectors#6
roconnor-blockstream wants to merge 708 commits intoapoelstra:masterfrom
roconnor-blockstream:2023-03--volvelles

Conversation

@roconnor-blockstream
Copy link

These examples are valid BIP-173 and BIP-350 strings (but not valid BIP-93 strings).

kallewoof and others added 30 commits October 2, 2021 11:43
BIP 370: Use PSBT_GLOBAL_FALLBACK_LOCKTIME in text
Before this change, repository gets detected as:

Python 66.4%
Go 12.9%
Perl 11.0%
TeX 8.1%
Shell 1.6%

After this change, repository gets detected as:

Wikitext 97.2%
Python 1.9%
Other 0.9%

This change was added for a cosmetic effect on GitHub, and the line
this change adds can go away in any of these cases:

* Conflict with other tool used for reading these documents.

* GitHub ceases to use the line.

* GitHub ceases to be used as a reading medium for these documents.

* GitHub ceases to exist.
Make Wikitext linguist-detectable
BIPs 300/301 were 2 years old! I have updated, shortened, and clarified them.
BIPs 300/301 were 2 years old! I have updated, shortened, and clarified them.
* Pull the definition of the extension in BIP342 to its own section
* Add a section to BIP341 on validating script path signatures
* Clarify that SigMsg does not produce the message being signed, but
a common portion of it
BIP 0174: Clarify use of PSBT_IN_FINAL_* when data is empty
[BIP 157] Add missing words to sentence
Currently the BIP-341 and BIP-342 leave the question of how to verify signature for non-`0xC0` leaf version scripts undefined. I haven't checked the Bitcoin Core code for that matter yet, but (1) I think we need to cover signature validation of non-`0xC0` leaf version scripts in this standard and (2) the only way of doing that is "always succeed" rule for the future leaf version values (otherwise we will need a hard fork to introduce them).
luke-jr and others added 27 commits September 29, 2022 22:41
BIP118: simplify explanation of signature message
BIP 341: add missing conversions between bytes and int
[Trivial] BIP-70 Fixing sipa's gist proposal url
…l-fix

bip-0011/12 - fixed broken implementation url
The reconciliation protocol assumes using one role consistently. Since
it is irrelevant which one is which, we can imply that the initiator of
the P2P connection will assume the role of reconciliation initiator.

This protocol simplification will seep into the implementation.
`lift_x` returns `None` if the input integer is not an X coordinate on the curve
to indicate failure. `point_add`, on the other hand, interprets `None` as the
point at infinity. Therefore, without this commit, if the internal `pubkey` is
not a valid X coordinate, the function will not fail, which contradicts the
specification in the "Script validation rules section". Instead, it sets `Q` to
`t*G`.
BIP330: drop redundant booleans from the sendtxrcncl message
BIP341: add aux_rand argument to taproot_sign_key
In contrast to taproot_output_script, taproot_sign_key was not able to deal with
a script_tree that is None. This commit fixes taproot_sign_key such that it can
sign for such outputs.

This commit avoids changing the behavior of the functions except
taproot_sign_key at the cost of having some code duplication. Alternatively, one
could let taproot_tree_helper deal with a None script_tree directly.
BIP 341: allow taproot_sign_key with no script tree
Add BIP324: v2 P2P Transport Protocol
Includes:
* Simpler (but equivalent) ElligatorSwift encoding function & spec
* Improved test vectors
* Test vector generation code
* Code for converting test vectors for libsecp256k1 code.
* Code for running test vectors against SwiftEC paper authors' code.
* Miscellaneous reference code improvements (style, comments).
* initial commit

* fix formatting

* add importing section

* clarify csv preference

* tabs to spaces

* add rationale and references, require that rfc4180 is followed

* fix reference links

* show reference links as list

* use self describing json lines format instead of csv

* add bip number and accommodate 65 byte pubkeys

* fix comments uri
BIP324 reference code / test vector improvements
BIP0174 and BIP0370 PSBT_GLOBAL_TX_VERSION <valuedata> type correction
Using the identifier "faux" for invalid test vectors.

Extending the set of example a little bit.
@roconnor-blockstream roconnor-blockstream marked this pull request as ready for review March 17, 2023 15:20
These examples are valid BIP-173 and BIP-350 strings (but not valid BIP-93 strings).
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.