Skip to content
Snippets Groups Projects
Commit d7f27a80 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed the default preimage in sendCmix

parent 7b0f188d
No related branches found
No related tags found
3 merge requests!67Release,!60Hotfic/preimage,!55fully implemented trial hashing of identity fingerprints. Needs tests.
...@@ -11,6 +11,7 @@ import ( ...@@ -11,6 +11,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/interfaces/params" "gitlab.com/elixxir/client/interfaces/params"
preimage2 "gitlab.com/elixxir/client/interfaces/preimage"
"gitlab.com/elixxir/client/storage" "gitlab.com/elixxir/client/storage"
"gitlab.com/elixxir/client/storage/cmix" "gitlab.com/elixxir/client/storage/cmix"
pb "gitlab.com/elixxir/comms/mixmessages" pb "gitlab.com/elixxir/comms/mixmessages"
...@@ -141,7 +142,7 @@ func buildSlotMessage(msg format.Message, recipient *id.ID, target *id.ID, ...@@ -141,7 +142,7 @@ func buildSlotMessage(msg format.Message, recipient *id.ID, target *id.ID,
msg.SetEphemeralRID(ephIdFilled[:]) msg.SetEphemeralRID(ephIdFilled[:])
// use the alternate identity preimage if it is set // use the alternate identity preimage if it is set
preimage := recipient[:] preimage := preimage2.MakeDefault(senderId)
if param.IdentityPreimage != nil { if param.IdentityPreimage != nil {
preimage = param.IdentityPreimage preimage = param.IdentityPreimage
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment