Skip to content
Snippets Groups Projects
Commit 9ec04cb7 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

ITS ALIVE

parent 89872e8c
No related branches found
No related tags found
No related merge requests found
...@@ -208,6 +208,8 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (* ...@@ -208,6 +208,8 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (*
privateKey := params.PrivateKeyGen(rand.Reader) privateKey := params.PrivateKeyGen(rand.Reader)
publicKey := privateKey.PublicKeyGen() publicKey := privateKey.PublicKeyGen()
fmt.Println("gened private keys")
// Handle precanned registration // Handle precanned registration
if preCan { if preCan {
var successLook bool var successLook bool
...@@ -295,7 +297,7 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (* ...@@ -295,7 +297,7 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (*
// Disconnect from regServer here since it will not be needed // Disconnect from regServer here since it will not be needed
(cl.comm).(*io.Messaging).Comms.Disconnect(cl.ndf.Registration.Address) (cl.comm).(*io.Messaging).Comms.Disconnect(cl.ndf.Registration.Address)
} }
fmt.Println("passed reg")
// Loop over all Servers // Loop over all Servers
for _, gateway := range cl.ndf.Gateways { for _, gateway := range cl.ndf.Gateways {
......
...@@ -8,6 +8,7 @@ package bindings ...@@ -8,6 +8,7 @@ package bindings
import ( import (
"errors" "errors"
"fmt"
"gitlab.com/elixxir/client/api" "gitlab.com/elixxir/client/api"
"gitlab.com/elixxir/client/globals" "gitlab.com/elixxir/client/globals"
"gitlab.com/elixxir/client/parse" "gitlab.com/elixxir/client/parse"
...@@ -123,7 +124,7 @@ func (cl *Client) Connect() error { ...@@ -123,7 +124,7 @@ func (cl *Client) Connect() error {
// gwAddressesList is CSV of gateway addresses // gwAddressesList is CSV of gateway addresses
// grp is the CMIX group needed for keys generation in JSON string format // grp is the CMIX group needed for keys generation in JSON string format
func (cl *Client) Register(preCan bool, registrationCode, nick, email string) ([]byte, error) { func (cl *Client) Register(preCan bool, registrationCode, nick, email string) ([]byte, error) {
fmt.Println("calling client reg")
UID, err := cl.client.Register(preCan, registrationCode, nick, email) UID, err := cl.client.Register(preCan, registrationCode, nick, email)
if err != nil { if err != nil {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment