bitwiseshiftleft/sjcl — pull request #179 by justmoon (2014-06-30 15:26:10+00:00)
Title: [FIX] Point coordinates should be converted to psuedo mersenne primes

Just a small fix that makes the constructor more robust. If you pass in `bn`s (a common mistake), you get very strange behavior for no apparent reason.

Since `bn` is a parent class of `pseudoMersennePrime`, it has most of the same functions, so you get pretty far without noticing anything wrong. Usually, the error is simply that SJCL hangs as number are getting larger and larger (operations modulo a pseudoMersennePrime are finite, regular integer arithmetic is not.)