Smart contract and interface code for Nature Energy "A general form of smart contract for decentralised energy systems management" - Thomas L, Long C, Zhou Y (2018). Cardiff University. 10.17035/d.2018.0064088749.