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');
2
1
1
+ 2 other calls in file
bn.js.prototype is the most popular function in bn.js (15750 examples)