|
@ -3,7 +3,9 @@ var point = require('./point'); |
|
|
var constants = require('./constants'); |
|
|
var constants = require('./constants'); |
|
|
var base58check = require('./base58check'); |
|
|
var base58check = require('./base58check'); |
|
|
|
|
|
|
|
|
var Privkey = function(bn, network, compressed) { |
|
|
var Privkey = function Privkey(bn, network, compressed) { |
|
|
|
|
|
if (!(this instanceof Privkey)) |
|
|
|
|
|
return new Privkey(bn, network, compressed); |
|
|
this.bn = bn; |
|
|
this.bn = bn; |
|
|
this.network = network; |
|
|
this.network = network; |
|
|
this.compressed = compressed; |
|
|
this.compressed = compressed; |
|
|