aboutsummaryrefslogtreecommitdiffstats
path: root/core/interfaces.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-26 09:55:08 +0800
committerGitHub <noreply@github.com>2018-09-26 09:55:08 +0800
commita79c10ff1f4717e7e26096f81a57df10b8c9a592 (patch)
tree69081c65669f0a68e7f27a81efffbacfb1983f10 /core/interfaces.go
parent0ffea9dadcfc0d8a740942a2d666eccc00613cd4 (diff)
downloaddexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.tar
dexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.tar.gz
dexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.tar.bz2
dexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.tar.lz
dexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.tar.xz
dexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.tar.zst
dexon-consensus-a79c10ff1f4717e7e26096f81a57df10b8c9a592.zip
core: run TSIG for first configuration block at startup (#135)
Diffstat (limited to 'core/interfaces.go')
-rw-r--r--core/interfaces.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/interfaces.go b/core/interfaces.go
index 940d9b5..7f6ff2b 100644
--- a/core/interfaces.go
+++ b/core/interfaces.go
@@ -22,6 +22,7 @@ import (
"github.com/dexon-foundation/dexon-consensus-core/common"
"github.com/dexon-foundation/dexon-consensus-core/core/types"
+ "github.com/dexon-foundation/dexon-consensus-core/crypto"
)
// Application describes the application interface that interacts with DEXON
@@ -76,6 +77,10 @@ type Network interface {
// BroadcastDKGPrivateShare broadcasts PrivateShare to all DKG participants.
BroadcastDKGPrivateShare(prvShare *types.DKGPrivateShare)
+ // BroadcastDKGPartialSignature broadcasts partialSignature to all
+ // DKG participants.
+ BroadcastDKGPartialSignature(psig *types.DKGPartialSignature)
+
// ReceiveChan returns a channel to receive messages from DEXON network.
ReceiveChan() <-chan interface{}
}
@@ -92,6 +97,12 @@ type Governance interface {
// Return the genesis notary set if blockHeight == 0.
GetNotarySet(blockHeight uint64) map[types.NodeID]struct{}
+ // Porpose a ThresholdSignature of round.
+ ProposeThresholdSignature(round uint64, signature crypto.Signature)
+
+ // Get a ThresholdSignature of round.
+ GetThresholdSignature(round uint64) (sig crypto.Signature, exist bool)
+
//// DKG-related methods.
// AddDKGComplaint adds a DKGComplaint.