Skip to content

Commit c5fd85e

Browse files
authored
Merge pull request #76 from multiformats/fix/revert
Revert prematurely merged ID hash length fix
2 parents 1c0469b + 1b9f43f commit c5fd85e

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 >= 0 && 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)