// CidFromString converts a string to a cid assuming that an empty string is cid.Undef.
CidFromString converts a string to a cid assuming that an empty string is cid.Undef.
// CidFromString converts a string to a cid assuming that an empty string is cid . Undef .
func CidFromString(c string) (cid.Cid, error) {
	if c == DefaultCidUndef || c == CidUndef {
		return cid.Undef, nil
	}
	return cid.Decode(c)
}
func CidFromString ( c string ) ( cid . Cid , error ) { if c == DefaultCidUndef || c == CidUndef { return cid . Undef , nil } return cid . Decode ( c ) }
CidFromString converts a string to a cid assuming that an empty string is cid.Undef.
CidFromString converts a string to a cid assuming that an empty string is cid . Undef .