![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <stdio.h>#include <stdlib.h>#include <assert.h>#include <string.h>#include <secp256k1.h>#include <secp256k1_extrakeys.h>#include <secp256k1_musig.h>#include <secp256k1_schnorrsig.h>#include "examples_util.h"Go to the source code of this file.
Classes | |
| struct | signer_secrets |
| This file demonstrates how to use the MuSig module to create a 3-of-3 multisignature. More... | |
| struct | signer |
Macros | |
| #define | N_SIGNERS 3 |
Functions | |
| static int | create_keypair (const secp256k1_context *ctx, struct signer_secrets *signer_secrets, struct signer *signer) |
| static int | tweak (const secp256k1_context *ctx, secp256k1_xonly_pubkey *agg_pk, secp256k1_musig_keyagg_cache *cache) |
| static int | sign (const secp256k1_context *ctx, struct signer_secrets *signer_secrets, struct signer *signer, const secp256k1_musig_keyagg_cache *cache, const unsigned char *msg32, unsigned char *sig64) |
| int | main (void) |
|
static |
|
static |
|
static |