Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/group.h
/*********************************************************************** | /*********************************************************************** | ||||
* Copyright (c) 2013, 2014 Pieter Wuille * | * Copyright (c) 2013, 2014 Pieter Wuille * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or https://www.opensource.org/licenses/mit-license.php.* | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* | ||||
***********************************************************************/ | ***********************************************************************/ | ||||
#ifndef SECP256K1_GROUP_H | #ifndef SECP256K1_GROUP_H | ||||
#define SECP256K1_GROUP_H | #define SECP256K1_GROUP_H | ||||
#include "num.h" | |||||
#include "field.h" | #include "field.h" | ||||
/** A group element of the secp256k1 curve, in affine coordinates. */ | /** A group element of the secp256k1 curve, in affine coordinates. */ | ||||
typedef struct { | typedef struct { | ||||
secp256k1_fe x; | secp256k1_fe x; | ||||
secp256k1_fe y; | secp256k1_fe y; | ||||
int infinity; /* whether this represents the point at infinity */ | int infinity; /* whether this represents the point at infinity */ | ||||
} secp256k1_ge; | } secp256k1_ge; | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |