We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45231e4 commit 0bd39c8Copy full SHA for 0bd39c8
cli.mjs
@@ -10,7 +10,7 @@
10
* // Precompute the points of a public key with x=123 and y=456
11
* npm run cli 123 456
12
*/
13
-import precomputePoints from "../dist/module.js";
+import precomputePoints from "./dist/module.js";
14
15
try {
16
// get the arguments passed to the script
@@ -23,7 +23,7 @@ try {
23
);
24
25
// try to convert the arguments to bigint then precompute the points and log the results
26
- precomputePoints(BigInt(Number(x)), BigInt(Number(y))).then(console.log);
+ precomputePoints(BigInt(x), BigInt(y)).then(console.log);
27
} catch (e) {
28
console.error(e);
29
process.exit(1);
0 commit comments