rangeproof: add more static test vectors

Fixes #42
This commit is contained in:
Jonas Nick
2022-01-12 12:23:41 +00:00
committed by Andrew Poelstra
parent 310e517061
commit 34876ecb5f
2 changed files with 535 additions and 0 deletions

View File

@@ -10,6 +10,15 @@ extern "C" {
#include <stdint.h>
/** Length of a message that can be embedded into a maximally-sized rangeproof
*
* It is not be possible to fit a message of this size into a non-maximally-sized
* rangeproof, but it is guaranteed that any embeddable message can fit into an
* array of this size. This constant is intended to be used for memory allocations
* and sanity checks.
*/
#define SECP256K1_RANGEPROOF_MAX_MESSAGE_LEN 3968
/** Opaque data structure that stores a Pedersen commitment
*
* The exact representation of data inside is implementation defined and not