How to use the prototype function from bn.js

Find comprehensive JavaScript bn.js.prototype code examples handpicked from public code repositorys.

3197
3198
3199
3200
3201
3202
3203
3204
3205
3206

BN.prototype.abs = function abs () {
  return this.clone().iabs();
};

BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {
  var len = num.length + shift;
  var i;

  this._expand(len);
fork icon2
star icon1
watch icon0

+ 371 other calls in file

8
9
10
11
12
13
14
15
16
17
    return new BN(n, base);
  }
  _BN.apply(this, arguments);
};

BN.prototype = _BN.prototype;

var reversebuf = function(buf) {
  var buf2 = new Buffer(buf.length);
  for (var i = 0; i < buf.length; i++) {
fork icon0
star icon0
watch icon2