services/utils/generate_address.js
function (params) {
  const oThis = this
  ;

  params = params || {};
  oThis.passphrase = params.passphrase || '';
  oThis.chain = params.chain;
}
function (params) {
  const oThis = this
  ;

  params = params || {};
  oThis.passphrase = params.passphrase || '';
  oThis.chain = params.chain;
}
function ( params ) { const oThis = this ; params = params || { } ; oThis . passphrase = params . passphrase || '' ; oThis . chain = params . chain ; }
Constructor to generate a new address

@param {object} params
@param {string} params.chain - Chain on which this new address should be generated and stored
@param {string} [params.passphrase] - Passphrase for the new address. Default: blank

@constructor
Constructor to generate a new address