diff options
Diffstat (limited to 'core/crypto.go')
-rw-r--r-- | core/crypto.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/crypto.go b/core/crypto.go index c95811e..26e44f9 100644 --- a/core/crypto.go +++ b/core/crypto.go @@ -225,9 +225,13 @@ func hashDKGPartialSignature(psig *types.DKGPartialSignature) common.Hash { binaryRound := make([]byte, 8) binary.LittleEndian.PutUint64(binaryRound, psig.Round) + binaryType := make([]byte, 4) + binary.LittleEndian.PutUint32(binaryType, uint32(psig.Type)) + return crypto.Keccak256Hash( psig.ProposerID.Hash[:], binaryRound, + binaryType, psig.PartialSignature[:], ) } |