The two parties must enter into a formal legal agreement that would define terms such as repayment schedule, interest and other necessary conditions. Through an integration with OpenLaw, a project to create legal contracts recorded on a blockchain, these terms can be formalized on-chain.