xpi-ts 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ export class ECDSA {
62
62
  const N = Point.getN();
63
63
  let k;
64
64
  do {
65
- k = new BN(Random.getPseudoRandomBuffer(32), 'be');
65
+ k = new BN(Random.getRandomBuffer(32), 'be');
66
66
  } while (!(k.lt(N) && k.gt(new BN(0))));
67
67
  this.k = k;
68
68
  return this;
@@ -84,7 +84,7 @@ export class PrivateKey {
84
84
  static _getRandomBN() {
85
85
  let bn;
86
86
  do {
87
- const privbuf = Random.getPseudoRandomBuffer(32);
87
+ const privbuf = Random.getRandomBuffer(32);
88
88
  bn = new BN(privbuf, 'be');
89
89
  } while (!bn.lt(Point.getN()));
90
90
  return bn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpi-ts",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Bitcore-compatible wallet SDK for Lotus",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",