0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-04 10:07:27 -05:00
bitcoin-bitcoin-core/src/field_5x52.h

20 lines
429 B
C
Raw Normal View History

2013-05-09 15:24:32 +02:00
// Copyright (c) 2013 Pieter Wuille
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef _SECP256K1_FIELD_REPR_
#define _SECP256K1_FIELD_REPR_
2013-03-30 21:49:09 +01:00
#include <stdint.h>
2013-03-30 22:32:16 +01:00
typedef struct {
2013-03-30 21:49:09 +01:00
// X = sum(i=0..4, elem[i]*2^52) mod n
uint64_t n[5];
2013-03-30 22:32:16 +01:00
#ifdef VERIFY
2013-03-30 21:49:09 +01:00
int magnitude;
2013-03-30 22:32:16 +01:00
int normalized;
2013-03-30 21:49:09 +01:00
#endif
2013-03-30 22:32:16 +01:00
} secp256k1_fe_t;
2013-03-30 21:49:09 +01:00
#endif