Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
ecmult_gen.h
Go to the documentation of this file.
1
/***********************************************************************
2
* Copyright (c) 2013, 2014 Pieter Wuille *
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_GEN_H
8
#define SECP256K1_ECMULT_GEN_H
9
10
#include "
scalar.h
"
11
#include "
group.h
"
12
13
#if ECMULT_GEN_PREC_BITS != 2 && ECMULT_GEN_PREC_BITS != 4 && ECMULT_GEN_PREC_BITS != 8
14
# error "Set ECMULT_GEN_PREC_BITS to 2, 4 or 8."
15
#endif
16
#define ECMULT_GEN_PREC_G(bits) (1 << bits)
17
#define ECMULT_GEN_PREC_N(bits) (256 / bits)
18
19
typedef
struct
{
20
/* Whether the context has been built. */
21
int
built
;
22
23
/* Blinding values used when computing (n-b)G + bG. */
24
secp256k1_scalar
blind
;
/* -b */
25
secp256k1_gej
initial
;
/* bG */
26
}
secp256k1_ecmult_gen_context
;
27
28
static
void
secp256k1_ecmult_gen_context_build(
secp256k1_ecmult_gen_context
* ctx);
29
static
void
secp256k1_ecmult_gen_context_clear(
secp256k1_ecmult_gen_context
* ctx);
30
32
static
void
secp256k1_ecmult_gen(
const
secp256k1_ecmult_gen_context
* ctx,
secp256k1_gej
*
r
,
const
secp256k1_scalar
*
a
);
33
34
static
void
secp256k1_ecmult_gen_blind(
secp256k1_ecmult_gen_context
*ctx,
const
unsigned
char
*seed32);
35
36
#endif
/* SECP256K1_ECMULT_GEN_H */
r
const mie::Vuint & r
Definition
bn.cpp:28
group.h
a
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition
pointer.h:1181
scalar.h
secp256k1_ecmult_gen_context
Definition
ecmult_gen.h:19
secp256k1_ecmult_gen_context::initial
secp256k1_gej initial
Definition
ecmult_gen.h:25
secp256k1_ecmult_gen_context::built
int built
Definition
ecmult_gen.h:21
secp256k1_ecmult_gen_context::blind
secp256k1_scalar blind
Definition
ecmult_gen.h:24
secp256k1_gej
Definition
group.h:28
secp256k1_scalar
Definition
scalar_4x64.h:13
libraries
fc
secp256k1
secp256k1
src
ecmult_gen.h
Generated by
1.12.0