Go-ipfs: sha3 hash functions unrecognised

Created on 5 Sep 2017  路  4Comments  路  Source: ipfs/go-ipfs

Version information:

go-ipfs version: 0.4.10-
Repo version: 5
System version: amd64/darwin
Golang version: go1.8.3

Type: Bug

Severity: Low

Description:

$ ipfs add ../test2.md --hash=sha3-224
Error: unrecognized hash function: sha3-224
$ ipfs add ../test2.md --hash=sha3
added zB7NbDcdPF25nBUAkzEtQx5wNeXzUvUdGGVieW7N85NwcpUDg2MBe7pActQU92PfGJWfZDq95Bsgz4GxTP13p8gzdbN5v test2.md
$ ipfs add ../test2.md --hash=sha3-256
Error: unrecognized hash function: sha3-256
$ ipfs add ../test2.md --hash=sha3-384
Error: unrecognized hash function: sha3-384
$ ipfs add ../test2.md --hash=sha3-512
Error: unrecognized hash function: sha3-512
kinbug

All 4 comments

Yeah, the full list of supported hashes is here: https://github.com/multiformats/go-multihash/blob/master/multihash.go#L87

We should probably start an effort to expand that list.

Oh wait, the hashes youre trying are in that list. And it even looks like they are here too: https://github.com/multiformats/go-multihash/blob/master/sum.go#L23

I wonder whats going on here

I'll look into this one. Hopefully tonight, if not then tomorrow.

This works on master.

It looks like support for those where added on Apr 24, 2017 (https://github.com/multiformats/go-multihash/commits/master/multihash.go) and the dependency updated in cccc6a94a32d2b2f56b9234efb3e9e1a9fd0f390 around July-11.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviddias picture daviddias  路  3Comments

magik6k picture magik6k  路  3Comments

lidel picture lidel  路  3Comments

funkyfuture picture funkyfuture  路  3Comments

ArcticLampyrid picture ArcticLampyrid  路  3Comments