In situ deprotection and dynamic covalent assembly using a dual role catalyst