Dash Core  0.12.2.1
P2P Digital Currency
schnorr.h File Reference
#include "scalar.h"
#include "group.h"

Go to the source code of this file.

Typedefs

typedef void(* secp256k1_schnorr_msghash) (unsigned char *h32, const unsigned char *r32, const unsigned char *msg32)
 

Functions

static int secp256k1_schnorr_sig_sign (const secp256k1_ecmult_gen_context *ctx, unsigned char *sig64, const secp256k1_scalar *key, const secp256k1_scalar *nonce, const secp256k1_ge *pubnonce, secp256k1_schnorr_msghash hash, const unsigned char *msg32)
 
static int secp256k1_schnorr_sig_verify (const secp256k1_ecmult_context *ctx, const unsigned char *sig64, const secp256k1_ge *pubkey, secp256k1_schnorr_msghash hash, const unsigned char *msg32)
 
static int secp256k1_schnorr_sig_recover (const secp256k1_ecmult_context *ctx, const unsigned char *sig64, secp256k1_ge *pubkey, secp256k1_schnorr_msghash hash, const unsigned char *msg32)
 
static int secp256k1_schnorr_sig_combine (unsigned char *sig64, size_t n, const unsigned char *const *sig64ins)
 

Typedef Documentation

◆ secp256k1_schnorr_msghash

typedef void(* secp256k1_schnorr_msghash) (unsigned char *h32, const unsigned char *r32, const unsigned char *msg32)

Definition at line 13 of file schnorr.h.

Function Documentation

◆ secp256k1_schnorr_sig_combine()

static int secp256k1_schnorr_sig_combine ( unsigned char *  sig64,
size_t  n,
const unsigned char *const *  sig64ins 
)
static

◆ secp256k1_schnorr_sig_recover()

static int secp256k1_schnorr_sig_recover ( const secp256k1_ecmult_context ctx,
const unsigned char *  sig64,
secp256k1_ge pubkey,
secp256k1_schnorr_msghash  hash,
const unsigned char *  msg32 
)
static

◆ secp256k1_schnorr_sig_sign()

static int secp256k1_schnorr_sig_sign ( const secp256k1_ecmult_gen_context ctx,
unsigned char *  sig64,
const secp256k1_scalar key,
const secp256k1_scalar nonce,
const secp256k1_ge pubnonce,
secp256k1_schnorr_msghash  hash,
const unsigned char *  msg32 
)
static

◆ secp256k1_schnorr_sig_verify()

static int secp256k1_schnorr_sig_verify ( const secp256k1_ecmult_context ctx,
const unsigned char *  sig64,
const secp256k1_ge pubkey,
secp256k1_schnorr_msghash  hash,
const unsigned char *  msg32 
)
static