However, I would like to ask if your script requires entering a private key at any time.
No, privatekey is unknown -> only need public_key and r,s,z as transaction.
You can later using lattice attack according to https://eprint.iacr.org/2021/455 "Guessing Bits: Improved Lattice Attacks on (EC)DSA with Nonce Leakage"
Ps. GR SASA: just think , not ask , and think how to use it. no ask , becouse no one will tell you if you will not thinks by yourself.