File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3737 "node-gyp-build" : " ^4.2.0"
3838 },
3939 "devDependencies" : {
40- "node-gyp" : " ^5.0.7 " ,
40+ "node-gyp" : " ^10.1.0 " ,
4141 "nyc" : " ^15.0.0" ,
4242 "prebuildify" : " ^5.0.0" ,
4343 "prebuildify-cross" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -107,22 +107,22 @@ Napi::Value Secp256k1Addon::PrivateKeyVerify(const Napi::CallbackInfo& info) {
107107Napi::Value Secp256k1Addon::PrivateKeyNegate (const Napi::CallbackInfo& info) {
108108 auto seckey = info[0 ].As <Napi::Buffer<unsigned char >>().Data ();
109109
110- RETURN_IF_ZERO (secp256k1_ec_privkey_negate (this ->ctx_ , seckey), 1 );
110+ RETURN_IF_ZERO (secp256k1_ec_seckey_negate (this ->ctx_ , seckey), 1 );
111111 RETURN (0 );
112112}
113113
114114Napi::Value Secp256k1Addon::PrivateKeyTweakAdd (const Napi::CallbackInfo& info) {
115115 auto seckey = info[0 ].As <Napi::Buffer<unsigned char >>().Data ();
116116 auto tweak = info[1 ].As <Napi::Buffer<const unsigned char >>().Data ();
117117
118- RETURN_INVERTED (secp256k1_ec_privkey_tweak_add (this ->ctx_ , seckey, tweak));
118+ RETURN_INVERTED (secp256k1_ec_seckey_tweak_add (this ->ctx_ , seckey, tweak));
119119}
120120
121121Napi::Value Secp256k1Addon::PrivateKeyTweakMul (const Napi::CallbackInfo& info) {
122122 auto seckey = info[0 ].As <Napi::Buffer<unsigned char >>().Data ();
123123 auto tweak = info[1 ].As <Napi::Buffer<const unsigned char >>().Data ();
124124
125- RETURN_INVERTED (secp256k1_ec_privkey_tweak_mul (this ->ctx_ , seckey, tweak));
125+ RETURN_INVERTED (secp256k1_ec_seckey_tweak_mul (this ->ctx_ , seckey, tweak));
126126}
127127
128128// PublicKey
You can’t perform that action at this time.
0 commit comments