Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Nxt Bounty for working JavaScript code that signs and verifies signatures
by
hoax
on 14/01/2014, 09:56:35 UTC
hoax, did you test the original cpp code? I tried but I got funny results Sad
Sources of what?

I have a few ideas about how to optimize the long class, but I need to spend time with a profiler first and see where all the time is being spent. Has anyone tried this already?

Look at my repo. I removed from Long all codepathsthat useless for long10 implementation. Also added multiplySmall, which faster when we multiple int64 by 1,2,4,9,19,38,76.

Maybe we can optimize further but with loss of readability or insignificantly Smiley

As i can seen now, https://github.com/rev22/curve255js have nice performance only for one reason: it have simplified math, which can't work with negative numbers. This is reason, why "verify" used this math doesn't work.