在Corda中,哪些数据发送到非验证公证服务? [英] In Corda, what data is sent to a non-validating notary service?

查看:106
本文介绍了在Corda中,哪些数据发送到非验证公证服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题经常在对话中出现:当将Corda交易发送到非验证的公证服务进行最终确定时,公证服务可以看到并推断出什么世界?

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?

推荐答案

在将交易发送给非验证公证人之前,将其过滤如下:

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 
})

(请参阅主要Corda存储库中的NotaryFlow.kt).这意味着非验证公证人只会看到:

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

  • 任何输入,以StateRef s
  • 的形式
  • 时间窗口(如果存在)(因为公证人也是时间戳记机构)
  • 交易公证人的身份
  • 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

因为该交易是一棵Merkle树(请参见 https://docs.corda.net/_images/merkleTree.png ),尽管其余组件已被删除并且公证人无法看到,但是一旦应用了公证签名,交易的内容就无法更改.

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.

这篇关于在Corda中,哪些数据发送到非验证公证服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆