Skip to content

Commit e6e06c5

Browse files
committed
fix Pedersen tests
1 parent ce7abf6 commit e6e06c5

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

share/vss/pedersen/vss.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,11 @@ func (d *Deal) Unmarshal(data []byte, suite Suite) error {
9595
if err != nil {
9696
return err
9797
}
98-
d = &Deal{
99-
SessionID: compatibleDeal.SessionID,
100-
T: compatibleDeal.T,
101-
SecShare: secShare,
102-
Commitments: compatibleDeal.Commitments,
103-
}
98+
99+
d.SessionID = compatibleDeal.SessionID
100+
d.T = compatibleDeal.T
101+
d.SecShare = secShare
102+
d.Commitments = compatibleDeal.Commitments
104103
return nil
105104
}
106105

0 commit comments

Comments
 (0)