bn.js
bn.js copied to clipboard
Improve error messages and argument checking in .imuln()
I got an "Assertion failed" after doing a .muln(10**9), which was not very helpful. Thus this improved error messages and some more checks.