Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
secp256k1
src
ecmult_const.h
Go to the documentation of this file.
1
/***********************************************************************
2
* Copyright (c) 2015 Andrew Poelstra *
3
* Distributed under the MIT software license, see the accompanying *
4
* file COPYING or https://www.opensource.org/licenses/mit-license.php.*
5
***********************************************************************/
6
7
#ifndef SECP256K1_ECMULT_CONST_H
8
#define SECP256K1_ECMULT_CONST_H
9
10
#include "
scalar.h
"
11
#include "
group.h
"
12
16
static
void
secp256k1_ecmult_const
(
secp256k1_gej
*r,
const
secp256k1_ge
*a,
const
secp256k1_scalar
*q);
17
30
static
int
secp256k1_ecmult_const_xonly
(
31
secp256k1_fe
*r,
32
const
secp256k1_fe
*n,
33
const
secp256k1_fe
*d,
34
const
secp256k1_scalar
*q,
35
int
known_on_curve
36
);
37
38
#endif
/* SECP256K1_ECMULT_CONST_H */
secp256k1_ecmult_const_xonly
static int secp256k1_ecmult_const_xonly(secp256k1_fe *r, const secp256k1_fe *n, const secp256k1_fe *d, const secp256k1_scalar *q, int known_on_curve)
Same as secp256k1_ecmult_const, but takes in an x coordinate of the base point only,...
secp256k1_ecmult_const
static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q)
Multiply: R = q*A (in constant-time for q).
group.h
scalar.h
secp256k1_fe
This field implementation represents the value as 10 uint32_t limbs in base 2^26.
Definition
field_10x26.h:14
secp256k1_ge
A group element in affine coordinates on the secp256k1 curve, or occasionally on an isomorphic curve ...
Definition
group.h:16
secp256k1_gej
A group element of the secp256k1 curve, in jacobian coordinates.
Definition
group.h:28
secp256k1_scalar
A scalar modulo the group order of the secp256k1 curve.
Definition
scalar_4x64.h:13
Generated on
for Bitcoin Core by
1.17.0