Break malleability by producing S <= order/2

This commit is contained in:
Pieter Wuille
2013-09-19 00:58:42 +02:00
parent 350ade2ab4
commit d0b33489f2
3 changed files with 6 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ typedef struct {
/** Global constants related to the group */
typedef struct {
secp256k1_num_t order; // the order of the curve (= order of its generator)
secp256k1_num_t half_order; // half the order of the curve (= order of its generator)
secp256k1_ge_t g; // the generator point
// constants related to secp256k1's efficiently computable endomorphism