|
@ -302,6 +302,9 @@ PrivateKey.getValidationError = function(data, network) { |
|
|
* @returns {Boolean} If the private key is would be valid |
|
|
* @returns {Boolean} If the private key is would be valid |
|
|
*/ |
|
|
*/ |
|
|
PrivateKey.isValid = function(data, network){ |
|
|
PrivateKey.isValid = function(data, network){ |
|
|
|
|
|
if (!data) { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
return !PrivateKey.getValidationError(data, network); |
|
|
return !PrivateKey.getValidationError(data, network); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|