ipfs / go-cid

Content ID v1 implemented in go
MIT License
157 stars 47 forks source link

Implement 'cid-fmt' utility. #31

Closed kevina closed 7 years ago

kevina commented 7 years ago

Useful in debugging.

This utility can also be used to change the base of a CID and CID version.

It will be very useful in go-ipfs sharness tests so we can check that the right Cid prefix is used without having to hardcode hashes.

kevina commented 7 years ago

@Stebalien note, that the test cases will need some fixing once https://github.com/multiformats/go-multibase/pull/19 is merged and the dependency updated.

Stebalien commented 7 years ago

Understood (I merged this because I needed it and thought I had already merged it, it's really useful).

kevina commented 7 years ago

(I am glad you found it useful. :smile: It will really help with the go-ipfs sharness tests.)