At present if init function throws error if invalid mnemonic occurs which is not caught by createVault function. This results in end users unable to handle that error. Wrapping the call to init function with try catch and passing err to callback if error comes will allow users to gracefully handle the situation.
At present if init function throws error if invalid mnemonic occurs which is not caught by createVault function. This results in end users unable to handle that error. Wrapping the call to init function with try catch and passing err to callback if error comes will allow users to gracefully handle the situation.