Git Product home page Git Product logo

due-diligence-cordapp's Introduction

due-diligence-cordapp

Corda

Pre-running the app

Deploying nodes: ./gradlew clean deployNodes

Starting the nodes: ./build/nodes/runnodes

Uploading whitelisted Auditors: ./gradlew uploadWhitelists

Running the Cordapp

Step #1: At PartyA, file the original Corporate Records auditing process with Auditor(Trusted Auditor)

flow start RequestToValidateCorporateRecordsInitiator validater: Trusted Auditor, numberOfFiles: 10

Step #2: Go to the Trusted Auditor Node, validate the auditing request(This step symbolize the auditing process by this third party auditor). Put in the linearId which was returned in Step #1.

flow start ValidateCorporateRecordsInitiator linearId: <XXXX-XXX-XXXX-XXXXX-XXXXXX>

Step #3: Go to PartyA, Do a query to confirm that the request has been validated. You should see the variable qualification=true.

run vaultQuery contractStateType: net.corda.samples.duediligence.states.CorporateRecordsAuditRequest

Then, we will instruct PartyA to share a copy of the auditing result with PartyB: (Again, You would need put in the linearId returned from Step #1). The parameter trustedAuditorAttachment is a jar file which records the trusted auditors. If PartyA used an untrusted auditor to accquire the corporate records auditing report. He will be prohibited to share with anyone because it is valueless effort(in this business use case, Of course you can modify the business use cases).

flow start ShareAuditingResultInitiator AuditingResultID: <XXXX-XXX-XXXX-XXXXX-XXXXXX>, sendTo: BankB, trustedAuditorAttachment: "8DF3275D80B26B9A45AB022F2FDA4A2ED996449B425F8F2245FA5BCF7D1AC587"

This flow will return the LinearId of the copy of auditing report, you would need this in Step #6.

Step #4: Go to PartyB, do a query to confirm the delievery of copy of the Auditing Report.

run vaultQuery contractStateType: net.corda.samples.duediligence.states.CopyOfCoporateRecordsAuditRequest

As of now, the sharing of the trusted auditing report is done. What left now for both PartyA and PartyB in this use case is to upload the Corporate Records auditing report into a due-diligence list, which they can share with a regulator.(You can again alter this step to suit any other use cases).

Step #5: Go to PartyA, Attach the Corporate Records auditing report into a due-diligence checklist and report to the Regulator. Again, the approvalId is the linearId returned in Step #1.

flow start CreateCheckListAndAddApprovalInitiator reportTo: Regulator, approvalId: <XXXX-XXX-XXXX-XXXXX-XXXXXX>

Step #6: Go to PartyB, Attach the copy of the Corporate Records auditing report into a due-diligence checklist and report to the Regulator. You would need the linearId that is return from Step #5

flow start CreateCheckListAndAddApprovalInitiator reportTo: Regulator, approvalId: <XXXX-XXX-XXXX-XXXXX-XXXXXX-Returned-From-Step #5>

Step #7: Go to Regulator, do a query on reported due-diligence checklists. You will be able to see both PartyA and PartyB had filed a due-diligence checklist.

run vaultQuery contractStateType: net.corda.samples.duediligence.states.DueDChecklist

This use of Distributed technology Corda helped PartyB saved the cost of go through corporate records due-diligence process while still reaching a trusted auditing report.

due-diligence-cordapp's People

Contributors

peterli-r3 avatar

Watchers

 avatar

due-diligence-cordapp's Issues

deployNodes not working properly

Hello there!

I tried to run ./gradlew clean deployNodes and was met with this error:

root@vmi1541112:~/smpl-id# ./gradlew clean deployNodes
> Task :contracts:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':contracts:compileJava'.
> Could not resolve all files for configuration ':contracts:compileClasspath'.
   > Could not resolve co.paralleluniverse:quasar-core:0.7.13_r3.
     Required by:
         project :contracts > net.corda:corda-core:4.6
      > Could not resolve co.paralleluniverse:quasar-core:0.7.13_r3.
         > Could not get resource 'https://software.r3.com/artifactory/corda/co/paralleluniverse/quasar-core/0.7.13_r3/quasar-core-0.7.13_r3.pom'.
            > Could not GET 'https://software.r3.com/artifactory/corda/co/paralleluniverse/quasar-core/0.7.13_r3/quasar-core-0.7.13_r3.pom'. Received status code 401 from server:

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

I'm thinking a dependency that is required is in r3 which I do not have access to because it is confidential from my understanding.

How can I deploy the nodes to continue the process?

Thank you.

Pavon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.