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

Latest debugging

parent a3abeb1b
Branches
Tags
No related merge requests found
......@@ -28,6 +28,7 @@ func (m *Manager) StartProcessies() stoppable.Stoppable {
//lookup the message, check if it is an auth request
cmixMsg := format.Unmarshal(msg.Payload)
fp := cmixMsg.GetKeyFP()
jww.INFO.Printf("RAW AUTH FP: %v", fp)
// this takes the request lock if it is a specific fp,
// all exits after this need to call fail or Delete if it is
// specific
......@@ -193,6 +194,9 @@ func (m *Manager) handleConfirm(cmixMsg format.Message, sr *auth.SentRequest,
return
}
jww.INFO.Printf("PARTNERPUBKEY: %v", partnerPubKey.Bytes())
jww.INFO.Printf("LOCALPUBKEY: %v", sr.GetMyPubKey().Bytes())
// decrypt the payload
success, payload := cAuth.Decrypt(sr.GetMyPrivKey(),
partnerPubKey, baseFmt.GetSalt(), baseFmt.GetEcrPayload(),
......
......@@ -106,6 +106,9 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
newPrivKey := diffieHellman.GeneratePrivateKey(256, grp, rng)
newPubKey := diffieHellman.GeneratePublicKey(newPrivKey, grp)
jww.INFO.Printf("MYPUBKEY: %v", newPubKey.Bytes())
jww.INFO.Printf("THEIRPUBKEY: %v", partner.DhPubKey.Bytes())
/*encrypt payload*/
requestFmt.SetID(storage.GetUser().ID)
requestFmt.SetMsgPayload(msgPayloadBytes)
......
......@@ -215,6 +215,8 @@ var rootCmd = &cobra.Command{
paramsE2E := params.GetDefaultE2E()
paramsUnsafe := params.GetDefaultUnsafe()
time.Sleep(10 * time.Second)
sendCnt := int(viper.GetUint("sendCount"))
sendDelay := time.Duration(viper.GetUint("sendDelay"))
for i := 0; i < sendCnt; i++ {
......
......@@ -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.5-0.20201109203841-ba162a25be6e
gitlab.com/elixxir/crypto v0.0.5-0.20201109234712-7e64de16970d
gitlab.com/elixxir/ekv v0.1.3
gitlab.com/elixxir/primitives v0.0.2
gitlab.com/xx_network/comms v0.0.3
......
......@@ -262,6 +262,8 @@ gitlab.com/elixxir/crypto v0.0.5-0.20201109195944-c4a4090b258a h1:SnZm8bO8Cw4j7F
gitlab.com/elixxir/crypto v0.0.5-0.20201109195944-c4a4090b258a/go.mod h1:ZNgBOblhYToR4m8tj4cMvJ9UsJAUKq+p0gCp07WQmhA=
gitlab.com/elixxir/crypto v0.0.5-0.20201109203841-ba162a25be6e h1:rkT8Pzjgo9oF3uS8ExHGNUQoJX/22qK3lU+vU8QsOCY=
gitlab.com/elixxir/crypto v0.0.5-0.20201109203841-ba162a25be6e/go.mod h1:ZNgBOblhYToR4m8tj4cMvJ9UsJAUKq+p0gCp07WQmhA=
gitlab.com/elixxir/crypto v0.0.5-0.20201109234712-7e64de16970d h1:9Peb/peftTVeO5gYqi37sZycMEiu05+2VZ/j8d5lldI=
gitlab.com/elixxir/crypto v0.0.5-0.20201109234712-7e64de16970d/go.mod h1:ZNgBOblhYToR4m8tj4cMvJ9UsJAUKq+p0gCp07WQmhA=
gitlab.com/elixxir/ekv v0.1.3 h1:OE+LBMIhjGUMwc6hHJzYvEPNJQV7t1vMnJyIgxUMUo8=
gitlab.com/elixxir/ekv v0.1.3/go.mod h1:e6WPUt97taFZe5PFLPb1Dupk7tqmDCTQu1kkstqJvw4=
gitlab.com/elixxir/primitives v0.0.0-20200731184040-494269b53b4d/go.mod h1:OQgUZq7SjnE0b+8+iIAT2eqQF+2IFHn73tOo+aV11mg=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment