diff options
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index b0a85ae..0319e8d 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -72,7 +72,7 @@ type Network interface { BroadcastWitnessAck(witnessAck *types.WitnessAck) // SendDKGPrivateShare sends PrivateShare to a DKG participant. - SendDKGPrivateShare(recv types.NodeID, prvShare *types.DKGPrivateShare) + SendDKGPrivateShare(pub crypto.PublicKey, prvShare *types.DKGPrivateShare) // BroadcastDKGPrivateShare broadcasts PrivateShare to all DKG participants. BroadcastDKGPrivateShare(prvShare *types.DKGPrivateShare) @@ -99,7 +99,7 @@ type Governance interface { // GetNodeSet returns the node set at a given round. // Return the genesis node set if round == 0. - GetNodeSet(round uint64) map[types.NodeID]struct{} + GetNodeSet(round uint64) []crypto.PublicKey // Porpose a ThresholdSignature of round. ProposeThresholdSignature(round uint64, signature crypto.Signature) |