perun-network / perun-eth-mobile

:iphone: Mobile bindings for two-party-payment channels on Ethereum using go-perun.
https://perun.network/
Apache License 2.0
5 stars 3 forks source link

Function for creating accounts in wallets #8

Closed sebastianst closed 4 years ago

sebastianst commented 4 years ago

We discussed to create a new function

prnm.CreateAccount(walletPath, passphrase string) (account string, err error)

that opens or creates a wallet path and then generates a new account in it and returns its address.

_Originally posted by @sebastianst in https://github.com/perun-network/perun-eth-mobile/pull/1/review_comment/create_