From 9c8f9a447bfd768a7b29db904bd604410ec66a09 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Tue, 28 Aug 2018 11:21:48 +0800 Subject: core: Add vote type and add field to block. (#76) --- crypto/utils.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto') diff --git a/crypto/utils.go b/crypto/utils.go index 5534ece..dfb4987 100644 --- a/crypto/utils.go +++ b/crypto/utils.go @@ -28,3 +28,8 @@ import ( func Keccak256Hash(data ...[]byte) (h common.Hash) { return common.Hash(crypto.Keccak256Hash(data...)) } + +// Clone returns a deep copy of a signature. +func (sig Signature) Clone() Signature { + return append(Signature{}, sig...) +} -- cgit v1.2.3