aboutsummaryrefslogtreecommitdiffstats
path: root/core/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/hash.go')
-rw-r--r--core/hash.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hash.go b/core/hash.go
index 0b6f274..9b30b6e 100644
--- a/core/hash.go
+++ b/core/hash.go
@@ -9,6 +9,9 @@ import (
// Hash SHA1 hased content
type Hash [20]byte
+// ZeroHash is Hash with value zero
+var ZeroHash Hash
+
// ComputeHash compute the hash for a given ObjectType and content
func ComputeHash(t ObjectType, content []byte) Hash {
h := t.Bytes()