25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
|
/**********************************************************************
|
||
|
* Copyright (c) 2014, 2015 Gregory Maxwell *
|
||
|
* Distributed under the MIT software license, see the accompanying *
|
||
|
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
|
||
|
**********************************************************************/
|
||
|
|
||
|
|
||
|
#ifndef _SECP256K1_BORROMEAN_H_
|
||
|
#define _SECP256K1_BORROMEAN_H_
|
||
|
|
||
|
#include "scalar.h"
|
||
|
#include "field.h"
|
||
|
#include "group.h"
|
||
|
#include "ecmult.h"
|
||
|
#include "ecmult_gen.h"
|
||
|
|
||
|
int secp256k1_borromean_verify(const secp256k1_ecmult_context* ecmult_ctx, secp256k1_scalar *evalues, const unsigned char *e0, const secp256k1_scalar *s,
|
||
|
const secp256k1_gej *pubs, const int *rsizes, int nrings, const unsigned char *m, int mlen);
|
||
|
|
||
|
int secp256k1_borromean_sign(const secp256k1_ecmult_context* ecmult_ctx, const secp256k1_ecmult_gen_context *ecmult_gen_ctx,
|
||
|
unsigned char *e0, secp256k1_scalar *s, const secp256k1_gej *pubs, const secp256k1_scalar *k, const secp256k1_scalar *sec,
|
||
|
const int *rsizes, const int *secidx, int nrings, const unsigned char *m, int mlen);
|
||
|
|
||
|
#endif
|