In Corda, what data is sent to a non-validating notary service?

帅比萌擦擦* 提交于 2020-01-03 13:30:44

问题


This question frequently comes up in conversations: When a Corda transaction is sent to a non-validating notary service for finalisation, what can the notary service see and deduce about the world?


回答1:


Before sending a transaction to a non-validating notary, it is filtered as follows:

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

(see NotaryFlow.kt in the main Corda repo). This means that the non-validating notary will only see:

  • Any inputs, in the form of StateRefs
  • The time-window, if it exists (since the notary is also the timestamping authority)
  • The identity of the transaction's notary

Because the transaction is a Merkle tree (see https://docs.corda.net/_images/merkleTree.png), although the remaining components have been removed and can't be seen by the notary, the contents of the transaction can't be changed later once the notary signature has been applied.



来源:https://stackoverflow.com/questions/47387485/in-corda-what-data-is-sent-to-a-non-validating-notary-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!