How to add another regulatory node and add some functionality to it in corda DLT?

173 views Asked by At

I would like to add a new Notary/Regulatory node in my Cordapp application , which should perform some extra validation checks when transaction is completed between two parties. so that notary/regulatory will be finally checks for some things and stamp the transaction.

2

There are 2 answers

2
Roger Willis On

There are two options here:

  1. Instead of using the default FinalityFlow to notarise, broadcast and record transactions, you can implement your own flow that performs some additional validation before the notarisation step. The limitation here is that the checks are not part of the notary service.
  2. Create your own custom notary. Here, the custom validation checks happen within the notary service. The ability to do this is a recent change to the codebase, as such the documentation has not been updated to reflect the changes, however the source docs can be found on github:

0
Joel On

As Roger notes, you could customise FinalityFlow/implement your own notary.

An alternative would be:

  • Add a new node to the network representing some regulator
  • Write the contract rules so that the regulator is a required signer on transactions
  • Have the regulator do additional checking of the transaction in their flow before signing