From 6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Wed, 20 Mar 2019 14:57:12 +0800 Subject: core: merge notarySet and DKGSet (#488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup --- core/types/vote.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/types/vote.go') diff --git a/core/types/vote.go b/core/types/vote.go index c4a625e..8bc0c78 100644 --- a/core/types/vote.go +++ b/core/types/vote.go @@ -22,6 +22,7 @@ import ( "github.com/dexon-foundation/dexon-consensus/common" "github.com/dexon-foundation/dexon-consensus/core/crypto" + cryptoDKG "github.com/dexon-foundation/dexon-consensus/core/crypto/dkg" ) // VoteType is the type of vote. @@ -61,8 +62,9 @@ type VoteHeader struct { // Vote is the vote structure defined in Crypto Shuffle Algorithm. type Vote struct { - VoteHeader `json:"header"` - Signature crypto.Signature `json:"signature"` + VoteHeader `json:"header"` + PartialSignature cryptoDKG.PartialSignature `json:"partial_signature"` + Signature crypto.Signature `json:"signature"` } func (v *Vote) String() string { @@ -91,6 +93,8 @@ func (v *Vote) Clone() *Vote { Period: v.Period, Position: v.Position, }, + PartialSignature: cryptoDKG.PartialSignature( + crypto.Signature(v.PartialSignature).Clone()), Signature: v.Signature.Clone(), } } -- cgit v1.2.3