aboutsummaryrefslogtreecommitdiffstats
path: root/core/hash.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-02-17 11:52:11 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-02-17 11:52:11 +0100
commit104be6870196d221a06291917c8660412a96cdbc (patch)
tree4c094cd6afb95cb2832f866b9411276418435819 /core/hash.go
parent1ac00554c3b5f88d2ddc2e28e7cfcdcad9d9f4bb (diff)
parenta964e32d92c53a47ce7c46d589a18c62133b8c50 (diff)
downloadgo-git-104be6870196d221a06291917c8660412a96cdbc.tar.gz
Merge pull request #28 from mcuadros/memory-object
storages: memory object
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()