added createSigningTemplate function to util.c