非验证公证人知道参和者是否被允许消费州
问题说明
既然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?
正确答案
他不知道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
-
YouTube API 不能在 iOS (iPhone/iPad) 工作,但在桌面浏览器工作正常?
it1352 07-30 -
iPhone,一张图像叠加到另一张图像上以创建要保存的新图像?(水印)
it1352 07-17 -
保持在后台运行的 iPhone 应用程序完全可操作
it1352 07-25 -
使用 iPhone 进行移动设备管理
it1352 07-23 -
在android同时打开手电筒和前置摄像头
it1352 09-28 -
检查邮件是否发送成功
it1352 07-25 -
扫描 NFC 标签时是否可以启动应用程序?
it1352 08-02 -
Android微调工具-删除当前选择
it1352 06-20 -
希伯来语的空格句子标记化错误
it1352 06-22 -
Android App 和三星 Galaxy S4 不兼容
it1352 07-20