ecdsa_adaptor: Make files more self-contained
This commit is contained in:
@@ -1,6 +1,16 @@
|
|||||||
#ifndef SECP256K1_DLEQ_IMPL_H
|
#ifndef SECP256K1_DLEQ_IMPL_H
|
||||||
#define SECP256K1_DLEQ_IMPL_H
|
#define SECP256K1_DLEQ_IMPL_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "../../../include/secp256k1_ecdsa_adaptor.h"
|
||||||
|
|
||||||
|
#include "../../../src/eckey.h"
|
||||||
|
#include "../../../src/ecmult_const.h"
|
||||||
|
#include "../../../src/group.h"
|
||||||
|
#include "../../../src/hash.h"
|
||||||
|
#include "../../../src/scalar.h"
|
||||||
|
|
||||||
/* Initializes SHA256 with fixed midstate. This midstate was computed by applying
|
/* Initializes SHA256 with fixed midstate. This midstate was computed by applying
|
||||||
* SHA256 to SHA256("DLEQ")||SHA256("DLEQ"). */
|
* SHA256 to SHA256("DLEQ")||SHA256("DLEQ"). */
|
||||||
static void secp256k1_nonce_function_dleq_sha256_tagged(secp256k1_sha256 *sha) {
|
static void secp256k1_nonce_function_dleq_sha256_tagged(secp256k1_sha256 *sha) {
|
||||||
|
|||||||
@@ -7,9 +7,18 @@
|
|||||||
#ifndef SECP256K1_MODULE_ECDSA_ADAPTOR_MAIN_H
|
#ifndef SECP256K1_MODULE_ECDSA_ADAPTOR_MAIN_H
|
||||||
#define SECP256K1_MODULE_ECDSA_ADAPTOR_MAIN_H
|
#define SECP256K1_MODULE_ECDSA_ADAPTOR_MAIN_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "../../../include/secp256k1_ecdsa_adaptor.h"
|
#include "../../../include/secp256k1_ecdsa_adaptor.h"
|
||||||
#include "dleq_impl.h"
|
#include "dleq_impl.h"
|
||||||
|
|
||||||
|
#include "../../../src/eckey.h"
|
||||||
|
#include "../../../src/ecmult.h"
|
||||||
|
#include "../../../src/ecmult_const.h"
|
||||||
|
#include "../../../src/group.h"
|
||||||
|
#include "../../../src/hash.h"
|
||||||
|
#include "../../../src/scalar.h"
|
||||||
|
|
||||||
/* (R, R', s', dleq_proof) */
|
/* (R, R', s', dleq_proof) */
|
||||||
static void secp256k1_ecdsa_adaptor_sig_serialize(unsigned char *adaptor_sig162, secp256k1_ge *r, secp256k1_ge *rp, const secp256k1_scalar *sp, const secp256k1_scalar *dleq_proof_e, const secp256k1_scalar *dleq_proof_s) {
|
static void secp256k1_ecdsa_adaptor_sig_serialize(unsigned char *adaptor_sig162, secp256k1_ge *r, secp256k1_ge *rp, const secp256k1_scalar *sp, const secp256k1_scalar *dleq_proof_e, const secp256k1_scalar *dleq_proof_s) {
|
||||||
secp256k1_eckey_pubkey_serialize33(r, adaptor_sig162);
|
secp256k1_eckey_pubkey_serialize33(r, adaptor_sig162);
|
||||||
|
|||||||
Reference in New Issue
Block a user