Consensys / eth-lightwallet

Lightweight JS Wallet for Node and the browser
MIT License
1.47k stars 503 forks source link

Return the newly generated address in keystore.generateNewAddress() #98

Open sharkfisher opened 8 years ago

sharkfisher commented 8 years ago

Can the generateNewAddress(derivedPwKey, N) function be modified to return the newly generated address(es) as a convenience instead of returning undefined? The most likely thing a client does after generating new address(es) is to access them. This enhancement would save the client the extra step to call keystore.getAddresses() and obtain the last N addresses to gain access to those new addresses. Of course, the return would be an array type of new addresses.