Skip to content

Commit ce7abf6

Browse files
committed
use Marshal method in Rabin DKG instead of protobuf
1 parent 57f3c8c commit ce7abf6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

share/dkg/rabin/dkg.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import (
4242
"fmt"
4343

4444
"go.dedis.ch/kyber/v4"
45-
"go.dedis.ch/kyber/v4/internal/protobuf"
4645
"go.dedis.ch/kyber/v4/share"
4746
vss "go.dedis.ch/kyber/v4/share/vss/rabin"
4847
"go.dedis.ch/kyber/v4/sign/schnorr"
@@ -681,7 +680,7 @@ func (cc *ComplaintCommits) Hash(s Suite) []byte {
681680
_, _ = h.Write([]byte("commitcomplaint"))
682681
_ = binary.Write(h, binary.LittleEndian, cc.Index)
683682
_ = binary.Write(h, binary.LittleEndian, cc.DealerIndex)
684-
buff, _ := protobuf.Encode(cc.Deal)
683+
buff, _ := cc.Deal.Marshal()
685684
_, _ = h.Write(buff)
686685
return h.Sum(nil)
687686
}

0 commit comments

Comments
 (0)