File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3333 },
3434 "dependencies" : {
3535 "elliptic" : " ^6.5.4" ,
36- "node-addon-api" : " ^5 .0.0" ,
36+ "node-addon-api" : " ^8 .0.0" ,
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" ,
42- "prebuildify" : " ^5 .0.0 " ,
43- "prebuildify-cross" : " ^4.0.2 " ,
42+ "prebuildify" : " ^6 .0.1 " ,
43+ "prebuildify-cross" : " ^5.1.0 " ,
4444 "standard" : " ^14.3.1" ,
4545 "tap-dot" : " ^2.0.0" ,
4646 "tape" : " ^4.10.1" ,
4747 "xorshift.js" : " ^1.0.3" ,
4848 "yargs" : " ^15.0.2"
4949 },
5050 "engines" : {
51- "node" : " >=14 .0.0"
51+ "node" : " >=18 .0.0"
5252 },
5353 "gypfile" : true
5454}
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