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

Debug messages and outputs so far

parent da82d523
Branches
Tags
No related merge requests found
......@@ -122,6 +122,8 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
cmixMsg.SetKeyFP(fp)
cmixMsg.SetMac(mac)
cmixMsg.SetContents(baseFmt.Marshal())
cmixMsg.SetRecipientID(partner.ID)
jww.INFO.Printf("PARTNER ID: %s", partner.ID)
/*store state*/
//fixme: channel is bricked if the first store succedes but the second fails
......@@ -135,6 +137,11 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
//store the message as a critical message so it will always be sent
storage.GetCriticalRawMessages().AddProcessing(cmixMsg)
//jww.INFO.Printf("CMIX MESSAGE 1: %s, %v, %v, %v", cmixMsg.GetRecipientID(),
// cmixMsg.GetKeyFP(), cmixMsg.GetMac(), cmixMsg.GetContents())
jww.INFO.Printf("CMIX MESSAGE FP: %s, %v", cmixMsg.GetRecipientID(),
cmixMsg.GetKeyFP())
/*send message*/
round, err := net.SendCMIX(cmixMsg, params.GetDefaultCMIX())
if err != nil {
......
......@@ -156,6 +156,7 @@ var rootCmd = &cobra.Command{
if viper.GetBool("unsafe-channel-creation") {
authMgr.AddGeneralRequestCallback(func(
requestor contact.Contact, message string) {
jww.INFO.Printf("Got Request: %s", requestor.ID)
err := client.ConfirmAuthenticatedChannel(
requestor)
if err != nil {
......
......@@ -18,7 +18,7 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.7.1
gitlab.com/elixxir/comms v0.0.3
gitlab.com/elixxir/crypto v0.0.4
gitlab.com/elixxir/crypto v0.0.5-0.20201109203841-ba162a25be6e
gitlab.com/elixxir/ekv v0.1.3
gitlab.com/elixxir/primitives v0.0.2
gitlab.com/xx_network/comms v0.0.3
......
......@@ -72,6 +72,7 @@ func (m *Manager) handleMessage(ecrMsg format.Message) {
Timestamp: time.Time{},
Encryption: message.None,
}
jww.INFO.Printf("Garbled/RAW Message: %v", msg.GetKeyFP())
m.Session.GetGarbledMessages().Add(msg)
m.Switchboard.Speak(raw)
return
......
......@@ -77,6 +77,7 @@ func (m *Manager) SendCMIX(msg format.Message, param params.CMIX) (id.Round, err
return 0, errors.WithMessage(err, "Failed to generate "+
"salt, this should never happen")
}
jww.INFO.Printf("RECIPIENTIDPRE_ENCRYPT: %s", msg.GetRecipientID())
encMsg, kmacs := roundKeys.Encrypt(msg, salt)
//build the message payload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment