diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-28 11:21:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 11:21:48 +0800 |
commit | 9c8f9a447bfd768a7b29db904bd604410ec66a09 (patch) | |
tree | 76495e11738e24e4ff3f27d647509f29012eea6f /crypto | |
parent | e122cb236312e0ca3ef6e0207a20890ec1e7bfaf (diff) | |
download | dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.tar dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.tar.gz dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.tar.bz2 dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.tar.lz dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.tar.xz dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.tar.zst dexon-consensus-9c8f9a447bfd768a7b29db904bd604410ec66a09.zip |
core: Add vote type and add field to block. (#76)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/utils.go | 5 |
1 files changed, 5 insertions, 0 deletions
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...) +} |