@toruslabs/openlogin-utils
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -314,6 +314,6 @@ module.exports = | ||
function subkey(keyHex, input) { | ||
var privKeyBuf = Buffer.from(new external_bn_js_default.a(keyHex, "hex").toString(16, 64), "hex"); // TODO: check against existing usage of mimc | ||
var privKeyBuf = new external_bn_js_default.a(keyHex, "hex").toString(10); // TODO: check against existing usage of mimc | ||
// TODO: check that MPC is possible with mimc, with tests | ||
var inputPath = Buffer.from(new external_bn_js_default.a(input).umod(new external_bn_js_default.a(SECP256K1_CURVE_N, "hex")).toString(16, 64), "hex"); | ||
var inputPath = new external_bn_js_default.a(input).umod(new external_bn_js_default.a(SECP256K1_CURVE_N, "hex")).toString(10); | ||
var output = mimcHash(1, privKeyBuf, inputPath); | ||
@@ -320,0 +320,0 @@ return output.xL.toString(16); |
{ | ||
"name": "@toruslabs/openlogin-utils", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"homepage": "https://github.com/torusresearch/OpenLoginSdk#readme", | ||
@@ -60,3 +60,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "052cdba40f9b8df49339d8d7730126d38b81ed7e" | ||
"gitHead": "0532c7f3cb076d33990e8bccdadee0a8ae4e48d3" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1660956
5261