Smart Contracts and Distributed Ledger – A Legal Perspective