Utility methods for signing and signature verifications