aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go')
-rw-r--r--vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go
index 492271e98..7076ef376 100644
--- a/vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go
+++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go
@@ -142,10 +142,6 @@ type tsigProtocol struct {
threshold int
}
-func newDKGID(ID types.NodeID) dkg.ID {
- return dkg.NewID(ID.Hash[:])
-}
-
func newDKGProtocol(
ID types.NodeID,
recv dkgReceiver,
@@ -156,7 +152,7 @@ func newDKGProtocol(
recv.ProposeDKGMasterPublicKey(&typesDKG.MasterPublicKey{
Round: round,
- DKGID: newDKGID(ID),
+ DKGID: typesDKG.NewID(ID),
PublicKeyShares: *pubShare,
})