Tim Ruffing
200f9b26fe
bip340: Allow variable-length messages
2023-04-20 16:01:00 -04:00
Jonas Nick
3998dbbc8a
BIP 340: fix function signature of lift_x in reference code
...
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.
2022-08-23 10:07:32 +00:00
Jonas Nick
255b5b67c0
BIP340: remove batch speedup graph and link to it instead
...
This avoids having to update the BIP with a fresh graph every time there's a
change to libsecp and suggests that the expected speedup depends on the specific
implementation.
2021-05-17 14:55:13 +00:00
Pieter Wuille
3b1fb9600b
Clarify that R=infinity is invalid in BIP340
...
Also rename is_infinity to is_infinite is reference implementation,
to match the wording in BIP340.
2020-09-03 14:38:22 -07:00
Pieter Wuille
afa13249ed
Update test vectors and generation script
2020-08-20 13:24:20 -07:00
Janus
756129cccf
BIP-0340: Add typing annotations to reference.py
...
Passes mypy's strict-mode with mypy 0.770.
2020-04-06 21:45:23 -05:00
Tim Ruffing
72657270d8
When checking test vectors, handle RuntimeException in signing
...
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-17 02:30:39 +01:00
Tim Ruffing
07d938a214
fixup! Optionally print intermediate values in reference code
2020-03-17 02:13:26 +01:00
Tim Ruffing
003d38cedb
Fix typo
2020-03-12 21:16:18 +01:00
Tim Ruffing
8c5be91975
Make code and output a little bit more readable
2020-03-12 21:16:18 +01:00
Tim Ruffing
a6301c5af0
Optionally print intermediate values in reference code
...
and make reference code and pseudocode more consistent with each other
2020-03-12 21:15:52 +01:00
Jonas Nick
9bfa53e9fb
BIP 340: Verify sig before returning it
2020-03-04 16:34:24 +00:00
Jonas Nick
b6b5f58e6e
BIP 340: Use synthetic nonces in reference code and test vectors
2020-03-04 16:34:24 +00:00
Jonas Nick
d41e778ca1
BIP 340: Update reference code and test vectors as follows:
...
- use evenness as tiebreaker
- using different tags for nonce- and challenge hashing
- add pubkey to nonce function.
2020-03-04 16:34:17 +00:00
Pieter Wuille
e1914b8173
fixes
2020-01-19 14:48:58 -08:00
Pieter Wuille
1faa4b19bc
Rename BIPs
2020-01-19 14:47:33 -08:00