bn sub incorrect result
guidovranken opened this issue · comments
Guido Vranken commented
{
var bn1 = new sjcl.bn("12c");
var bn2 = new sjcl.bn("c623c5a01658c5eacfc91f2305b3ec");
console.log(bn1.sub(bn2).toString());
}
Expected result:
0x-c623c5a01658c5eacfc91f2305b2c0
Actual result:
0x-c623c65fe9a73a153036e0dcfa4d40