Stricter definition of signature hash