Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createAccount() {
const passphrase = elements.passphrase.Mnemonic.generateMnemonic();
const { publicKey } = elements.cryptography.getKeys(passphrase);
const address = elements.cryptography.getAddressFromPublicKey(publicKey);
return {
passphrase,
publicKey,
address,
};
}