Replace sjcl.bn with bn.js

This commit is contained in:
Nicholas Dudfield
2015-08-12 14:09:39 +07:00
parent ed971bc41c
commit b0889b4afe
12 changed files with 367 additions and 388 deletions

View File

@@ -31,11 +31,11 @@ describe('Base', function() {
describe('decode_check', function() {
it('rrrrrrrrrrrrrrrrrrrrrhoLvTp', function() {
const decoded = Base.decode_check(0, 'rrrrrrrrrrrrrrrrrrrrrhoLvTp');
assert(decoded.equals(0));
assert(decoded.cmpn(0) === 0);
});
it('rrrrrrrrrrrrrrrrrrrrBZbvji', function() {
const decoded = Base.decode_check(0, 'rrrrrrrrrrrrrrrrrrrrBZbvji');
assert(decoded.equals(1));
assert(decoded.cmpn(1) === 0);
});
});
describe('decode-encode identity', function() {

File diff suppressed because it is too large Load Diff