What are the Smart Contracts? How do they Work?

Smart contracts are a self-executing computer program that executes the agreement between buyer and seller automatically. Smart contracts contain the agreement written in the line of the code. Where do smart contracts apply? Smart Contracts apply into the following sectors: Insurance Real Estate Supply Chain Digital Identity