Making calculateSignature public static