I read an article about how HASHSIG works, but I don't understand it:
Before the signature is calculated, several temporary changes are made to the transaction:
The signature script of the currently signed entry is replaced by the public one
Key script with the exception of all occurrences of OP CODESEPARATOR in the referenced script
Could you explain that to me?