Skip to content

Commit

Permalink
[eth] added EthAddress to mobile package
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Lenz committed May 15, 2018
1 parent 08eb332 commit 5fc96cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 9 additions & 1 deletion mobile/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,18 @@ func EthPrivateKey() (string, error) {
return "", errors.New("you have to start panthalassa")
}

return panthalassaInstance.EthereumPrivateKey()
return panthalassaInstance.km.GetEthereumPrivateKey()

}

func EthAddress() (string, error) {
if panthalassaInstance == nil {
return "", errors.New("you have to start panthalassa")
}

return panthalassaInstance.km.GetEthereumAddress()
}

func SendResponse(id uint32, data string) error {

if panthalassaInstance == nil {
Expand Down
5 changes: 0 additions & 5 deletions mobile/panthalassa.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ type panthalassa struct {
deviceApi *deviceApi.Api
}

//Get ethereum private key of panthalassa instance
func (p panthalassa) EthereumPrivateKey() (string, error) {
return p.km.GetEthereumPrivateKey()
}

//Stop the panthalassa instance
//this becomes interesting when we start
//to use the mesh network
Expand Down

0 comments on commit 5fc96cf

Please sign in to comment.