This simple cordapp provides the facility for untrusting parties to interact and contract with one another to reach a final state of consensus where all parties can trust in the outcome without trusting one another and without the need for expensive out of band reconciliation. This simple cordapp written purely in JAVA, shows how Finance Agencies(A third party which provides loan to individuals), Banks and credit rating agencies can use corda DLT for loan lending and processing of loan. This cordapp has 3 parties
- Finance Agency ( A third party which provides personal loans to individual)
- Banks
- Credit rating agency ( A third party which checks the loan eligibility of loan application/loan applicant.
- There are total of 3 Parties + 1 Notary.
- There are 2 Linear states 1) FinanceAndBankState 2) BankAndCreditState
- Party A is a Finance Agency which sends the loan application to the bank
- Party B is a Bank which Lends/Approves the loan (port 10012 in my case)
- Party C is a Credit Rating Agency which checks the credit eligibility of the applicant/institution in the loan application.
- Finance Agency sends the loan application to the bank which contains individual name/company name and amount (Loan Amount).
- Bank will receive the application and forward it to Credit rating agency to check the eligibility of loan applicant/ loan application (Example CIBIL score of applicant).
- Credit rating agency will respond back to bank with the eligibility of the loan application.
- Bank will receive it and decide whether to lend the loan or not by acknowledging its response to the Finance agency.
- Use API endspoints to initiate flow using POSTMAN.
NOTE: Communication between Bank and credit rating agency or any data exchanged between Bank and credit rating agency remains private to Finance Agency. Finance agency does not hear what Bank and Credit rating agency does.
- 10009 : PARTY A Port (Finance Agency)
- 10012 : PARTY B Port (Bank)
- 10015 : PARTY C Port (Credit Rating Agency)
- clone the repository
- open it using IntelliJ IDEA 2018.1
- do gradle build and run the application
- initiate transactions using POSTMAN through api endpoints