```

const r = bytesToNumber(r_bytes);

const P = Point.fromPrivateKey(r);

```

I'm not sure if this is where your bug is happening, but you don't need r because r_bytes is fine as a parameter for Point.fromPrivateKey so it is an unnecessary calculation.

I suggest using Typescript as having stricter types helps find bugs.

I am looking further to see if I can find anything wrong...

Reply to this note

Please Login to reply.

Discussion

No replies yet.