Bitcoin ABC 0.30.7
P2P Digital Currency
Functions | Variables
scalar_impl.h File Reference
#include "scalar.h"
#include "util.h"
#include "scalar_8x32_impl.h"
Include dependency graph for scalar_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int secp256k1_scalar_set_b32_seckey (secp256k1_scalar *r, const unsigned char *bin)
 
static void secp256k1_scalar_split_lambda (secp256k1_scalar *r1, secp256k1_scalar *r2, const secp256k1_scalar *k)
 

Variables

static const secp256k1_scalar secp256k1_scalar_one = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 1)
 
static const secp256k1_scalar secp256k1_scalar_zero = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 0)
 
static const secp256k1_scalar secp256k1_const_lambda
 The Secp256k1 curve has an endomorphism, where lambda * (x, y) = (beta * x, y), where lambda is: More...
 

Function Documentation

◆ secp256k1_scalar_set_b32_seckey()

static int secp256k1_scalar_set_b32_seckey ( secp256k1_scalar r,
const unsigned char *  bin 
)
static

Definition at line 34 of file scalar_impl.h.

Here is the call graph for this function:

◆ secp256k1_scalar_split_lambda()

static void secp256k1_scalar_split_lambda ( secp256k1_scalar r1,
secp256k1_scalar r2,
const secp256k1_scalar k 
)
static

Definition at line 123 of file scalar_impl.h.

Here is the call graph for this function:

Variable Documentation

◆ secp256k1_const_lambda

const secp256k1_scalar secp256k1_const_lambda
static
Initial value:
0x5363AD4CUL, 0xC05C30E0UL, 0xA5261C02UL, 0x8812645AUL,
0x122E22EAUL, 0x20816678UL, 0xDF02967CUL, 0x1B23BD72UL
)
#define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0)
Definition: scalar_4x64.h:17

The Secp256k1 curve has an endomorphism, where lambda * (x, y) = (beta * x, y), where lambda is:

Definition at line 64 of file scalar_impl.h.

◆ secp256k1_scalar_one

const secp256k1_scalar secp256k1_scalar_one = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 1)
static

Definition at line 31 of file scalar_impl.h.

◆ secp256k1_scalar_zero

const secp256k1_scalar secp256k1_scalar_zero = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 0)
static

Definition at line 32 of file scalar_impl.h.