Skip to content

Commit

Permalink
fix ec_privkey_tweak_add
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljzn committed May 21, 2023
1 parent 6c31b40 commit 14c29f1
Show file tree
Hide file tree
Showing 3 changed files with 144,124 additions and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/libsecp256k1_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ ec_privkey_tweak_add(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
privkey_buf = enif_make_new_binary(env, 32, &r);
memcpy(privkey_buf, privkey.data, privkey.size);

result = secp256k1_ec_privkey_tweak_add(ctx, privkey_buf, tweak.data);
result = secp256k1_ec_seckey_tweak_add(ctx, privkey_buf, tweak.data);

if (result == 0) {
return error_result(env, "ec_privkey_tweak_add returned 0");
Expand Down
Loading

0 comments on commit 14c29f1

Please sign in to comment.