hello-world-part-four-tutorial
hello-world-part-four-tutorial copied to clipboard
Code doesn't work any more
At least with pnpm, it has various issue. please upgrade it to make it up to date.
For example:
Failed to compile.
../node_modules/.pnpm/@[email protected]/node_modules/@noble/curves/abstract/weierstrass.js 1016:57
Module parse failed: Unexpected token (1016:57)
File was processed with these loaders:
* ./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| const u1 = modN(h * is); // u1 = hs^-1 mod n
| const u2 = modN(r * is); // u2 = rs^-1 mod n
> const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P
| if (!R) return false;
| const v = modN(R.x);