Design of proteolytic gates and protein assemblies