src/index.js
function generate(entropy) {
  if (typeof entropy !== 'string') { throw new Error(`[ethjs-account] while generating account, invalid input type: '${typeof(entropy)}' should be type 'String'.`); }
  if (entropy.length < 32) { throw new Error(`[ethjs-account] while generating account, entropy value not random and long enough, should be at least 32 characters of random information, is only ${entropy.length}`); }

  return privateToAccount(sha3(`${randomhex(16)}${sha3(`${randomhex(32)}${entropy}`)}${randomhex(32)}`));
}
function generate(entropy) {
  if (typeof entropy !== 'string') { throw new Error(`[ethjs-account] while generating account, invalid input type: '${typeof(entropy)}' should be type 'String'.`); }
  if (entropy.length < 32) { throw new Error(`[ethjs-account] while generating account, entropy value not random and long enough, should be at least 32 characters of random information, is only ${entropy.length}`); }

  return privateToAccount(sha3(`${randomhex(16)}${sha3(`${randomhex(32)}${entropy}`)}${randomhex(32)}`));
}
function generate ( entropy ) { if ( typeof entropy !== 'string' ) { throw new Error ( ` ${ typeof ( entropy ) } ` ) ; } if ( entropy . length < 32 ) { throw new Error ( ` ${ entropy . length } ` ) ; } return privateToAccount ( sha3 ( ` ${ randomhex ( 16 ) } ${ sha3 ( ` ${ randomhex ( 32 ) } ${ entropy } ` ) } ${ randomhex ( 32 ) } ` ) ) ; }
Create a single Ethereum account address, private and public key.

@method generate
@param {String} entropy a single string of entropy longer than 32 chars
@returns {Object} output the Ethereum account address, and keys
Create a single Ethereum account address private and public key .