|
|
@ -3,7 +3,7 @@ var Transaction = require('./transaction').Transaction |
|
|
|
var HDNode = require('./hdwallet.js') |
|
|
|
var rng = require('secure-random') |
|
|
|
|
|
|
|
var Wallet = function (seed, options) { |
|
|
|
function Wallet(seed, options) { |
|
|
|
if (!(this instanceof Wallet)) { return new Wallet(seed, options); } |
|
|
|
|
|
|
|
var options = options || {} |
|
|
@ -132,7 +132,7 @@ var Wallet = function (seed, options) { |
|
|
|
|
|
|
|
if (missingField) { |
|
|
|
var message = [ |
|
|
|
'Invalid unspent output: key', field, 'is missing.', |
|
|
|
'Invalid unspent output: key', missingField, 'is missing.', |
|
|
|
'A valid unspent output must contain' |
|
|
|
] |
|
|
|
message.push(requiredKeys.join(', ')) |
|
|
|