aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-01-04 16:24:26 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:21 +0800
commit9a8e616df90409e1a94b7843d1ceddcf010bc11b (patch)
tree9ee2a492ea8c5406bf7df078b1b2f028af1d65a7 /vendor/github.com/dexon-foundation/dexon-consensus/core/dkg-tsig-protocol.go
parentb92aa8f1590c3ecb1e2fe8ba12a5092ca190786c (diff)
downloadgo-tangerine-9a8e616df90409e1a94b7843d1ceddcf010bc11b.tar.gz
go-tangerine-9a8e616df90409e1a94b7843d1ceddcf010bc11b.tar.zst
go-tangerine-9a8e616df90409e1a94b7843d1ceddcf010bc11b.zip
vendor: sync to latest core (#125)
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,
})