Skip to content
Snippets Groups Projects
Commit 2bf3c3bf authored by Jake Taylor's avatar Jake Taylor
Browse files

fix udb contact

parent f04d1cda
No related branches found
No related tags found
2 merge requests!510Release,!354Channels impl
......@@ -11,7 +11,6 @@ package cmd
import (
"fmt"
"gitlab.com/elixxir/client/xxdk"
"gitlab.com/elixxir/crypto/cyclic"
"gitlab.com/xx_network/primitives/id"
"time"
......@@ -252,8 +251,7 @@ var udCmd = &cobra.Command{
// to contact UD.
func getUdContactInfo(user *xxdk.E2e) (cert, contactFile []byte, address string, err error) {
// Retrieve address
address = string(user.GetCmix().GetInstance().GetPartialNdf().
Get().UDB.Address)
address = user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.Address
// Retrieve certificate
cert = []byte(user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.Cert)
......@@ -267,7 +265,7 @@ func getUdContactInfo(user *xxdk.E2e) (cert, contactFile []byte, address string,
// Retrieve DH Pub Key
udDhPubKeyData := user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.DhPubKey
var udDhPubKey *cyclic.Int
udDhPubKey := user.GetE2E().GetGroup().NewInt(1)
err = udDhPubKey.UnmarshalJSON(udDhPubKeyData)
if err != nil {
return nil, nil, "", err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment