bn.js
Advanced tools
Comparing version 5.1.3 to 5.2.0
@@ -0,1 +1,7 @@ | ||
5.2.0 / 2021-02-23 | ||
------------------ | ||
- fix: Buffer not using global in browser (#260) | ||
- Fix LE constructor for HEX (#265) | ||
5.1.3 / 2020-08-14 | ||
@@ -2,0 +8,0 @@ ------------------ |
{ | ||
"name": "bn.js", | ||
"version": "5.1.3", | ||
"version": "5.2.0", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -35,9 +35,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.3", | ||
"mocha": "^7.0.1", | ||
"standardx": "^5.0.0" | ||
}, | ||
"standardx": { | ||
"parser": "babel-eslint" | ||
"eslint-plugin-es5": "^1.5.0", | ||
"mocha": "^8.3.0", | ||
"standardx": "^7.0.0" | ||
} | ||
} |
@@ -101,2 +101,3 @@ # <img src="./logo.png" alt="bn.js" width="160" height="160" /> | ||
* `a.mod(b)` - reduct (`u`, `n`) (but no `umodn`) | ||
* `a.divmod(b)` - quotient and modulus obtained by dividing | ||
* `a.divRound(b)` - rounded division | ||
@@ -110,3 +111,3 @@ | ||
* `a.xor(b)` - xor (`i`, `u`, `iu`) | ||
* `a.setn(b)` - set specified bit to `1` | ||
* `a.setn(b, value)` - set specified bit to `value` | ||
* `a.shln(b)` - shift left (`i`, `u`, `iu`) | ||
@@ -208,24 +209,3 @@ * `a.shrn(b)` - shift right (`i`, `u`, `iu`) | ||
Copyright Fedor Indutny, 2015. | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to permit | ||
persons to whom the Software is furnished to do so, subject to the | ||
following conditions: | ||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | ||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | ||
USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
[0]: https://en.wikipedia.org/wiki/Montgomery_modular_multiplication | ||
[1]: https://en.wikipedia.org/wiki/Mersenne_prime |
Sorry, the diff of this file is too big to display
100370
5
3038
209