How to use the lisk-elements.passphrase function in lisk-elements

To help you get started, we’ve selected a few lisk-elements examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiskHQ / lisk-core / qa / support / lisk_util.js View on Github external
createAccount() {
		const passphrase = elements.passphrase.Mnemonic.generateMnemonic();
		const { publicKey } = elements.cryptography.getKeys(passphrase);
		const address = elements.cryptography.getAddressFromPublicKey(publicKey);

		return {
			passphrase,
			publicKey,
			address,
		};
	}