|
|
@ -184,7 +184,7 @@ HDPublicKey.prototype._deriveWithNumber = function(index, hardened) { |
|
|
|
|
|
|
|
HDPublicKey.prototype._deriveFromString = function(path) { |
|
|
|
/* jshint maxcomplexity: 8 */ |
|
|
|
if (_.contains(path, "'")) { |
|
|
|
if (_.includes(path, "'")) { |
|
|
|
throw new hdErrors.InvalidIndexCantDeriveHardened(); |
|
|
|
} else if (!HDPublicKey.isValidPath(path)) { |
|
|
|
throw new hdErrors.InvalidPath(path); |
|
|
|