In Korda, what data is sent to the non-auditory notary service?

This question often arises in conversations: when a Corda transaction is sent to a non-audit notarial service for finalization, what can the notarial service see and make a conclusion about the world?

+4
source share
1 answer

Before sending a transaction to a notary who does not check, it is filtered as follows:

stx.buildFilteredTransaction(Predicate { 
    it is StateRef || it is TimeWindow || it == notaryParty 
})

(see NotaryFlow.kt in the main Corda repository). This means that a non-auditor notary will only see:

  • Any inputs, in the form of StateRefs
  • Time window, if one exists (since the notary is also the authority of the timestamp)
  • Transaction notary identity

Merkle (. https://docs.corda.net/_images/merkleTree.png), , .

+4

Source: https://habr.com/ru/post/1689551/


All Articles