Skip to content

Commit

Permalink
Merge pull request bitcoin#15 from real-or-random/patch-2
Browse files Browse the repository at this point in the history
Use a hash to seed the CSPRNG for batch verification
  • Loading branch information
sipa committed Oct 13, 2018
2 parents e16217c + 869cf12 commit ce9fda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bip-schnorr.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Input:
* The public keys ''P<sub>1...u</sub>'': ''u'' points
* The messages ''m<sub>1...u</sub>'': ''u'' 32 byte arrays.
* The signatures ''sig<sub>1...u</sub>'': ''u'' 64 byte arrays.
* Random numbers ''a<sub>2...u</sub>'' in the range ''1...n-1'': ''u-1'' integers. These can either be generated deterministically using a [https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator CSPRNG] seeded by all the other inputs, or be randomly generated independently for each batch of verifications.
* Random numbers ''a<sub>2...u</sub>'' in the range ''1...n-1'': ''u-1'' integers. These can either be generated deterministically using a [https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator CSPRNG] seeded by a cryptographic hash (e.g., SHA256) of all the other inputs, or be randomly generated independently for each batch of verifications.
All provided signatures are valid if and only if the algorithm below does not fail.
* For ''i = 1 .. u'':
Expand Down

0 comments on commit ce9fda8

Please sign in to comment.