How to use the _prime function from bn.js

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

4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
//
// Base reduction engine
//
function Red (m) {
  if (typeof m === 'string') {
    var prime = BN._prime(m);
    this.m = prime.p;
    this.prime = prime;
  } else {
    assert(m.gtn(1), 'modulus must be greater than 1');
fork icon2
star icon1
watch icon1

+ 2 other calls in file