aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/utils.go5
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...)
+}