What is a smart contract?

It’s a self-executing program on a blockchain that enforces agreements automatically when conditions are met.

How does blockchain work?

Data is stored in interconnected blocks, secured by cryptographic hashes, creating a tamper-proof chain.