首页> 外国专利> METHOD AND SYSTEM FOR VALIDATING A TRANSACTION IN A BLOCKCHAIN IN CONNECTION WITH A PRODUCT LIFECYCLE

METHOD AND SYSTEM FOR VALIDATING A TRANSACTION IN A BLOCKCHAIN IN CONNECTION WITH A PRODUCT LIFECYCLE

机译:验证与产品生命周期相关的区块链交易的方法和系统

摘要

The present invention discloses a method for validating a transaction in a blockchain configured for tracking and tracing changes occurring during a product lifecycle, the method comprising:a) receiving (101) a request for a transaction for the product;b) checking (102) if a smart contract is available for said transaction, and if so then executing the smart contract code;the computer implemented method being characterized in that the request comprises customized validation rules defined for the transaction wherein each customized validation rule defines a Boolean predicate and encodes a condition for validating the transaction, and wherein the execution of the smart contract code comprises:b1) determining (104) whether the smart contract code handles code injection, and if so, passing (105) each Boolean predicate as a parameter of the smart contract code andexecuting said Boolean predicate on the smart contract code in order to determine if the condition of the customized validation rule for validating the transaction is satisfied for said Boolean predicate;b2) executing (109) the transaction and pushing data records associated to said transaction into a node of the blockchain if and only if each of the conditions of the customized validation rules for validating the transaction has been satisfied, wherein said data records comprise the customized validation rules used for validating the transaction and that have been previously checked as a writing of the transaction.
机译:本发明公开了一种用于验证被配置为跟踪和追踪在产品生命周期中发生的变化的区块链中的交易的方法,该方法包括:a)接收(101)产品交易请求;b)检查(102)智能合约是否可用于所述交易,如果是,则执行智能合约代码;该计算机实现的方法的特征在于,该请求包括为交易定义的定制验证规则,其中每个定制验证规则定义布尔谓词并编码用于验证交易的条件,并且其中智能合约代码的执行包括:b1)确定(104)智能合约代码是否处理代码注入,如果是,则传递(105)每个布尔谓词作为智能合约代码的参数,以及对智能合约代码执行所述布尔谓词,以确定所述布尔谓词是否满足用于验证交易的定制验证规则的条件;b2)当且仅当满足用于验证交易的定制验证规则的每个条件都满足时,才执行(109)交易并将与所述交易相关联的数据记录推送到区块链的节点中,其中,所述数据记录包括定制的用于验证交易的验证规则,该规则先前已在写入交易时进行过检查。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号