mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
Update code comment (#90)
This commit is contained in:
@@ -25,7 +25,7 @@ function deriveScalar(bytes, discrim?: number) {
|
||||
* https://github.com/indutny/elliptic/blob/master/lib/elliptic/curves.js#L182
|
||||
* How often will an (essentially) random number generated by Sha512 be larger than that?
|
||||
* There's 2^32 chances (the for loop) to get a number smaller than the order,
|
||||
* so it's rare that you'll even get past the first loop iteration.
|
||||
* and it's rare that you'll even get past the first loop iteration.
|
||||
* Note that in TypeScript we actually need the throw, otherwise the function signature would be BN | undefined
|
||||
*/
|
||||
/* istanbul ignore next */
|
||||
|
||||
Reference in New Issue
Block a user