Skip to content
Snippets Groups Projects
Commit 9c20d879 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Print hex

parent 31c6ac5f
No related branches found
No related tags found
3 merge requests!510Release,!226WIP: Api2.0,!207WIP: Client Restructure
......@@ -53,7 +53,7 @@ func (rrs *receivedRequestService) Process(message format.Message,
return
}
jww.INFO.Printf("partnerPubKeyBytes: %v", partnerPubKey.Bytes())
jww.INFO.Printf("partnerPubKey: %v", partnerPubKey.TextVerbose(16, 0))
jww.TRACE.Printf("processing requests: \n\t MYPUBKEY: %s "+
"\n\t PARTNERPUBKEY: %s \n\t ECRPAYLOAD: %s \n\t MAC: %s",
......
......@@ -8,6 +8,7 @@
package user
import (
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/crypto/backup"
"gitlab.com/elixxir/crypto/contact"
"gitlab.com/elixxir/crypto/cyclic"
......@@ -56,6 +57,10 @@ type Info struct {
}
func (u Info) GetContact() contact.Contact {
if u.E2eDhPublicKey == nil ||
u.E2eDhPublicKey.GetLargeInt().Int64() <= 1 {
jww.FATAL.Panicf("Public key empty, invalid contact")
}
return contact.Contact{
ID: u.ReceptionID.DeepCopy(),
DhPubKey: u.E2eDhPublicKey,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment