@@ -47,8 +47,8 @@ func TestHandleDecryptionKeyShareIntegration(t *testing.T) {
4747 shares := []* p2pmsg.KeyShare {}
4848 for _ , identityPreimage := range identityPreimages {
4949 share := & p2pmsg.KeyShare {
50- EpochId : identityPreimage .Bytes (),
51- Share : keys .EpochSecretKeyShare (identityPreimage , 0 ).Marshal (),
50+ IdentityPreimage : identityPreimage .Bytes (),
51+ Share : keys .EpochSecretKeyShare (identityPreimage , 0 ).Marshal (),
5252 }
5353 shares = append (shares , share )
5454 }
@@ -65,8 +65,8 @@ func TestHandleDecryptionKeyShareIntegration(t *testing.T) {
6565 shares = []* p2pmsg.KeyShare {}
6666 for _ , identityPreimage := range identityPreimages {
6767 share := & p2pmsg.KeyShare {
68- EpochId : identityPreimage .Bytes (),
69- Share : keys .EpochSecretKeyShare (identityPreimage , 2 ).Marshal (),
68+ IdentityPreimage : identityPreimage .Bytes (),
69+ Share : keys .EpochSecretKeyShare (identityPreimage , 2 ).Marshal (),
7070 }
7171 shares = append (shares , share )
7272 }
@@ -121,12 +121,12 @@ func TestDecryptionKeyshareValidatorIntegration(t *testing.T) {
121121 KeyperIndex : keyperIndex ,
122122 Shares : []* p2pmsg.KeyShare {
123123 {
124- EpochId : identityPreimage .Bytes (),
125- Share : keyshare ,
124+ IdentityPreimage : identityPreimage .Bytes (),
125+ Share : keyshare ,
126126 },
127127 {
128- EpochId : secondIdentityPreimage .Bytes (),
129- Share : secondKeyshare ,
128+ IdentityPreimage : secondIdentityPreimage .Bytes (),
129+ Share : secondKeyshare ,
130130 },
131131 },
132132 },
@@ -140,8 +140,8 @@ func TestDecryptionKeyshareValidatorIntegration(t *testing.T) {
140140 KeyperIndex : keyperIndex ,
141141 Shares : []* p2pmsg.KeyShare {
142142 {
143- EpochId : wrongIdentityPreimage .Bytes (),
144- Share : keyshare ,
143+ IdentityPreimage : wrongIdentityPreimage .Bytes (),
144+ Share : keyshare ,
145145 },
146146 },
147147 },
@@ -155,8 +155,8 @@ func TestDecryptionKeyshareValidatorIntegration(t *testing.T) {
155155 KeyperIndex : keyperIndex ,
156156 Shares : []* p2pmsg.KeyShare {
157157 {
158- EpochId : identityPreimage .Bytes (),
159- Share : keyshare ,
158+ IdentityPreimage : identityPreimage .Bytes (),
159+ Share : keyshare ,
160160 },
161161 },
162162 },
@@ -170,8 +170,8 @@ func TestDecryptionKeyshareValidatorIntegration(t *testing.T) {
170170 KeyperIndex : keyperIndex + 1 ,
171171 Shares : []* p2pmsg.KeyShare {
172172 {
173- EpochId : identityPreimage .Bytes (),
174- Share : keyshare ,
173+ IdentityPreimage : identityPreimage .Bytes (),
174+ Share : keyshare ,
175175 },
176176 },
177177 },
@@ -195,12 +195,12 @@ func TestDecryptionKeyshareValidatorIntegration(t *testing.T) {
195195 KeyperIndex : keyperIndex ,
196196 Shares : []* p2pmsg.KeyShare {
197197 {
198- EpochId : secondIdentityPreimage .Bytes (),
199- Share : secondKeyshare ,
198+ IdentityPreimage : secondIdentityPreimage .Bytes (),
199+ Share : secondKeyshare ,
200200 },
201201 {
202- EpochId : identityPreimage .Bytes (),
203- Share : keyshare ,
202+ IdentityPreimage : identityPreimage .Bytes (),
203+ Share : keyshare ,
204204 },
205205 },
206206 },
0 commit comments