• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

非验证公证人知道参和者是否被允许消费州

用户头像
it1352
帮助1

问题说明

既然Corda中的非验证公证人没有对交易执行输入/输出状态验证,那么公证服务如何知道交易发起人可以使用特定的输入状态?

Since non-validating notaries in Corda are not performing input/output state validation of a transaction, how does a notary service know that a transaction initiator is allowed to consume specific input states?

例如,在这个简单的现金示例中:

For instance, in this simple cash example:

State0{} -issueCashTX-> State1{owner:issuer, amount: 1000}
                        -transferTX-> State2{owner:issuer,   amount: 500}
                                      State3{owner:CompanyA, amount: 500}

智能合约规则验证转账交易仅在交易发起方的输入状态为所有者且输出金额之和等于输入金额之和时才有效。

Smart Contract Rules validate that transfer transactions are only valid, if input state is owner by the transaction initiator and sum of output amounts is equal to sum of input amounts.

[Q] :非验证公证人如何知道消费 State1 是可以的,因为它对验证规则一无所知?

[Q]: How the non-validating notary knows that consuming State1 is ok, since it has no idea about the validation rules?

正确答案

#1

他不知道State1正常,但他知道输入已在另一笔交易中使用。发送给公证人的交易已由所有同行签名,因此交易必须有效,或者这意味着交易中的所有同行都在作弊。

He doesn't knows that State1 is ok but He knows if the inputs have already been used in another transactions. Transactions send to the notary have been signed by all peers so the transactions must be valid or that's means that all peers in the transactions are cheating with each other.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhbabchh
系列文章
更多 icon
同类精品
更多 icon
继续加载