1 parent caf6c87 commit 073ee0aCopy full SHA for 073ee0a
2 files changed
lib/privkey.js
@@ -6,7 +6,7 @@ var Random = require('./random');
6
7
var Privkey = function Privkey(bn) {
8
if (!(this instanceof Privkey))
9
- return new Privkey(obj);
+ return new Privkey(bn);
10
if (bn instanceof BN)
11
this.bn = bn;
12
else if (bn) {
lib/pubkey.js
@@ -4,7 +4,7 @@ var privkey = require('./privkey');
4
5
var Pubkey = function Pubkey(point) {
if (!(this instanceof Pubkey))
- return new Pubkey(obj);
+ return new Pubkey(point);
if (point instanceof Point)
this.point = point;
else if (point) {
0 commit comments