File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 33
33
},
34
34
"dependencies" : {
35
35
"elliptic" : " ^6.5.4" ,
36
- "node-addon-api" : " ^5 .0.0" ,
37
- "node-gyp-build" : " ^4.2 .0"
36
+ "node-addon-api" : " ^8 .0.0" ,
37
+ "node-gyp-build" : " ^4.8 .0"
38
38
},
39
39
"devDependencies" : {
40
- "node-gyp" : " ^5.0.7 " ,
40
+ "node-gyp" : " ^10.1.0 " ,
41
41
"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 " ,
44
44
"standard" : " ^14.3.1" ,
45
45
"tap-dot" : " ^2.0.0" ,
46
46
"tape" : " ^4.10.1" ,
47
47
"xorshift.js" : " ^1.0.3" ,
48
48
"yargs" : " ^15.0.2"
49
49
},
50
50
"engines" : {
51
- "node" : " >=14 .0.0"
51
+ "node" : " >=18 .0.0"
52
52
},
53
53
"gypfile" : true
54
54
}
Original file line number Diff line number Diff line change @@ -107,22 +107,22 @@ Napi::Value Secp256k1Addon::PrivateKeyVerify(const Napi::CallbackInfo& info) {
107
107
Napi::Value Secp256k1Addon::PrivateKeyNegate (const Napi::CallbackInfo& info) {
108
108
auto seckey = info[0 ].As <Napi::Buffer<unsigned char >>().Data ();
109
109
110
- RETURN_IF_ZERO (secp256k1_ec_privkey_negate (this ->ctx_ , seckey), 1 );
110
+ RETURN_IF_ZERO (secp256k1_ec_seckey_negate (this ->ctx_ , seckey), 1 );
111
111
RETURN (0 );
112
112
}
113
113
114
114
Napi::Value Secp256k1Addon::PrivateKeyTweakAdd (const Napi::CallbackInfo& info) {
115
115
auto seckey = info[0 ].As <Napi::Buffer<unsigned char >>().Data ();
116
116
auto tweak = info[1 ].As <Napi::Buffer<const unsigned char >>().Data ();
117
117
118
- RETURN_INVERTED (secp256k1_ec_privkey_tweak_add (this ->ctx_ , seckey, tweak));
118
+ RETURN_INVERTED (secp256k1_ec_seckey_tweak_add (this ->ctx_ , seckey, tweak));
119
119
}
120
120
121
121
Napi::Value Secp256k1Addon::PrivateKeyTweakMul (const Napi::CallbackInfo& info) {
122
122
auto seckey = info[0 ].As <Napi::Buffer<unsigned char >>().Data ();
123
123
auto tweak = info[1 ].As <Napi::Buffer<const unsigned char >>().Data ();
124
124
125
- RETURN_INVERTED (secp256k1_ec_privkey_tweak_mul (this ->ctx_ , seckey, tweak));
125
+ RETURN_INVERTED (secp256k1_ec_seckey_tweak_mul (this ->ctx_ , seckey, tweak));
126
126
}
127
127
128
128
// PublicKey
You can’t perform that action at this time.
0 commit comments