toCid

Converts a pair of channelType and channelId into cid.

Return

String CID of the given channel type and id.

Throws

if cid is not valid.