]>
Commit | Line | Data |
---|---|---|
0a433ea2 PW |
1 | // Copyright (c) 2013 Pieter Wuille |
2 | // Distributed under the MIT/X11 software license, see the accompanying | |
3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
4 | ||
7a4b7691 PW |
5 | #ifndef _SECP256K1_FIELD_REPR_ |
6 | #define _SECP256K1_FIELD_REPR_ | |
e6d142a8 | 7 | |
e6d142a8 | 8 | #include <stdint.h> |
e6d142a8 | 9 | |
910d0de4 | 10 | typedef struct { |
e6d142a8 PW |
11 | // X = sum(i=0..4, elem[i]*2^52) mod n |
12 | uint64_t n[5]; | |
910d0de4 | 13 | #ifdef VERIFY |
e6d142a8 | 14 | int magnitude; |
910d0de4 | 15 | int normalized; |
e6d142a8 | 16 | #endif |
910d0de4 | 17 | } secp256k1_fe_t; |
e6d142a8 PW |
18 | |
19 | #endif |