Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/modules/schnorrsig/main_impl.h
/*********************************************************************** | /*********************************************************************** | ||||
* Copyright (c) 2018-2020 Andrew Poelstra, Jonas Nick * | * Copyright (c) 2018-2020 Andrew Poelstra, Jonas Nick * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or https://www.opensource.org/licenses/mit-license.php.* | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* | ||||
***********************************************************************/ | ***********************************************************************/ | ||||
#ifndef _SECP256K1_MODULE_SCHNORRSIG_MAIN_ | #ifndef SECP256K1_MODULE_SCHNORRSIG_MAIN_H | ||||
#define _SECP256K1_MODULE_SCHNORRSIG_MAIN_ | #define SECP256K1_MODULE_SCHNORRSIG_MAIN_H | ||||
#include "include/secp256k1.h" | #include "include/secp256k1.h" | ||||
#include "include/secp256k1_schnorrsig.h" | #include "include/secp256k1_schnorrsig.h" | ||||
#include "hash.h" | #include "hash.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("BIP0340/nonce")||SHA256("BIP0340/nonce"). */ | * SHA256 to SHA256("BIP0340/nonce")||SHA256("BIP0340/nonce"). */ | ||||
static void secp256k1_nonce_function_bip340_sha256_tagged(secp256k1_sha256 *sha) { | static void secp256k1_nonce_function_bip340_sha256_tagged(secp256k1_sha256 *sha) { | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |