Some comments explaining some of the constants in the code. #206

pull gmaxwell wants to merge 2 commits into bitcoin-core:master from gmaxwell:constant_comments changing 9 files +40 −2
  1. gmaxwell commented at 2:51 am on February 2, 2015: contributor
  2. droark commented at 4:16 am on February 2, 2015: none
    Thanks, Greg. I’ve been doing a review of libsecp256k1 in my free time. Comments like these and the one in pull request #205 are a huge help. :)
  3. in src/ecdsa_impl.h: in a90b05340b outdated
    14@@ -15,11 +15,28 @@
    15 #include "ecmult_gen.h"
    16 #include "ecdsa.h"
    17 
    18+/** Group order for secp256k1 defined as 'n' in "Standards for Efficient Cryptography" (SEC2) 2.7.1
    


    sipa commented at 11:50 pm on February 6, 2015:
    This prints p, not n.
  4. sipa commented at 11:56 pm on February 6, 2015: contributor
    There are several copies of p and n in different places of the code. Maybe it’s useful to only explain them once, and just put references in other places (“see the definition of secp256k1_scalar_const_order in file X”).
  5. Some comments explaining some of the constants in the code. 6efd6e7777
  6. Additional comments for the testing PRNG and a seeding fix.
    Rw has additional short-cycle inputs because 2^32/0x464fffff >= 2.
    34b898dc84
  7. sipa commented at 0:26 am on February 13, 2015: contributor
    ACK
  8. sipa merged this on Feb 13, 2015
  9. sipa closed this on Feb 13, 2015

  10. sipa referenced this in commit 035406d6db on Feb 13, 2015

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 16:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me