A smart contract is a computer program or a transaction protocol which is intended to automatically execute, control or document legally relevant events and actions according to the terms of a contract or an agreement. Taproot is a technology that aims to improve Bitcoin’s privacy and ability to create complex smart contracts.