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

Add E2E creation during storage initialization

parent f562ff96
No related branches found
No related tags found
3 merge requests!510Release,!207WIP: Client Restructure,!203Symmetric broadcast
...@@ -20,6 +20,7 @@ import ( ...@@ -20,6 +20,7 @@ import (
"gitlab.com/elixxir/client/cmix" "gitlab.com/elixxir/client/cmix"
"gitlab.com/elixxir/client/e2e" "gitlab.com/elixxir/client/e2e"
"gitlab.com/elixxir/client/e2e/receive" "gitlab.com/elixxir/client/e2e/receive"
"gitlab.com/elixxir/client/e2e/rekey"
"gitlab.com/elixxir/client/event" "gitlab.com/elixxir/client/event"
"gitlab.com/elixxir/client/interfaces" "gitlab.com/elixxir/client/interfaces"
"gitlab.com/elixxir/client/registration" "gitlab.com/elixxir/client/registration"
...@@ -936,7 +937,7 @@ func checkVersionAndSetupStorage(def *ndf.NetworkDefinition, ...@@ -936,7 +937,7 @@ func checkVersionAndSetupStorage(def *ndf.NetworkDefinition,
//store the registration code for later use //store the registration code for later use
storageSess.SetRegCode(registrationCode) storageSess.SetRegCode(registrationCode)
//move the registration state to keys generaXSted //move the registration state to keys generated
err = storageSess.ForwardRegistrationStatus(storage.KeyGenComplete) err = storageSess.ForwardRegistrationStatus(storage.KeyGenComplete)
if err != nil { if err != nil {
...@@ -944,5 +945,13 @@ func checkVersionAndSetupStorage(def *ndf.NetworkDefinition, ...@@ -944,5 +945,13 @@ func checkVersionAndSetupStorage(def *ndf.NetworkDefinition,
"change in session") "change in session")
} }
// create new E2E
rekeyParams := rekey.GetDefaultParams()
err = e2e.Init(storageSess.GetKV(), protoUser.ReceptionID,
protoUser.E2eDhPrivateKey, e2eGrp, rekeyParams)
if err != nil {
return nil, err
}
return storageSess, nil return storageSess, nil
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment