JSDoc and beautify for Passphrase

we should use preconditions instead of asset to check arguments, as we do in other modules.