Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@
},
"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",
"xorshift.js": "^1.0.3",
"yargs": "^15.0.2"
},
"engines": {
"node": ">=14.0.0"
"node": ">=18.0.0"
},
"gypfile": true
}
2 changes: 1 addition & 1 deletion src/secp256k1
Submodule secp256k1 updated 172 files
6 changes: 3 additions & 3 deletions src/secp256k1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,22 @@ Napi::Value Secp256k1Addon::PrivateKeyVerify(const Napi::CallbackInfo& info) {
Napi::Value Secp256k1Addon::PrivateKeyNegate(const Napi::CallbackInfo& info) {
auto seckey = info[0].As<Napi::Buffer<unsigned char>>().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);
}

Napi::Value Secp256k1Addon::PrivateKeyTweakAdd(const Napi::CallbackInfo& info) {
auto seckey = info[0].As<Napi::Buffer<unsigned char>>().Data();
auto tweak = info[1].As<Napi::Buffer<const unsigned char>>().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<Napi::Buffer<unsigned char>>().Data();
auto tweak = info[1].As<Napi::Buffer<const unsigned char>>().Data();

RETURN_INVERTED(secp256k1_ec_privkey_tweak_mul(this->ctx_, seckey, tweak));
RETURN_INVERTED(secp256k1_ec_seckey_tweak_mul(this->ctx_, seckey, tweak));
}

// PublicKey
Expand Down