diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-06-21 11:04:00 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-06-21 11:04:00 -0400 |
commit | a143a12d44a592083b3cc1a9a2eb33272186ad0a (patch) | |
tree | 75f138950da43c894f693c40cf3c5f3d375b9e7a /src/secp256k1/include/secp256k1_schnorrsig.h | |
parent | d23cdf659e147e7040a3924fc20cfaf639bbf5db (diff) | |
parent | 901336eee751de088465e313dd8b500dfaf462b2 (diff) |
Update src/secp256k1 subtree to version with ElligatorSwift support
Diffstat (limited to 'src/secp256k1/include/secp256k1_schnorrsig.h')
-rw-r--r-- | src/secp256k1/include/secp256k1_schnorrsig.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/secp256k1/include/secp256k1_schnorrsig.h b/src/secp256k1/include/secp256k1_schnorrsig.h index 733fee5282..1ee665fd19 100644 --- a/src/secp256k1/include/secp256k1_schnorrsig.h +++ b/src/secp256k1/include/secp256k1_schnorrsig.h @@ -141,12 +141,20 @@ SECP256K1_API int secp256k1_schnorrsig_sign( * variable length messages and accepts a pointer to an extraparams object that * allows customizing signing by passing additional arguments. * - * Creates the same signatures as schnorrsig_sign if msglen is 32 and the - * extraparams.ndata is the same as aux_rand32. + * Equivalent to secp256k1_schnorrsig_sign32(..., aux_rand32) if msglen is 32 + * and extraparams is initialized as follows: + * ``` + * secp256k1_schnorrsig_extraparams extraparams = SECP256K1_SCHNORRSIG_EXTRAPARAMS_INIT; + * extraparams.ndata = (unsigned char*)aux_rand32; + * ``` * + * Returns 1 on success, 0 on failure. + * Args: ctx: pointer to a context object (not secp256k1_context_static). + * Out: sig64: pointer to a 64-byte array to store the serialized signature. * In: msg: the message being signed. Can only be NULL if msglen is 0. - * msglen: length of the message - * extraparams: pointer to a extraparams object (can be NULL) + * msglen: length of the message. + * keypair: pointer to an initialized keypair. + * extraparams: pointer to an extraparams object (can be NULL). */ SECP256K1_API int secp256k1_schnorrsig_sign_custom( const secp256k1_context *ctx, |