cidToTypeAndId

Parses CID of channel to channelType and channelId.

Return

Pair Pair with channelType and channelId.

Throws

Throws an exception if format of cid is incorrect.