Skip to content

Commit 1b9f43f

Browse files
committed
Revert "Merge pull request #74 from schomatis/fix/sum/id-hash-len"
This reverts commit 77e0512, reversing changes made to 265e721.
1 parent 1dd9af7 commit 1b9f43f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sum.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ func Sum(data []byte, code uint64, length int) (Multihash, error) {
3535
}
3636
}
3737

38-
if code == ID && length != len(data) {
39-
return m, fmt.Errorf("the length of the identity hash (%d) must be equal to the length of the data (%d)",
40-
length, len(data))
41-
}
42-
4338
var d []byte
4439
switch {
4540
case isBlake2s(code):

0 commit comments

Comments
 (0)