How Does the Consensus Mechanism of a Blockchain Support Smart Contract Trustlessness?
The consensus mechanism (e.g. Proof-of-Stake) ensures that all nodes agree on the correct order of transactions and the final state of the smart contract.
This distributed agreement makes it virtually impossible for a single malicious actor to unilaterally alter the contract's execution or history, thereby enforcing the trustless environment.