diff --git a/cid.go b/cid.go index 72624ec..099dd63 100644 --- a/cid.go +++ b/cid.go @@ -444,7 +444,7 @@ func (c Cid) MarshalJSON() ([]byte, error) { // KeyString casts the result of cid.Bytes() as a string, and returns it. func (c Cid) KeyString() string { - return string(c.Bytes()) + return string(c) } // Loggable returns a Loggable (as defined by