Move secp256k1_fe_one to field.h

This makes secp256k1_fe_one part of field.h's interface, and allows other modules to appropriately access the constant.
This commit is contained in:
Russell O'Connor
2022-01-19 09:53:02 -05:00
parent a1102b1219
commit c9da1baad1
3 changed files with 3 additions and 4 deletions

View File

@@ -32,6 +32,8 @@
#error "Please select wide multiplication implementation"
#endif
static const secp256k1_fe secp256k1_fe_one = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 1);
/** Normalize a field element. This brings the field element to a canonical representation, reduces
* its magnitude to 1, and reduces it modulo field size `p`.
*/