summaryrefslogtreecommitdiff
path: root/bip-0340/reference.py
AgeCommit message (Collapse)Author
2022-08-23BIP 340: fix function signature of lift_x in reference codeJonas Nick
bip-0340.mediawiki defines lift_x as taking an integer argument. This commit changes the argument of lift_x in the reference code to be identical to the specification. Previously it took a byte array.
2020-09-03Clarify that R=infinity is invalid in BIP340Pieter Wuille
Also rename is_infinity to is_infinite is reference implementation, to match the wording in BIP340.
2020-08-20Update test vectors and generation scriptPieter Wuille
2020-04-06BIP-0340: Add typing annotations to reference.pyJanus
Passes mypy's strict-mode with mypy 0.770.
2020-03-17When checking test vectors, handle RuntimeException in signingTim Ruffing
This is better for playing around with the code. Now these these exceptions can really be raised when the verification during signing fails.
2020-03-17fixup! Optionally print intermediate values in reference codeTim Ruffing
2020-03-12Make code and output a little bit more readableTim Ruffing
2020-03-12Optionally print intermediate values in reference codeTim Ruffing
and make reference code and pseudocode more consistent with each other
2020-03-04BIP 340: Verify sig before returning itJonas Nick
2020-03-04BIP 340: Use synthetic nonces in reference code and test vectorsJonas Nick
2020-03-04BIP 340: Update reference code and test vectors as follows:Jonas Nick
- use evenness as tiebreaker - using different tags for nonce- and challenge hashing - add pubkey to nonce function.
2020-01-19Rename BIPsPieter Wuille