diff --git a/lib/btc/uri.js b/lib/btc/uri.js index 82f65696..006b0388 100644 --- a/lib/btc/uri.js +++ b/lib/btc/uri.js @@ -58,11 +58,6 @@ URI.prototype.fromOptions = function fromOptions(options) { this.amount = options.amount; } - if (options.version != null) { - assert(util.isUInt32(options.version), 'Version must be a uint32.'); - this.version = options.version; - } - if (options.label) { assert(typeof options.label === 'string', 'Label must be a string.'); this.label = options.label; @@ -73,15 +68,6 @@ URI.prototype.fromOptions = function fromOptions(options) { this.message = options.message; } - if (options.key) { - if (typeof options.key === 'string') { - this.key = KeyRing.fromSecret(options.key); - } else { - this.key = KeyRing.fromOptions(options.key); - assert(this.key.privateKey, 'Key must have a private key.'); - } - } - if (options.request) { assert(typeof options.request === 'string', 'Request must be a string.'); this.request = options.request;