1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 09:50:06 +01:00
Commit Graph

2552 Commits

Author SHA1 Message Date
Jonas Nick
2611302d83 BIP-0340: Remove last remaining mention of Jacobi symbol
Jacobi symbol can be confusing because it may suggest that the modulus is
composite.

Thanks to Alan Szepieniec for pointing out this issue.
2020-07-18 20:14:51 +00:00
Jonas Nick
804538f141 BIP-0340: small fixups
- key prefixing means prefixing the message
- array indexing starts with 0
- 'Gennaro' is spelled with two n's
- has_even_y definition takes P as argument

Thanks to Alan Szepieniec for pointing out these issues.
2020-07-18 20:14:36 +00:00
Pieter Wuille
cf2937c811
Merge pull request #202 from ysangkok/bip-0340-typing
Typing annotations for BIP-0340
2020-04-10 13:44:55 -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
Pieter Wuille
1d999cf678
Merge pull request #203 from jonasnick/remove-is-negated
BIP-0341: Replace notion of is_negated with parity bit
2020-04-06 19:25:18 -07:00
Pieter Wuille
038615b7c7
Merge pull request #200 from real-or-random/prints
Add debug print for intermediate values
2020-04-02 16:34:24 -07:00
Jonas Nick
0916da6594 BIP-0341: Replace notion of is_negated with parity bit 2020-03-27 15:14:43 +00: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
Pieter Wuille
39ba507e01
Merge pull request #201 from jonasnick/tweak-bytes-only
BIP-0341: Avoid decompressing the output public key in script spends
2020-03-10 06:30:31 -07:00
Pieter Wuille
f71b5cbb5c
Merge pull request #196 from jonasnick/update-ref
Update reference code and test vectors
2020-03-10 06:28:20 -07:00
Jonas Nick
4ea021f28c BIP-0341: Avoid decompressing the output public key in script spends 2020-03-06 14:20:08 +00:00
Pieter Wuille
9abbfa53c9
Merge pull request #199 from real-or-random/patch-16
Fix a few minor issues
2020-03-04 15:49:20 -08: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
Tim Ruffing
cd19095fb0 Switch to only 32 bytes aux 2020-02-29 11:21:24 +01:00
Tim Ruffing
4f482a6748
Fix a few minor issues
* Recommend a byte length for aux random data
 * Clarify that with signature verification by default at the end of the signing algorithm, using public keys from untrusted sources is not an issue.  
 *  A few editorial nits
2020-02-24 21:59:13 +01:00
Pieter Wuille
88d30c704f Address comments 2020-02-23 19:45:10 -08:00
Pieter Wuille
806b46fde1 Switch to new synth nonce scheme and make it default 2020-02-23 19:43:20 -08:00
Anthony Towns
453947f43a give bip32 conversion its own section 2020-02-23 19:40:21 -08:00
Anthony Towns
455504b3af Include d in nonce rather than d' 2020-02-23 19:40:19 -08:00
Anthony Towns
8a009b90d8 notes about precomputed pubkey data 2020-02-23 19:39:00 -08:00
Pieter Wuille
d11cf65b6c Change tags to prevent inconsistent breakage with earlier draft 2020-02-23 19:35:22 -08:00
Pieter Wuille
6581a87ff2 Switch to even-y tiebreaker for pubkeys 2020-02-23 19:33:35 -08:00
Jonas Nick
ddc31eb6f6 BIP-340: Improve wording of recommendation for fresh secret keys 2020-02-23 19:33:13 -08:00
Jonas Nick
8b4f79b6f6 BIP-340: Stress that secret key should be fresh and if not then RFC6979 shouldn't be used 2020-02-23 19:33:13 -08:00
Anthony Towns
2a122f20c5 missing space 2020-02-23 19:33:13 -08:00
Keagan McClelland
4b18c45e74
Update bip-0340.mediawiki 2020-02-23 13:43:25 -08:00
Luke Dashjr
b38171d14e
Merge pull request #882 from MarcoFalke/patch-2
Fix links in bip-0119.mediawiki
2020-02-20 01:44:51 +00:00
Luke Dashjr
cd2c4069a7
Merge pull request #887 from richardkiss/patch-1
Update bip-0119.mediawiki
2020-02-19 23:55:31 +00:00
Luke Dashjr
5dba54b5f1
Merge pull request #889 from JeremyRubin/fix-color-of-change-ctv
Fix Colorings in BIP-0119 states.svg
2020-02-19 22:48:02 +00:00
Luke Dashjr
99d4de01cd
Merge pull request #884 from RandyMcMillan/patch-2
bip-0340: typo change intent to intend
2020-02-19 22:47:00 +00:00
Luke Dashjr
85f512b8df
Merge pull request #706 from Varunram/patch-3
[trivial] remove duplicate of
2020-02-19 22:45:57 +00:00
Luke Dashjr
fcce0e7656
Merge pull request #886 from jonasnick/synth-nonce
BIP 340: Recommend synthetic nonces and verifying signing output
2020-02-19 22:44:04 +00:00
Luke Dashjr
6fdf2eda61
Merge pull request #880 from NicolasDorier/patch-12
Fix broken link
2020-02-19 22:43:05 +00:00
Jeremy Rubin
bef6dc91c4 Fix Colorings in BIP-0119 states.svg 2020-02-06 13:54:05 -08:00
Richard Kiss
3e85c85044
Update bip-0119.mediawiki
Fix typo.
2020-02-01 12:25:27 -08:00
Jonas Nick
b4255dc83b BIP 340: Recommend verifying the signing output 2020-01-28 22:04:39 +00:00
Jonas Nick
2874f1ffe7 BIP 340: Recommend synthetic nonces 2020-01-28 22:04:34 +00:00
@RandyMcMillan
66ab3565ef
change intent to intend 2020-01-26 16:44:37 -05:00
Nicolas Dorier
983955ffc5
Fix broken link 2020-01-26 14:23:23 +09:00
MarcoFalke
a7597ec2c3
Update bip-0119.mediawiki
fix links
2020-01-25 12:10:07 -05:00
Luke Dashjr
0042dec548
Merge pull request #875 from JeremyRubin/ctv
BIP 119: CHECKTEMPLATEVERIFY
2020-01-24 01:43:06 +00:00
Jeremy Rubin
117f4186e7 Fix Links to images in BIP-119 2020-01-23 16:56:03 -08:00
Jeremy Rubin
1db62a07c5 Assign CTV BIP #119 2020-01-23 16:51:50 -08:00
Luke Dashjr
33308e75f8 Merge BIPs 340-342 2020-01-24 00:01:16 +00:00