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 ...@@ -11,7 +11,6 @@ package cmd
import ( import (
"fmt" "fmt"
"gitlab.com/elixxir/client/xxdk" "gitlab.com/elixxir/client/xxdk"
"gitlab.com/elixxir/crypto/cyclic"
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
"time" "time"
...@@ -252,8 +251,7 @@ var udCmd = &cobra.Command{ ...@@ -252,8 +251,7 @@ var udCmd = &cobra.Command{
// to contact UD. // to contact UD.
func getUdContactInfo(user *xxdk.E2e) (cert, contactFile []byte, address string, err error) { func getUdContactInfo(user *xxdk.E2e) (cert, contactFile []byte, address string, err error) {
// Retrieve address // Retrieve address
address = string(user.GetCmix().GetInstance().GetPartialNdf(). address = user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.Address
Get().UDB.Address)
// Retrieve certificate // Retrieve certificate
cert = []byte(user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.Cert) cert = []byte(user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.Cert)
...@@ -267,7 +265,7 @@ func getUdContactInfo(user *xxdk.E2e) (cert, contactFile []byte, address string, ...@@ -267,7 +265,7 @@ func getUdContactInfo(user *xxdk.E2e) (cert, contactFile []byte, address string,
// Retrieve DH Pub Key // Retrieve DH Pub Key
udDhPubKeyData := user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.DhPubKey udDhPubKeyData := user.GetCmix().GetInstance().GetPartialNdf().Get().UDB.DhPubKey
var udDhPubKey *cyclic.Int udDhPubKey := user.GetE2E().GetGroup().NewInt(1)
err = udDhPubKey.UnmarshalJSON(udDhPubKeyData) err = udDhPubKey.UnmarshalJSON(udDhPubKeyData)
if err != nil { if err != nil {
return nil, nil, "", err 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