Skip to content

Commit

Permalink
Merge pull request bitcoin-core#20 from datavetaren/secp256k1-zkp
Browse files Browse the repository at this point in the history
Minor bugfix. Wrong length due to NUL character.
  • Loading branch information
apoelstra authored May 17, 2018
2 parents 4b52f12 + 6e7db6f commit 874f077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/generator/main_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ static void shallue_van_de_woestijne(secp256k1_ge* ge, const secp256k1_fe* t) {
}

static int secp256k1_generator_generate_internal(const secp256k1_context* ctx, secp256k1_generator* gen, const unsigned char *key32, const unsigned char *blind32) {
static const unsigned char prefix1[16] = "1st generation: ";
static const unsigned char prefix2[16] = "2nd generation: ";
static const unsigned char prefix1[17] = "1st generation: ";
static const unsigned char prefix2[17] = "2nd generation: ";
secp256k1_fe t = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 4);
secp256k1_ge add;
secp256k1_gej accum;
Expand Down

0 comments on commit 874f077

Please sign in to comment.