When you deposit funds to tornado cash, you get a secret which is called "commitment". When you withdraw funds, you pass this secret, zk-Stark algorithm can detect which deposit belongs to this secret and you get your deposit.
My question is how this secret is safe? when you send the transaction, can't miner see the secret and execute a transaction using this safe key?