From 3ffb61065ffef8550c2c06bcbff026ddd6e2840d Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 4 Sep 2017 20:35:11 -0700 Subject: [PATCH] expose call go GetOniondAddr --- goRicochetMobile.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/goRicochetMobile.go b/goRicochetMobile.go index 09e22a2..f3dc352 100644 --- a/goRicochetMobile.go +++ b/goRicochetMobile.go @@ -16,6 +16,10 @@ func GeneratePrivateKey() (string, error) { return utils.PrivateKeyToString(privateKey), nil } +func GetOnionAddress(privateKey string) string { + return utils.GetOnionAddr(privateKey) +} + func TestNet() (ok bool, ex error) { _, err := http.Get("http://golang.org/") if err != nil { @@ -30,7 +34,6 @@ func EchoBot(privateKeyData string) { if err != nil { log.Fatal("error parsing private key: %v", err) } - echobot := new(application.RicochetApplication) log.Println("SetupOnion()...")