Skip to content

Commit 34876ec

Browse files
jonasnickapoelstra
authored andcommitted
rangeproof: add more static test vectors
Fixes #42
1 parent 310e517 commit 34876ec

File tree

2 files changed

+535
-0
lines changed

2 files changed

+535
-0
lines changed

include/secp256k1_rangeproof.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ extern "C" {
1010

1111
#include <stdint.h>
1212

13+
/** Length of a message that can be embedded into a maximally-sized rangeproof
14+
*
15+
* It is not be possible to fit a message of this size into a non-maximally-sized
16+
* rangeproof, but it is guaranteed that any embeddable message can fit into an
17+
* array of this size. This constant is intended to be used for memory allocations
18+
* and sanity checks.
19+
*/
20+
#define SECP256K1_RANGEPROOF_MAX_MESSAGE_LEN 3968
21+
1322
/** Opaque data structure that stores a Pedersen commitment
1423
*
1524
* The exact representation of data inside is implementation defined and not

0 commit comments

Comments
 (0)