After I have all the ECC functions that are required implemented, I'll make a general Curve scriptobject with support functions for as many kinds of things I can cram in there. Things like different key exchange protocols, etc.
It's gonna be great ;)
I'm also working on prettifying, splitting up, cleaning up, and commenting the code now.