Do calculation of credential hash only once. Cut bit size for many templates. Economy: -1304 constraints for V3 circuit.
Use one instance of verifyClaimIssuance for sig and mtp flows. Economy: -11378 constraints
Made issuerAuthState signal an input. Added issuerState output signal that switches between issuerAuthState and issuerAuthState depending on proofType, so that only one value needs to be checked outside the circuit. Economy: -1 public signal to verify in smart contract.