An agreement between two parties in the form of computer code, which is stored and processed on a decentralised network such as blockchain where it cannot be altered. The terms of the agreement are directly written into lines of code, and when the conditions are met, the smart contract is automatically executed, thus removing the need for a third party.