diff --git a/package.json b/package.json index 084298a..89ef603 100644 --- a/package.json +++ b/package.json @@ -33,14 +33,14 @@ }, "dependencies": { "elliptic": "^6.5.4", - "node-addon-api": "^5.0.0", - "node-gyp-build": "^4.2.0" + "node-addon-api": "^8.0.0", + "node-gyp-build": "^4.8.0" }, "devDependencies": { - "node-gyp": "^5.0.7", + "node-gyp": "^10.1.0", "nyc": "^15.0.0", - "prebuildify": "^5.0.0", - "prebuildify-cross": "^4.0.2", + "prebuildify": "^6.0.1", + "prebuildify-cross": "^5.1.0", "standard": "^14.3.1", "tap-dot": "^2.0.0", "tape": "^4.10.1", diff --git a/src/secp256k1 b/src/secp256k1 index d644dda..da51507 160000 --- a/src/secp256k1 +++ b/src/secp256k1 @@ -1 +1 @@ -Subproject commit d644dda5c9dbdecee52d1aa259235510fdc2d4ee +Subproject commit da515074e3ebc8abc85a4fff3a31d7694ecf897b diff --git a/src/secp256k1.cc b/src/secp256k1.cc index 40ea6a5..841b5b8 100644 --- a/src/secp256k1.cc +++ b/src/secp256k1.cc @@ -107,7 +107,7 @@ Napi::Value Secp256k1Addon::PrivateKeyVerify(const Napi::CallbackInfo& info) { Napi::Value Secp256k1Addon::PrivateKeyNegate(const Napi::CallbackInfo& info) { auto seckey = info[0].As>().Data(); - RETURN_IF_ZERO(secp256k1_ec_privkey_negate(this->ctx_, seckey), 1); + RETURN_IF_ZERO(secp256k1_ec_seckey_negate(this->ctx_, seckey), 1); RETURN(0); } @@ -115,14 +115,14 @@ Napi::Value Secp256k1Addon::PrivateKeyTweakAdd(const Napi::CallbackInfo& info) { auto seckey = info[0].As>().Data(); auto tweak = info[1].As>().Data(); - RETURN_INVERTED(secp256k1_ec_privkey_tweak_add(this->ctx_, seckey, tweak)); + RETURN_INVERTED(secp256k1_ec_seckey_tweak_add(this->ctx_, seckey, tweak)); } Napi::Value Secp256k1Addon::PrivateKeyTweakMul(const Napi::CallbackInfo& info) { auto seckey = info[0].As>().Data(); auto tweak = info[1].As>().Data(); - RETURN_INVERTED(secp256k1_ec_privkey_tweak_mul(this->ctx_, seckey, tweak)); + RETURN_INVERTED(secp256k1_ec_seckey_tweak_mul(this->ctx_, seckey, tweak)); } // PublicKey