diff --git a/bindings/connect.go b/bindings/connect.go index 75e1d7f4045f33ffd1d6eaecbe5019ae4c9305ca..5e9e55f8b456125c334c87adf4355debb903d6e6 100644 --- a/bindings/connect.go +++ b/bindings/connect.go @@ -96,7 +96,7 @@ func (c *Connection) SendE2E(mt int, payload []byte) ([]byte, error) { RoundsList: makeRoundsList(rounds...), MessageID: mid.Marshal(), Timestamp: ts.UnixNano(), - KeyResidue: keyResidue, + KeyResidue: keyResidue.Marshal(), } return json.Marshal(&sr) diff --git a/bindings/e2eHandler.go b/bindings/e2eHandler.go index a80e23e08d9a47d17446b2474fbfe0157a7021dc..27e7c3ed74354456aeb5dfbd390457339c244dd6 100644 --- a/bindings/e2eHandler.go +++ b/bindings/e2eHandler.go @@ -31,9 +31,8 @@ import ( // } type E2ESendReport struct { RoundsList - MessageID []byte - Timestamp int64 - // todo: make marshal function + MessageID []byte + Timestamp int64 KeyResidue []byte } @@ -145,7 +144,7 @@ func (e *E2e) SendE2E(messageType int, recipientId, payload, RoundsList: makeRoundsList(roundIds...), MessageID: messageId.Marshal(), Timestamp: ts.UnixNano(), - KeyResidue: keyResidue, + KeyResidue: keyResidue.Marshal(), } return json.Marshal(result) } diff --git a/go.mod b/go.mod index edc4b55490617a80ab6014511272be4859706f2d..f8abc624c6bcc9e559a6858e00c2a67dfae5bc53 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/spf13/viper v1.12.0 gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f gitlab.com/elixxir/comms v0.0.4-0.20220603231314-e47e4af13326 - gitlab.com/elixxir/crypto v0.0.7-0.20220822180822-5e1b688a9500 + gitlab.com/elixxir/crypto v0.0.7-0.20220823235814-7f7036f95acb gitlab.com/elixxir/ekv v0.1.7 gitlab.com/elixxir/primitives v0.0.3-0.20220606195757-40f7a589347f gitlab.com/xx_network/comms v0.0.4-0.20220630163702-f3d372ef6acd diff --git a/go.sum b/go.sum index 79f9648c490f00c54041d68f1236bca95ba01c2b..9925d78e0e0e4d77ccdcb4fa2407dd180d04f4ce 100644 --- a/go.sum +++ b/go.sum @@ -444,6 +444,8 @@ gitlab.com/elixxir/crypto v0.0.7-0.20220822180551-92d06134b333 h1:V19ek4Hz3k1JB5 gitlab.com/elixxir/crypto v0.0.7-0.20220822180551-92d06134b333/go.mod h1:0gH41Kb/a9Akdv+2+vMJVdx+REVwR8CZXTr2+BrgeeA= gitlab.com/elixxir/crypto v0.0.7-0.20220822180822-5e1b688a9500 h1:KI+7GoG2/9x/J5qdr9VCd2woGwE8RDaSMrt9STYfBKU= gitlab.com/elixxir/crypto v0.0.7-0.20220822180822-5e1b688a9500/go.mod h1:0gH41Kb/a9Akdv+2+vMJVdx+REVwR8CZXTr2+BrgeeA= +gitlab.com/elixxir/crypto v0.0.7-0.20220823235814-7f7036f95acb h1:J5/yaBi7ZucSLIVHUanxgV6FKT/yDzF5I4TQYZsQqIQ= +gitlab.com/elixxir/crypto v0.0.7-0.20220823235814-7f7036f95acb/go.mod h1:0gH41Kb/a9Akdv+2+vMJVdx+REVwR8CZXTr2+BrgeeA= gitlab.com/elixxir/ekv v0.1.7 h1:OW2z+N4QCqqMFzouAwFTWWMKz0Y/PDhyYReN7gQ5NiQ= gitlab.com/elixxir/ekv v0.1.7/go.mod h1:e6WPUt97taFZe5PFLPb1Dupk7tqmDCTQu1kkstqJvw4= gitlab.com/elixxir/primitives v0.0.0-20200731184040-494269b53b4d/go.mod h1:OQgUZq7SjnE0b+8+iIAT2eqQF+2IFHn73tOo+aV11mg=