+

CN109359978A - Smart contract transaction method and system based on blockchain network - Google Patents

Smart contract transaction method and system based on blockchain network Download PDF

Info

Publication number
CN109359978A
CN109359978A CN201811166348.2A CN201811166348A CN109359978A CN 109359978 A CN109359978 A CN 109359978A CN 201811166348 A CN201811166348 A CN 201811166348A CN 109359978 A CN109359978 A CN 109359978A
Authority
CN
China
Prior art keywords
node
verification
betting
intelligent contract
participating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811166348.2A
Other languages
Chinese (zh)
Other versions
CN109359978B (en
Inventor
路成业
王凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Iallchain Co Ltd
Original Assignee
Iallchain Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Iallchain Co Ltd filed Critical Iallchain Co Ltd
Priority to CN201811166348.2A priority Critical patent/CN109359978B/en
Publication of CN109359978A publication Critical patent/CN109359978A/en
Application granted granted Critical
Publication of CN109359978B publication Critical patent/CN109359978B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention proposes a kind of intelligent contract method of commerce and system based on block chain network, wherein method includes: to obtain the target for generating power with bet event contract of block chain network broadcast to participate in node;Each participation node generates the intelligent contract set of itself, and broadcasts intelligent contract set;Verifying node is verified, if being verified, the verifying cryptographic Hash that different intelligent contract set carries is compared, is passed through if comparing, and is broadcasted intelligent contract set to block chain network and is determined message;After target participates in node acquisition contract generation power, after timer reaches, according to bet event contract information analysis Intelligent target contract set, corresponding result feedback is carried out to the intelligent contract of each node of betting.As a result, using safe and reliable online bet transaction is provided the characteristics of block chain network decentralization for user, convenience and the safety of the participation of bet event are improved.

Description

基于区块链网络的智能合约交易方法和系统Smart contract transaction method and system based on blockchain network

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种基于区块链网络的智能合约交易方法和系统。The present invention relates to the field of communication technologies, and in particular, to a method and system for smart contract transaction based on a blockchain network.

背景技术Background technique

目前,随着生活的进步,在赛车、塞马等比赛场景中的下注也成为用户主要的娱乐方式,相关技术中,下注用户的下注金额以及下注事件结果等下注信息和开奖处理等全部依赖第三方机构来实现,然而这种中心化处理方式的风险性较高,比如,当第三方机构遭到恶意攻击时,有关下注信息可能会泄露或者是黑客可以篡改下注信息谋求个人利益等,也可能是下注金额全部被黑客转走等,因此,亟需一种能够有效保证下注事件安全性的方式。At present, with the progress of life, betting in racing, horse racing and other competition scenarios has also become the main entertainment method for users. In related technologies, betting information such as betting amount and betting event results and lottery draws All processing relies on third-party institutions to achieve, but this centralized processing method has high risks. For example, when a third-party institution is maliciously attacked, the betting information may be leaked or hackers can tamper with the betting information Seeking personal interests, etc., it is also possible that all the betting amount is transferred by hackers, etc. Therefore, a method that can effectively ensure the security of betting events is urgently needed.

发明内容SUMMARY OF THE INVENTION

本发明提供一种基于区块链网络的智能合约交易方法和系统,以解决现有技术中,将下注信息以及下注事件的管理由第三方机构统一管理,导致风险较高,容易受到安全威胁的技术问题。The present invention provides a smart contract transaction method and system based on a blockchain network, so as to solve the problem that in the prior art, the management of betting information and betting events is managed by a third-party organization, resulting in high risk and easy security Threat technical issues.

本发明第一实施例提供一种基于区块链网络的智能合约交易方法,包括:每个参与节点在下注事件的预设时段内获取区块链网络中各下注节点广播的智能合约,其中,所述智能合约包括:下注节点标识、下注事件结果和下注金额,按照预设算法对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,并获取所述区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值后、广播的与符合条件的目标抢占哈希值对应的具有所述下注事件合约生成权的目标参与节点;每个参与节点将自身节点在所述预设时段内获取的所有下注节点广播的智能合约生成自身的智能合约集合,并对所述智能合约集合进行计算生成对应的验证哈希值,并向所述区块链网络广播自身的节点标识以及经过自身私钥签名的携带所述验证哈希值的智能合约集合;验证节点接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证,若验证通过,则将不同智能合约集合携带的验证哈希值进行比较,若相同的有效验证哈希值的次数达到预设阈值,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向所述区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息,其中,所述确定消息包括:目标智能合约集合以及所述有效验证哈希值和对应的验证时间戳;所述目标参与节点获取所述合约生成权后,根据预设的下注事件合约信息设置与所述下注事件对应的定时器,当所述定时器到达后,根据预先获取的与所述验证节点标识对应的验证公钥对所述验证私钥进行验证,若验证通过,则根据所述下注事件合约信息分析所述目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈。The first embodiment of the present invention provides a smart contract transaction method based on a blockchain network, including: each participating node acquires a smart contract broadcast by each betting node in the blockchain network within a preset time period of the betting event, wherein , the smart contract includes: betting node identifier, betting event result and betting amount, calculates the random number generated by its own participating nodes and all smart contracts according to the preset algorithm to generate the corresponding preemption hash value, and obtains the After analyzing the preemption hash values generated by all participating nodes according to the preset preemption strategy, the blockchain network broadcasts the target participating nodes with the right to generate the betting event contract corresponding to the eligible target preemption hash values. ; Each participating node generates its own smart contract set from the smart contracts broadcast by all betting nodes acquired by its own node within the preset period, and calculates the smart contract set to generate the corresponding verification hash value, and Broadcast its own node identification and the smart contract collection carrying the verification hash value signed by its own private key to the blockchain network; the verification node receives the node identification broadcasted by a plurality of participating nodes and the carrying verification signed by the private key For the smart contract collection of hash values, the corresponding private key signatures are verified in turn according to the preset public key corresponding to each node identifier. If the verification is passed, the verification hash values carried by different smart contract collections are compared. If the number of times of the same valid verification hash value reaches the preset threshold, the smart contract set corresponding to any valid verification hash value is used as the target smart contract set, and broadcast to the blockchain network carrying the verification node identifier and the A confirmation message of the smart contract set for verifying the signature of the private key, wherein the confirmation message includes: the target smart contract set, the valid verification hash value and the corresponding verification timestamp; after the target participating node obtains the contract generation right , set a timer corresponding to the betting event according to the preset betting event contract information, and when the timer arrives, verify the verification private key according to the pre-acquired verification public key corresponding to the verification node identifier If the verification is passed, the target smart contract set is analyzed according to the betting event contract information, and corresponding results are fed back to the smart contracts of each betting node.

本发明第二实施例提供一种基于区块链网络的智能合约交易系统,包括:参与节点和验证节点,其中,所述参与节点中的每个参与节点,用于在下注事件的预设时段内获取区块链网络中各下注节点广播的智能合约,其中,所述智能合约包括:下注节点标识、下注事件结果和下注金额,按照预设算法对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,并获取所述区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值后、广播的与符合条件的目标抢占哈希值对应的具有所述下注事件合约生成权的目标参与节点;所述每个参与节点,还用于将自身节点在所述预设时段内获取的所有下注节点广播的智能合约生成自身的智能合约集合,并对所述智能合约集合进行计算生成对应的验证哈希值,并向所述区块链网络广播自身的节点标识以及经过自身私钥签名的携带所述验证哈希值的智能合约集合;所述验证节点,用于接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证,若验证通过,则将不同智能合约集合携带的验证哈希值进行比较,若相同的有效验证哈希值的次数达到预设阈值,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向所述区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息,其中,所述确定消息包括:目标智能合约集合以及所述有效验证哈希值和对应的验证时间戳;所述目标参与节点,用于在获取所述合约生成权后,根据预设的下注事件合约信息设置与所述下注事件对应的定时器,当所述定时器到达后,根据预先获取的与所述验证节点标识对应的验证公钥对所述验证私钥进行验证,若验证通过,则根据所述下注事件合约信息分析所述目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈。The second embodiment of the present invention provides a smart contract transaction system based on a blockchain network, including: a participating node and a verification node, wherein each participating node in the participating nodes is used for a preset time period of a betting event The smart contract broadcasted by each betting node in the blockchain network is obtained, wherein the smart contract includes: betting node identification, betting event result and betting amount, random generated by the participating nodes according to the preset algorithm The corresponding preemption hash value is generated by calculating the number and all smart contracts, and after the blockchain network analyzes the preemption hash value generated by all participating nodes according to the preset preemption strategy, the broadcasted and qualified target preemption hashes are obtained. The target participating node with the right to generate the wagering event contract corresponding to the value; each participating node is also used to generate its own smart contract broadcast by all wagering nodes acquired by its own node within the preset time period the set of smart contracts, and calculate the set of smart contracts to generate the corresponding verification hash value, and broadcast to the blockchain network its own node identification and the verification hash value signed by its own private key. A set of smart contracts; the verification node is used to receive the node identifiers broadcasted by multiple participating nodes and the smart contract set that carries the verification hash value signed by the private key, according to the preset public key corresponding to each node identifier in sequence The corresponding private key signature is verified. If the verification is passed, the verification hash values carried by different smart contract sets are compared. If the number of times of the same valid verification hash value reaches the preset threshold, any valid verification hash value will be verified. The set of smart contracts corresponding to the value is taken as the set of target smart contracts, and the confirmation message of the set of smart contracts carrying the identification of the verification node and the signature of the verified private key is broadcast to the blockchain network, wherein the confirmation message includes: the target smart contract set, the valid verification hash value and the corresponding verification timestamp; the target participating node is used to set the corresponding betting event according to the preset betting event contract information after acquiring the contract generation right When the timer arrives, the verification private key is verified according to the verification public key corresponding to the verification node identification obtained in advance, and if the verification is passed, the betting event contract information is analyzed according to the betting event. The target smart contract set provides corresponding result feedback to the smart contracts of each betting node.

本发明第三实施例提供一种计算机设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如上述实施例所述的基于区块链网络的智能合约交易方法。A third embodiment of the present invention provides a computer device, including: a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the above-mentioned embodiments are implemented. The described smart contract transaction method based on the blockchain network.

本发明第四实施例提供一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例所述的基于区块链网络的智能合约交易方法。A fourth embodiment of the present invention provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the blockchain network-based smart contract as described in the foregoing embodiments transaction method.

本发明实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

每个参与节点在下注事件的预设时段内获取区块链网络中各下注节点广播的智能合约,其中,智能合约包括:下注节点标识、下注事件结果和下注金额,按照预设算法对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,并获取区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值后、广播的与符合条件的目标抢占哈希值对应的具有下注事件合约生成权的目标参与节点,每个参与节点将自身节点在预设时段内获取的所有下注节点广播的智能合约生成自身的智能合约集合,并对智能合约集合进行计算生成对应的验证哈希值,并向区块链网络广播自身的节点标识以及经过自身私钥签名的携带验证哈希值的智能合约集合,验证节点接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证,若验证通过,则将不同智能合约集合携带的验证哈希值进行比较,若相同的有效验证哈希值的次数达到预设阈值,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息,其中,确定消息包括:目标智能合约集合以及有效验证哈希值和对应的验证时间戳,进而,目标参与节点获取合约生成权后,根据预设的下注事件合约信息设置与下注事件对应的定时器,当定时器到达后,根据预先获取的与验证节点标识对应的验证公钥对验证私钥进行验证,若验证通过,则根据下注事件合约信息分析目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈。由此,实现了用户可以在移动终端进行下注,改善了现有技术中用户需要去到实体店进行下注的现状,提高了下注便利性,并且利用区块链网络去中心化的特点为用户提供了安全可靠的网上下注交易,提高了下注事件的安全性。Each participating node obtains the smart contract broadcast by each betting node in the blockchain network within the preset time period of the betting event, wherein the smart contract includes: betting node identification, betting event result and betting amount, according to the preset The algorithm calculates the random number generated by its participating nodes and all smart contracts to generate the corresponding preemption hash value, and obtains the preemption hash value generated by the blockchain network after analyzing the preemption hash value generated by all participating nodes according to the preset preemption strategy. The target participating node with the right to generate the wagering event contract corresponding to the eligible target preemption hash value, each participating node generates its own smart contract from the smart contract broadcast by all wagering nodes acquired by its own node within a preset period of time set, and calculate the smart contract set to generate the corresponding verification hash value, broadcast its own node identification and the smart contract set with the verification hash value signed by its own private key to the blockchain network, and the verification node receives multiple The node IDs participating in the node broadcast and the smart contract collections carrying the verification hash value signed by the private key, according to the preset public key corresponding to each node ID, the corresponding private key signatures are verified in turn. If the verification is passed, the Compare the verification hash values carried by different smart contract sets. If the number of times of the same valid verification hash value reaches the preset threshold, the smart contract set corresponding to any valid verification hash value is used as the target smart contract set, and Broadcast the confirmation message of the smart contract set carrying the verification node identification and the verified private key signature to the blockchain network, where the confirmation message includes: the target smart contract set, the valid verification hash value and the corresponding verification timestamp, and then the target participates in the After the node obtains the contract generation right, the timer corresponding to the betting event is set according to the preset contract information of the betting event. When the timer arrives, the verification private key is verified according to the pre-acquired verification public key corresponding to the verification node identification. Verification, if the verification is passed, analyze the target smart contract set according to the betting event contract information, and give corresponding result feedback to the smart contracts of each betting node. As a result, users can place bets on mobile terminals, which improves the current situation that users need to go to physical stores to place bets in the prior art, improves the convenience of betting, and utilizes the decentralization of the blockchain network. It provides users with safe and reliable online betting transactions, and improves the security of betting events.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1是根据本发明一个实施例的基于区块链网络的智能合约交易系统结构示意图;1 is a schematic structural diagram of a smart contract transaction system based on a blockchain network according to an embodiment of the present invention;

图2是根据本发明一个实施例的基于区块链网络的智能合约交易系统交互示意图;2 is a schematic diagram of the interaction of a smart contract transaction system based on a blockchain network according to an embodiment of the present invention;

图3是根据本发明一个实施例的基于区块链网络的智能合约交易方法的流程图;3 is a flowchart of a smart contract transaction method based on a blockchain network according to an embodiment of the present invention;

图4-1是根据本发明一个实施例的基于区块链网络的智能合约交易方法的应用场景示意图;以及4-1 is a schematic diagram of an application scenario of a smart contract transaction method based on a blockchain network according to an embodiment of the present invention; and

图4-2是根据本发明另一个实施例的基于区块链网络的智能合约交易方法的应用场景示意图。4-2 is a schematic diagram of an application scenario of a smart contract transaction method based on a blockchain network according to another embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.

为了解决上述描述的现有技术中,将下注信息以及下注事件的管理由第三方机构统一管理,导致风险较高,容易受到安全威胁的技术问题。本发明提供了一种基于区块链网络的智能合约交易方法,利用区块链网络去中心化的特点为用户提供了安全可靠的网上下注交易,提高了下注事件参与的便利性和安全性。In order to solve the technical problem that in the prior art described above, the management of wagering information and wagering events is unifiedly managed by a third-party organization, resulting in high risks and being vulnerable to security threats. The invention provides a smart contract transaction method based on the blockchain network, which utilizes the decentralization feature of the blockchain network to provide users with safe and reliable online betting transactions, and improves the convenience and safety of participating in betting events. sex.

其中,为了描述的清楚,首先对本发明实施例的基于区块链网络的智能合约交易系统进行描述,图1是根据本发明一个实施例的基于区块链网络的智能合约交易系统结构示意图,如图1所示,该系统包括参与节点100和验证节点200,其中,参与节点100可以理解为区块链网络中任意一个参与下注事件的节点,包括智能合约生成权的抢夺事件、智能合约的接收事件等,可以包括挖矿节点、时间戳节点等,验证节点200可以理解为在本发明实施例中,实施有关验证功能的节点,可以为时间戳服务器也可以为一个或者多个参与节点,在此不作限制。Among them, for the sake of clarity of description, the smart contract transaction system based on the blockchain network according to the embodiment of the present invention is first described. FIG. 1 is a schematic structural diagram of the smart contract transaction system based on the blockchain network according to an embodiment of the present invention. As shown in FIG. 1, the system includes a participating node 100 and a verification node 200, wherein the participating node 100 can be understood as any node participating in the betting event in the blockchain network, including the snatch event of the right to generate the smart contract, the event of the smart contract Receiving events, etc., may include mining nodes, timestamp nodes, etc. The verification node 200 can be understood as a node that implements relevant verification functions in this embodiment of the present invention, which may be a timestamp server or one or more participating nodes. There is no restriction here.

参照图2,在实际执行过程中,每个参与节点在下注时间的预设时间段内获取区块链网络中各下注节点广播的智能合约(步骤1),以该智能合约作为下注节点进行下注的具体下注信息,不难理解的是,这种下注方式用户可以在认证为参与节点的手机上即可实现,操作便利,不需要去专门的实体店进行买注等,该智能合约包括标识节点唯一性的下注节点标识、下注事件结果和下注金额。Referring to Figure 2, in the actual execution process, each participating node obtains the smart contract broadcast by each betting node in the blockchain network within the preset time period of the betting time (step 1), and uses the smart contract as the betting node. The specific betting information for betting is not difficult to understand. This betting method can be implemented on the mobile phone that is certified as a participating node. The operation is convenient, and there is no need to go to a special store to buy bets. The smart contract includes the betting node ID that identifies the uniqueness of the node, the outcome of the betting event, and the betting amount.

在本发明的实施例中,当多个参与节点下注后,不依赖于中心化的第三方机构进行下注管理等,而是依赖于区块链网络的去中心化执行机制,由参与节点进行现有技术中第三方机构的功能进行抢夺,在本实施例中,以下注时间合约生成权来表示这种对第三方机构的功能的抢夺。In the embodiment of the present invention, when multiple participating nodes place a bet, they do not rely on a centralized third-party organization for betting management, etc., but rely on the decentralized execution mechanism of the blockchain network. To snatch the functions of the third-party organization in the prior art, in this embodiment, the right to generate the betting time contract is used to represent the snatch of the functions of the third-party organization.

具体而言,按照预设算法对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,并获取区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值后、广播的与符合条件的目标抢占哈希值对应的具有下注事件合约生成权的目标参与节点(步骤2),也就是说,以一种预设的抢占策略和筛选条件的设置,确定出具有下注事件合约生成权的目标参与节点。作为一种可能的实现方式,抢占策略可以为通过比较所有参与节点生成的抢占哈希值,确定最小的抢占哈希值为目标抢占哈希值,作为另一种可能的实现方式,抢占策略可以为比较所有参与节点生成的抢占哈希值,确定最大的抢占哈希值为目标抢占哈希值。Specifically, according to the preset algorithm, the random number generated by its participating nodes and all smart contracts are calculated to generate the corresponding preemption hash value, and the blockchain network analyzes the preemption generated by all participating nodes according to the preset preemption strategy. After the hash value, broadcast the target participating node with the right to generate the wagering event contract corresponding to the eligible target preemption hash value (step 2), that is, with a preset preemption strategy and screening conditions. Setting, determine the target participating node with the right to generate the wagering event contract. As a possible implementation method, the preemption strategy can be determined by comparing the preemption hash values generated by all participating nodes to determine the minimum preemption hash value of the target preemption hash value. As another possible implementation method, the preemption strategy can be To compare the preemption hashes generated by all participating nodes, determine the largest preemption hash to the target preemption hash.

进一步地,为了进一步保证目标参与节点拥有的信息完整,每个参与节点将自身节点在预设时段内获取的所有下注节点广播的智能合约生成自身的智能合约集合,并对智能合约集合进行计算生成对应的验证哈希值,并向区块链网络广播自身的节点标识以及经过自身私钥签名的携带验证哈希值的智能合约集合(步骤3),以便于结合所有的参与节点记录的相关信息验证目标参与节点中保存的下注有关信息是否全面。Further, in order to further ensure that the information possessed by the target participating nodes is complete, each participating node generates its own smart contract set from the smart contracts broadcast by all betting nodes acquired by its own node within a preset period, and calculates the smart contract set. Generate the corresponding verification hash value, and broadcast its own node identification and the smart contract set carrying the verification hash value signed by its own private key to the blockchain network (step 3), so as to combine the relevant records of all participating nodes. The information verifies whether the information about the bet saved in the target participating node is comprehensive.

具体而言,验证节点接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证(步骤4),若验证通过,则表明智能合约集合真实,从而,将不同智能合约集合携带的验证哈希值进行比较,若相同的有效验证哈希值的次数达到预设阈值,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息(步骤5),其中,确定消息包括:目标智能合约集合以及有效验证哈希值和对应的验证时间戳,此时,应当理解,该目标智能合约集合为完整的智能合约集合,包含了所有下注节点发送的智能合约。Specifically, the verification node receives the node identifiers broadcasted by multiple participating nodes and the smart contract set that carries the verification hash value signed by the private key, and sequentially pairs the corresponding private key according to the preset public key corresponding to each node identifier. The signature is verified (step 4). If the verification is passed, it means that the smart contract set is true. Therefore, the verification hash values carried by different smart contract sets are compared. If the number of times of the same valid verification hash value reaches the preset threshold, The smart contract set corresponding to any valid verification hash value is used as the target smart contract set, and the smart contract set determination message carrying the verification node identification and the verified private key signature is broadcast to the blockchain network (step 5), wherein, The confirmation message includes: the target smart contract set, the valid verification hash value and the corresponding verification timestamp. At this time, it should be understood that the target smart contract set is a complete smart contract set, including the smart contracts sent by all betting nodes.

最后,目标参与节点获取合约生成权后,还执行第三方机构的下注管理功能,比如开奖功能,根据预设的下注事件合约信息设置与下注事件对应的定时器,当定时器到达后,根据预先获取的与验证节点标识对应的验证公钥对验证私钥进行验证,若验证通过,则根据下注事件合约信息分析目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈(步骤6)。在本发明的一个实施例中,目标参与节点根据目标智能合约集合计算下注金额总额,根据下注事件合约信息从下注金额总额中获取预设比例的奖励金额,从而,提高参与节点抢占合约生成权的积极性,保证了参与节点的数量较多,在一定程度上避免非法节点恶意抢占等。Finally, after the target participating node obtains the contract generation right, it also performs the betting management function of the third-party organization, such as the lottery function, and sets the timer corresponding to the betting event according to the preset betting event contract information. When the timer arrives , verifies the verification private key according to the verification public key corresponding to the verification node identification obtained in advance. If the verification passes, the target smart contract set is analyzed according to the betting event contract information, and the corresponding results are obtained for the smart contracts of each betting node. Feedback (step 6). In one embodiment of the present invention, the target participating node calculates the total betting amount according to the target smart contract set, and obtains a preset proportion of the reward amount from the total betting amount according to the betting event contract information, thereby improving the participation node preemption contract. The enthusiasm of generating the right ensures a large number of participating nodes and avoids malicious preemption by illegal nodes to a certain extent.

由此,本发明实施例的基于区块链网络的智能合约交易系统,实现了用户可以在移动终端进行下注,改善了现有技术中用户需要去到实体店进行下注的现状,提高了下注便利性,并且利用区块链网络去中心化的特点为用户提供了安全可靠的网上下注交易,提高了下注事件的安全性。Therefore, the smart contract transaction system based on the blockchain network in the embodiment of the present invention realizes that the user can place bets on the mobile terminal, improves the current situation that the user needs to go to the physical store to place the bet in the prior art, and improves the The convenience of betting, and the decentralization of the blockchain network provides users with safe and reliable online betting transactions, which improves the security of betting events.

为了更加详细的说明本发明实施例的基于区块链网络的智能合约交易系统执行时的细节,使得本领域的技术人员对本发明的基于区块链网络的智能合约交易过程更加清楚,下面集中在基于区块链网络的智能合约交易方法侧进行交易过程的细节的描述。In order to explain in more detail the details of the execution of the smart contract transaction system based on the blockchain network according to the embodiment of the present invention, so that those skilled in the art are more clear about the smart contract transaction process based on the blockchain network of the present invention, the following focuses on A description of the details of the transaction process on the blockchain network-based smart contract transaction method side.

图3是根据本发明一个实施例的基于区块链网络的智能合约交易方法的流程图,如图3所示,该方法包括:Fig. 3 is a flowchart of a smart contract transaction method based on a blockchain network according to an embodiment of the present invention. As shown in Fig. 3, the method includes:

步骤101,每个参与节点在下注事件的预设时段内获取区块链网络中各下注节点广播的智能合约,其中,智能合约包括:下注节点标识、下注事件结果和下注金额,按照预设算法对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,并获取区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值后、广播的与符合条件的目标抢占哈希值对应的具有下注事件合约生成权的目标参与节点。Step 101, each participating node obtains the smart contract broadcast by each betting node in the blockchain network within the preset time period of the betting event, wherein the smart contract includes: betting node identifier, betting event result and betting amount, According to the preset algorithm, the random number generated by its participating nodes and all smart contracts are calculated to generate the corresponding preemption hash value, and the blockchain network analyzes the preemption hash value generated by all participating nodes according to the preset preemption strategy. , Broadcast the target participating node with the right to generate the wagering event contract corresponding to the eligible target preemption hash value.

其中,上述预设时段与下注事件的开始和结束事件有关,通常预设时段为下注事件发起方规定的开始下注时间到距离开奖时间之前的某个耗时间,比如,当下注事件为赛马时,赛马比赛开始时间为8.00,结束时间为12.00,则对应的预设时段为6.00日到8.00。Among them, the above-mentioned preset time period is related to the start and end events of the betting event. Usually, the preset time period is the time from the betting start time specified by the betting event initiator to a certain time before the lottery draw time. For example, when the betting event is During horse racing, the start time of the horse race is 8.00 and the end time is 12.00, and the corresponding preset time period is from 6.00 to 8.00.

具体地,每个参与节点在下注事件对应的预设时段内获取区块链网络中各下注节点广播的智能合约,其中,每个下注节点可以对应于节点认证成功的手机、电脑等终端,从而,用户可以直接在上述终端中对应的应用程序中下注,不需要专门跑到实体店去下注,其中,本发明实施例的智能合约标志了下注节点的下注,该智能合约包括下注节点标识,比如下注节点对应的终端设备的ID、入网许可证或者在区块链网络中的标识号等唯一标识该下注节点的信息,该智能合约还包括下注事件结果,比如,当下注事件为赛车时,下注事件结果可以为堵A车赢等,该下注事件结果与实际比赛结果一致时,即可判定对应的参与节点下注盈利,该智能合约还包括下注事件金额,该下注金额应该大于比赛方规定的最小的金额,下注事件金额的大小直接影响盈利的多少,或这,赔出金额的多少。Specifically, each participating node obtains a smart contract broadcast by each betting node in the blockchain network within a preset time period corresponding to the betting event, wherein each betting node may correspond to a terminal such as a mobile phone, computer, etc. that has been successfully authenticated by the node , so that the user can directly place a bet in the corresponding application program in the above-mentioned terminal, without the need to go to the physical store to place a bet. Including the identification of the betting node, such as the ID of the terminal device corresponding to the betting node, the network access license or the identification number in the blockchain network and other information that uniquely identifies the betting node, the smart contract also includes the betting event result, For example, when the betting event is a racing car, the result of the betting event can be a traffic jam to win, etc. When the result of the betting event is consistent with the actual result of the game, it can be determined that the corresponding participating node bet profitably. The smart contract also includes betting Bet the event amount. The bet amount should be greater than the minimum amount specified by the competition party. The size of the bet event amount directly affects the profit, or the amount of the payout.

在本发明的实施例中,基于区块链网络的去中心化执行机制进行下注事件合约生成权的确定,即在区块链中,每个参与节点均可以抢占下注事件合约生成权,参与节点公平竞争,抢占成功的参与节点不确定,从而有效避免了被恶意攻击,保证了下注事件有关信息的安全。In the embodiment of the present invention, the determination of the right to generate the betting event contract is performed based on the decentralized execution mechanism of the blockchain network, that is, in the blockchain, each participating node can preempt the right to generate the betting event contract, Participating nodes compete fairly, and the successful preemption of participating nodes is uncertain, thus effectively avoiding malicious attacks and ensuring the security of information related to betting events.

具体而言,参与抢占的参与节点自身生成的随机数,比如根据预设的随机数生成算法生成随机数,进而,根据预设算法(比如哈希算法)对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,基于该抢占哈希值确定抢占成功的目标参与节点。Specifically, the random number generated by the participating nodes participating in the preemption, such as the random number generated according to the preset random number generation algorithm, and then the random number and the random number generated by the participating nodes themselves according to the preset algorithm (such as a hash algorithm). All smart contracts perform calculations to generate the corresponding preemption hash value, and based on the preemption hash value, determine the target participating node that has successfully preempted.

区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值,确定符合条件的目标抢占哈希值,进而广播与符合条件的目标抢占哈希值对应的具有下注事件合约生成权的目标参与节点,该目标参与节点将会作为本次下注事件的下注相关信息的管理以及开奖等功能的处理方。The blockchain network analyzes the preemption hash values generated by all participating nodes according to the preset preemption strategy, determines the target preemption hash values that meet the conditions, and then broadcasts the generation of contracts with wagering events corresponding to the target preemption hash values that meet the conditions. The target participating node of the right, the target participating node will act as the processor of the management of the betting-related information and the lottery and other functions of this betting event.

需要说明的是,根据应用场景的不同,上述抢占策略以及对应的条件不同,作为一种可能的实现方式,比较所有参与节点生成的抢占哈希值,确定最小的抢占哈希值为目标抢占哈希值,作为另一种可能的实现方式,比较所有参与节点生成的抢占哈希值,确定最大的抢占哈希值为目标抢占哈希值。It should be noted that, according to different application scenarios, the above preemption strategies and corresponding conditions are different. As a possible implementation method, compare the preemption hash values generated by all participating nodes, and determine the minimum preemption hash value for the target preemption. The hash value, as another possible implementation, compares the preemptive hash values generated by all participating nodes, and determines the largest preemptive hash value as the target preemptive hash value.

在本发明的一个实施例中,还可以基于区块链运作机制,对目标参与节点进行记录,以便于后续对目标参与节点的管理等,比如,为目标参与节点分配金额奖励等,挖矿节点在生成的区块消息中记录具有所注事件合约生成权的目标参与节点。In an embodiment of the present invention, the target participating node can also be recorded based on the blockchain operation mechanism, so as to facilitate subsequent management of the target participating node, for example, allocating monetary rewards to the target participating node, etc., mining nodes In the generated block message, record the target participating node that has the right to generate the contract of the noted event.

步骤102,每个参与节点将自身节点在预设时段内获取的所有下注节点广播的智能合约生成自身的智能合约集合,并对智能合约集合进行计算生成对应的验证哈希值,并向区块链网络广播自身的节点标识以及经过自身私钥签名的携带验证哈希值的智能合约集合。Step 102, each participating node generates its own smart contract set from the smart contracts broadcast by all betting nodes acquired by its own node within a preset time period, and calculates the smart contract set to generate a corresponding verification hash value, and sends it to the district. The blockchain network broadcasts its own node identification and a collection of smart contracts signed by its own private key that carry the verification hash value.

应当理解的是,可能由于网络连接不稳定等原因,导致目标参与节点获取的智能合约不全,为了确保目标参与节点获取到全部的下注节点的智能合约,综合考量其他参与节点获取到的智能合约进行全部智能合约的确定。It should be understood that the smart contracts obtained by the target participating nodes may be incomplete due to unstable network connections and other reasons. In order to ensure that the target participating nodes obtain all the smart contracts of the betting nodes, the smart contracts obtained by other participating nodes are comprehensively considered. All smart contracts are determined.

具体地,每个参与节点将自身节点在预设时段内获取到的所有下注节点广播的智能合约生成自身的智能合约集,并且对智能合约集合进行计算生成对应的验证哈希值,其中,应当理解的是,验证哈希值与智能合约集合一一对应,且唯一对应,比如,验证哈希值A对应于智能合约集合1,验证哈希值B对应于智能合约集合2等,进而,向区块链网络广播自身的节点标识以及经过自身私钥签名的携带验证哈希值的智能合约集合。其中,参与节点的自身私钥由参与节点本身持有,用于表示参与节点的身份,避免恶意节点伪装参与节点。Specifically, each participating node generates its own smart contract set from the smart contracts broadcast by all betting nodes acquired by its own node within a preset period, and calculates the smart contract set to generate a corresponding verification hash value, wherein, It should be understood that the verification hash value corresponds to the smart contract set one-to-one, and is uniquely corresponding, for example, the verification hash value A corresponds to the smart contract set 1, the verification hash value B corresponds to the smart contract set 2, etc., and then, Broadcasts its own node identification and a collection of smart contracts signed by its own private key that carry the verification hash value to the blockchain network. Among them, the private key of the participating node is held by the participating node itself, which is used to represent the identity of the participating node and avoid malicious nodes from disguising the participating nodes.

步骤103,验证节点接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证,若验证通过,则将不同智能合约集合携带的验证哈希值进行比较,若相同的有效验证哈希值的次数达到预设阈值,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息,其中,确定消息包括:目标智能合约集合以及有效验证哈希值和对应的验证时间戳。Step 103, the verification node receives the node identifiers broadcasted by the multiple participating nodes and the smart contract set carrying the verification hash value signed by the private key, and signs the corresponding private key in turn according to the preset public key corresponding to each node identifier Verify, if the verification is passed, compare the verification hash values carried by different smart contract sets, if the number of times of the same valid verification hash value reaches the preset threshold, the smart contract corresponding to any valid verification hash value will be compared. The set is used as the target smart contract set, and broadcasts to the blockchain network the smart contract set confirmation message carrying the verification node identification and the verified private key signature, where the confirmation message includes: the target smart contract set and the valid verification hash value and the corresponding Validation timestamp.

具体地,基于多个参与节点发送的智能合约集合,互为补充,确定出全部的智能合约,由验证节点接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,在本实施例中,基于密钥对对参与节点进行认证,参与节点的私钥和公钥互为一对密码,由此,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证,避免非法节点伪装成参与节点发送智能合约集合,若验证通过,则表明智能合约集合真实,从而,将不同智能合约集合携带的验证哈希值进行比较,以根据比较结果确定出包含所有智能合约的目标智能合约集合。Specifically, based on the sets of smart contracts sent by multiple participating nodes, which complement each other, all smart contracts are determined, and the verification node receives the node identifiers broadcasted by the multiple participating nodes and the smart contract that carries the verification hash value signed by the private key. The contract set, in this embodiment, the participating nodes are authenticated based on the key pair, and the private key and the public key of the participating nodes are a pair of passwords. The corresponding private key signature is verified to avoid illegal nodes disguised as participating nodes to send the smart contract set. If the verification is passed, it means that the smart contract set is true. Therefore, the verification hash values carried by different smart contract sets are compared. The comparison results determine the target smart contract set containing all smart contracts.

具体而言,预先根据参与节点的数量设置预设阈值,该预设阈值用以确保部分的参与节点的主流意见,若相同的有效验证哈希值的次数达到预设阈值,则表明大部分的参与节点均生成了一个相同的智能合约集合,从而,认为该智能合约集合是可靠的,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息,其中,确定消息包括:目标智能合约集合以及有效验证哈希值和对应的验证时间戳,该验证时间戳用以表示验证时间,避免被伪装,将智能合约集合确定消息通过携带验证节点标识和通过验证私钥签名避免了其他非法节点伪装成验证节点,其中,验证私钥由验证节点本身持有,用于表明验证私钥的身份避免被伪装。Specifically, a preset threshold is set in advance according to the number of participating nodes. The preset threshold is used to ensure the mainstream opinion of some participating nodes. If the same number of valid verification hash values reaches the preset threshold, it indicates that most The participating nodes all generate the same set of smart contracts. Therefore, if the set of smart contracts is considered to be reliable, the set of smart contracts corresponding to any valid verification hash value is used as the set of target smart contracts and broadcast to the blockchain network. The confirmation message of the smart contract set carrying the verification node identifier and the verified private key signature, wherein the confirmation message includes: the target smart contract set, the valid verification hash value and the corresponding verification timestamp, the verification timestamp is used to indicate the verification time, To avoid being disguised, the smart contract set determination message avoids other illegal nodes from disguising as verification nodes by carrying the verification node identifier and signing the verification private key. The verification private key is held by the verification node itself, which is used to indicate the verification of the private key. Identity avoids being disguised.

其中,验证节点可以为时间戳服务器,或者,一个或者多个参与节点,在本发明的一个实施例中,如图4-1所示,当验证节点为专门设置的时间戳服务器时,参与节点包括节点1-4,预设阈值为4,则时间戳服务器验证这4个参与节点发送的智能合约集合A、B、C、D携带的验证哈希值是否全部一致,若一致,则将智能合约集合A、B、C、D中任一个智能合约集合作为目标智能合约集合,并向区块链网络广播携带时间戳服务器标识以及经过时间戳服务器私钥签名的智能合约集合确定消息。The verification node may be a timestamp server, or one or more participating nodes. In an embodiment of the present invention, as shown in Figure 4-1, when the verification node is a specially set timestamp server, the participating nodes Including nodes 1-4, and the preset threshold is 4, the timestamp server verifies whether the verification hash values carried by the smart contract sets A, B, C, and D sent by the 4 participating nodes are all consistent. Any one of the smart contract sets in the contract sets A, B, C, and D is used as the target smart contract set, and broadcasts to the blockchain network the confirmation message of the smart contract set carrying the timestamp server identifier and signed by the timestamp server private key.

在本发明的一个实施例中,为了提高验证效率,降低验证成本,验证节点为一个或多个参与节点,如图4-2所示,当验证节点为参与节点1和2时,预设阈值为4,则参与节点1验证参与节点1-3发送的智能合约集合A、B、C携带的验证哈希值是否全部一致,参与节点2验证参与节点4-6发送的智能合约集合D、E、F携带的验证哈希值是否全部一致,若参与节点1验证智能合约集合A、B携带的验证哈希值一致,参与节点2验证智能合约集合E、F携带的验证哈希值一致,则参与节点1或2比较A、B携带的验证哈希值和合约集合E、F携带的验证哈希值是否一致,若一致,则将智能合约集合A、B、C、D中任一个智能合约集合作为目标智能合约集合,并向区块链网络广播携带参与节点1或2标识以及经过参与节点1或2私钥签名的智能合约集合确定消息。In an embodiment of the present invention, in order to improve the verification efficiency and reduce the verification cost, the verification node is one or more participating nodes, as shown in Figure 4-2, when the verification nodes are participating nodes 1 and 2, the preset threshold If it is 4, then participating node 1 verifies whether the verification hash values carried by the smart contract sets A, B, and C sent by participating nodes 1-3 are all consistent, and participating node 2 verifies the smart contract sets D and E sent by participating nodes 4-6. , Whether the verification hash values carried by F are all consistent, if participating node 1 verifies that the verification hash values carried by smart contract sets A and B are consistent, and participating node 2 verifies that the verification hash values carried by smart contract sets E and F are consistent, then Participating node 1 or 2 compares whether the verification hash value carried by A and B is consistent with the verification hash value carried by contract sets E and F. If they are consistent, any smart contract in smart contract sets A, B, C, and D will be used. The set is used as the target smart contract set, and broadcasts to the blockchain network the confirmation message of the smart contract set with the identity of participating node 1 or 2 and the signature of the private key of participating node 1 or 2.

步骤104,目标参与节点获取合约生成权后,根据预设的下注事件合约信息设置与下注事件对应的定时器,当定时器到达后,根据预先获取的与验证节点标识对应的验证公钥对验证私钥进行验证,若验证通过,则根据下注事件合约信息分析目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈。Step 104: After the target participating node obtains the contract generation right, a timer corresponding to the betting event is set according to the preset contract information of the betting event, and when the timer arrives, according to the pre-acquired verification public key corresponding to the verification node identification The verification private key is verified. If the verification is passed, the target smart contract set is analyzed according to the betting event contract information, and the corresponding result feedback is given to the smart contracts of each betting node.

具体地,目标参与节点获取合约生成权后,根据预设的下注事件合约信息设置与下注事件对应的定时器,该定时器对应与下注开奖时间、开奖比例等,该下注事件合约信息可以是与下注事件发起方签订的,当定时器到达后,并不直接进行开奖处理,而是为了保证安全性,再次对验证节点进行身份验证,即基于公私钥机制进行身份认证,根据预先获取的与验证节点标识对应的验证公钥对所述验证私钥进行验证,若验证通过,则表明验证节点可靠,根据下注事件合约信息分析目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈,比如,对下注事件对应的下注结果与比赛结果吻合的下注节点,进行下注金额提高百分之十的奖金发放等。Specifically, after the target participating node obtains the contract generation right, a timer corresponding to the betting event is set according to the preset betting event contract information, and the timer corresponds to the betting draw time, draw ratio, etc. The information can be signed with the initiator of the betting event. When the timer arrives, the lottery will not be processed directly, but to ensure security, the verification node will be authenticated again, that is, based on the public-private key mechanism. The verification public key corresponding to the verification node identification obtained in advance verifies the verification private key. If the verification is passed, it indicates that the verification node is reliable, and the target smart contract set is analyzed according to the contract information of the wagering event, and the smart contract of each wagering node is analyzed. The contract provides corresponding result feedback, for example, for the betting node where the betting result corresponding to the betting event is consistent with the game result, the bonus is issued to increase the bet amount by 10%, etc.

在本发明的一个实施例中,为了调动参与节点抢占智能合约生成权的积极性,还可以对抢占成功的目标参与节点进行一定金额的奖励,基于该奖励机制可以吸引大量的参与节点参与到智能合约生成权的抢占中来,由此,避免了非法节点对智能合约生成权的抢占成功。In an embodiment of the present invention, in order to mobilize the enthusiasm of participating nodes to seize the right to generate smart contracts, a certain amount of rewards can also be given to the target participating nodes that have successfully seized the rights. Based on this reward mechanism, a large number of participating nodes can be attracted to participate in smart contracts. The preemption of the generation right is in progress, thus avoiding the successful preemption of the smart contract generation right by illegal nodes.

在本实施例中,下注事件合约信息中可以包含对目标参与节点的奖励规则,比如,奖励规则为按照总下注金额的一定比例,比如万分之一的比例,进行对目标参与节点的奖励,目标参与节点根据目标智能合约集合计算下注金额总额,根据下注事件合约信息从下注金额总额中获取预设比例的奖励金额。In this embodiment, the betting event contract information may include reward rules for the target participating nodes. For example, the reward rule is that the target participating nodes are rewarded according to a certain percentage of the total betting amount, such as a percentage of 1/10,000. Reward, the target participating node calculates the total bet amount according to the target smart contract set, and obtains a preset proportion of the reward amount from the total bet amount according to the betting event contract information.

综上,本发明实施例的基于区块链网络的智能合约交易方法,每个参与节点在下注事件的预设时段内获取区块链网络中各下注节点广播的智能合约,其中,智能合约包括:下注节点标识、下注事件结果和下注金额,按照预设算法对自身的参与节点生成的随机数和所有智能合约进行计算生成对应的抢占哈希值,并获取区块链网络按照预设的抢占策略分析所有参与节点生成的抢占哈希值后、广播的与符合条件的目标抢占哈希值对应的具有下注事件合约生成权的目标参与节点,每个参与节点将自身节点在预设时段内获取的所有下注节点广播的智能合约生成自身的智能合约集合,并对智能合约集合进行计算生成对应的验证哈希值,并向区块链网络广播自身的节点标识以及经过自身私钥签名的携带验证哈希值的智能合约集合,验证节点接收多个参与节点广播的节点标识以及经过私钥签名的携带验证哈希值的智能合约集合,根据预设的与每个节点标识对应的公钥依次对对应的私钥签名进行验证,若验证通过,则将不同智能合约集合携带的验证哈希值进行比较,若相同的有效验证哈希值的次数达到预设阈值,则将任一有效验证哈希值对应的智能合约集合作为目标智能合约集合,并向区块链网络广播携带验证节点标识以及经过验证私钥签名的智能合约集合确定消息,其中,确定消息包括:目标智能合约集合以及有效验证哈希值和对应的验证时间戳,进而,目标参与节点获取合约生成权后,根据预设的下注事件合约信息设置与下注事件对应的定时器,当定时器到达后,根据预先获取的与验证节点标识对应的验证公钥对验证私钥进行验证,若验证通过,则根据下注事件合约信息分析目标智能合约集合,对各下注节点的智能合约进行相应的结果反馈。由此,实现了用户可以在移动终端进行下注,改善了现有技术中用户需要去到实体店进行下注的现状,提高了下注便利性,并且利用区块链网络去中心化的特点为用户提供了安全可靠的网上下注交易,提高了下注事件的安全性。To sum up, in the smart contract transaction method based on the blockchain network according to the embodiment of the present invention, each participating node obtains the smart contract broadcast by each betting node in the blockchain network within the preset time period of the betting event, wherein the smart contract Including: betting node identification, betting event result and betting amount, calculate the random number generated by its own participating nodes and all smart contracts according to the preset algorithm to generate the corresponding preemption hash value, and obtain the blockchain network according to the The preset preemption strategy analyzes the preemption hash values generated by all participating nodes, and broadcasts the target participating nodes with the right to generate the wagering event contract corresponding to the eligible target preemption hash values. The smart contracts broadcast by all betting nodes acquired within a preset period of time generate their own smart contract sets, and the smart contract sets are calculated to generate the corresponding verification hash values, and broadcast their own node IDs to the blockchain network. The set of smart contracts signed by the private key that carries the verification hash value, the verification node receives the node identifiers broadcast by multiple participating nodes, and the set of smart contracts signed by the private key that carries the verification hash value, according to the preset and each node identifier The corresponding public key verifies the corresponding private key signature in turn. If the verification passes, the verification hash values carried by different smart contract sets are compared. If the number of times of the same valid verification hash value reaches the preset threshold, the The smart contract set corresponding to any valid verification hash value is used as the target smart contract set, and the smart contract set confirmation message carrying the verification node identifier and the verified private key signature is broadcast to the blockchain network, wherein the confirmation message includes: target smart contract set The contract set, the valid verification hash value and the corresponding verification timestamp, and then, after the target participating node obtains the contract generation right, the timer corresponding to the wagering event is set according to the preset wagering event contract information. When the timer arrives , verifies the verification private key according to the verification public key corresponding to the verification node identification obtained in advance. If the verification passes, the target smart contract set is analyzed according to the betting event contract information, and the corresponding results are obtained for the smart contracts of each betting node. feedback. As a result, users can place bets on mobile terminals, which improves the current situation that users need to go to physical stores to place bets in the prior art, improves the convenience of betting, and utilizes the decentralization of the blockchain network. It provides users with safe and reliable online betting transactions, and improves the security of betting events.

为了实现上述实施例,本发明还提出了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如前述实施例描述的基于区块链网络的智能合约交易方法。In order to implement the above-mentioned embodiments, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the The smart contract transaction method based on the blockchain network described in the foregoing embodiments.

为了实现上述实施例,本发明还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,当该计算机程序被处理器执行时能够实现如前述实施例所述的基于区块链网络的智能合约交易方法。In order to realize the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the blockchain-based blockchain described in the foregoing embodiments can be realized. The network's smart contract transaction method.

在本发明中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In the present invention, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.

在本发明中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present invention, unless otherwise expressly specified and limited, a first feature "on" or "under" a second feature may be in direct contact between the first and second features, or the first and second features indirectly through an intermediary touch. Also, the first feature being "above", "over" and "above" the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is level higher than the second feature. The first feature being "below", "below" and "below" the second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature has a lower level than the second feature.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (10)

1. An intelligent contract transaction method based on a block chain network is characterized by comprising the following steps:
each participating node acquires an intelligent contract broadcasted by each betting node in a block chain network within a preset time period of a betting event, wherein the intelligent contract comprises the following steps: calculating the random numbers generated by the participating nodes of the betting node identification, the betting event result and the betting amount according to a preset algorithm to generate corresponding preemption hash values, and acquiring target participating nodes which are broadcasted and correspond to the qualified target preemption hash values and have the betting event contract generation right after the block chain network analyzes the preemption hash values generated by all the participating nodes according to a preset preemption strategy;
each participating node generates an intelligent contract set of the participating node according to the intelligent contracts broadcasted by all the betting nodes acquired by the participating node in the preset time period, calculates the intelligent contract set to generate a corresponding verification hash value, and broadcasts a node identifier of the participating node and the intelligent contract set which is signed by a private key of the participating node and carries the verification hash value to the block chain network;
the method comprises the steps that a verification node receives a plurality of node identifications participating in node broadcasting and intelligent contract sets which are subjected to private key signature and carry verification hash values, the corresponding private key signatures are sequentially verified according to a preset public key corresponding to each node identification, if verification is passed, the verification hash values carried by different intelligent contract sets are compared, if the same number of times of valid verification hash values reaches a preset threshold value, the intelligent contract set corresponding to any valid verification hash value is used as a target intelligent contract set, and the intelligent contract sets carrying the verification node identifications and the verification hash values are broadcasted to a block chain network to determine messages, wherein the determining messages comprise: a target intelligent contract set and the valid validation hash values and corresponding validation timestamps;
and after the target participation node acquires the contract generation right, setting a timer corresponding to the betting event according to preset betting event contract information, verifying the verification private key according to a pre-acquired verification public key corresponding to the verification node identification after the timer arrives, and if the verification is passed, analyzing the target intelligent contract set according to the betting event contract information and feeding back corresponding results to the intelligent contracts of all betting nodes.
2. The method of claim 1, wherein the preset preemption policy comprises:
comparing the occupation hash values generated by all the participating nodes, and determining the minimum occupation hash value as a target occupation hash value; or,
and comparing the preemption hash values generated by all the participating nodes, and determining the maximum preemption hash value as a target preemption hash value.
3. The method of claim 1, further comprising:
the target participation node calculates the total amount of money to be bet according to the target intelligent contract set;
and acquiring the award amount with a preset proportion from the total amount of the bet amount according to the contract information of the bet event.
4. The method of claim 1, further comprising:
the mining node records the target participant node with the betting event contract generation right in the generated block message.
5. The method of claim 1, wherein the verifying node comprises:
a timestamp server, or one or more participating nodes.
6. An intelligent contract transaction system based on a blockchain network, comprising: a participating node and an authenticating node, wherein,
each participating node in the participating nodes is configured to obtain an intelligent contract broadcasted by each betting node in the block chain network within a preset time period of a betting event, where the intelligent contract includes: calculating the random numbers generated by the participating nodes of the betting node identification, the betting event result and the betting amount according to a preset algorithm to generate corresponding preemption hash values, and acquiring target participating nodes which are broadcasted and correspond to the qualified target preemption hash values and have the betting event contract generation right after the block chain network analyzes the preemption hash values generated by all the participating nodes according to a preset preemption strategy;
each participating node is further configured to generate an intelligent contract set of the participating node by using an intelligent contract broadcasted by all the betting nodes acquired by the participating node within the preset time period, calculate the intelligent contract set to generate a corresponding verification hash value, and broadcast a node identifier of the participating node and the intelligent contract set carrying the verification hash value and signed by a private key of the participating node to the block chain network;
the verification node is used for receiving a plurality of node identifiers participating in node broadcasting and intelligent contract sets which are signed by private keys and carry verification hash values, verifying the corresponding private key signatures in sequence according to a preset public key corresponding to each node identifier, if the verification passes, comparing the verification hash values carried by different intelligent contract sets, if the same number of times of effectively verifying the hash values reaches a preset threshold value, taking the intelligent contract set corresponding to any one valid verification hash value as a target intelligent contract set, and broadcasting the intelligent contract sets carrying the verification node identifiers and the verification hash values to the block chain network to determine messages, wherein the determination messages comprise: a target intelligent contract set and the valid validation hash values and corresponding validation timestamps;
and the target participation node is used for setting a timer corresponding to the betting event according to preset betting event contract information after acquiring the contract generation right, verifying the verification private key according to a pre-acquired verification public key corresponding to the verification node identifier after the timer arrives, and analyzing the target intelligent contract set according to the betting event contract information and feeding back corresponding results to the intelligent contracts of all the betting nodes if the verification is passed.
7. The system of claim 6, wherein the preset preemption policy comprises:
comparing the occupation hash values generated by all the participating nodes, and determining the minimum occupation hash value as a target occupation hash value; or,
and comparing the preemption hash values generated by all the participating nodes, and determining the maximum preemption hash value as a target preemption hash value.
8. The system of claim 6, wherein the target participant node is further configured to:
calculating a total amount of money to be bet according to the target intelligent contract set;
and acquiring the award amount with a preset proportion from the total amount of the bet amount according to the contract information of the bet event.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the intelligent contract transaction method based on a blockchain network according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for intelligent contract trading based on a blockchain network according to any one of claims 1 to 5.
CN201811166348.2A 2018-10-08 2018-10-08 Smart contract transaction method and system based on blockchain network Expired - Fee Related CN109359978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811166348.2A CN109359978B (en) 2018-10-08 2018-10-08 Smart contract transaction method and system based on blockchain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811166348.2A CN109359978B (en) 2018-10-08 2018-10-08 Smart contract transaction method and system based on blockchain network

Publications (2)

Publication Number Publication Date
CN109359978A true CN109359978A (en) 2019-02-19
CN109359978B CN109359978B (en) 2021-10-08

Family

ID=65348463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811166348.2A Expired - Fee Related CN109359978B (en) 2018-10-08 2018-10-08 Smart contract transaction method and system based on blockchain network

Country Status (1)

Country Link
CN (1) CN109359978B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059503A (en) * 2019-04-24 2019-07-26 成都派沃特科技股份有限公司 The retrospective leakage-preventing method of social information
CN110351362A (en) * 2019-07-12 2019-10-18 全链通有限公司 Data verification method, equipment and computer readable storage medium
CN111586013A (en) * 2020-04-29 2020-08-25 数网金融有限公司 Network intrusion detection method, device, node terminal and storage medium
CN112162865A (en) * 2020-11-03 2021-01-01 中国工商银行股份有限公司 Server scheduling method and device and server
CN112532733A (en) * 2020-12-02 2021-03-19 东软集团股份有限公司 Method and device for calling external data by intelligent contract, storage medium and electronic equipment
CN112862483A (en) * 2019-11-12 2021-05-28 航天信息股份有限公司 Identity verification method and device based on intelligent contract
CN114401118A (en) * 2021-12-27 2022-04-26 浙江数秦科技有限公司 A login password verification system based on smart contracts
CN116452199A (en) * 2023-06-16 2023-07-18 江西五十铃汽车有限公司 VCU control algorithm optimization method and program product based on block chain

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114065286A (en) * 2021-11-18 2022-02-18 成都积微物联集团股份有限公司 Industrial control equipment instruction desensitization method based on block chain intelligent contract

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150310424A1 (en) * 2014-04-26 2015-10-29 Michael Myers Cryptographic currency user directory data and enhanced peer-verification ledger synthesis through multi-modal cryptographic key-address mapping
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
US20170213209A1 (en) * 2016-01-21 2017-07-27 International Business Machines Corporation Enterprise blockchains and transactional systems
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN108399571A (en) * 2018-01-30 2018-08-14 厦门快商通信息技术有限公司 Unsecured method of commerce and system based on block chain intelligence contract

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150310424A1 (en) * 2014-04-26 2015-10-29 Michael Myers Cryptographic currency user directory data and enhanced peer-verification ledger synthesis through multi-modal cryptographic key-address mapping
US20170213209A1 (en) * 2016-01-21 2017-07-27 International Business Machines Corporation Enterprise blockchains and transactional systems
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN108399571A (en) * 2018-01-30 2018-08-14 厦门快商通信息技术有限公司 Unsecured method of commerce and system based on block chain intelligence contract

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059503A (en) * 2019-04-24 2019-07-26 成都派沃特科技股份有限公司 The retrospective leakage-preventing method of social information
CN110351362A (en) * 2019-07-12 2019-10-18 全链通有限公司 Data verification method, equipment and computer readable storage medium
CN112862483B (en) * 2019-11-12 2024-04-09 航天信息股份有限公司 Identity verification method and device based on intelligent contract
CN112862483A (en) * 2019-11-12 2021-05-28 航天信息股份有限公司 Identity verification method and device based on intelligent contract
CN111586013B (en) * 2020-04-29 2022-02-22 数网金融有限公司 Network intrusion detection method, device, node terminal and storage medium
CN111586013A (en) * 2020-04-29 2020-08-25 数网金融有限公司 Network intrusion detection method, device, node terminal and storage medium
CN112162865A (en) * 2020-11-03 2021-01-01 中国工商银行股份有限公司 Server scheduling method and device and server
CN112162865B (en) * 2020-11-03 2023-09-01 中国工商银行股份有限公司 Scheduling method and device of server and server
CN112532733B (en) * 2020-12-02 2024-02-02 东软集团股份有限公司 Method and device for calling external data by intelligent contract, storage medium and electronic equipment
CN112532733A (en) * 2020-12-02 2021-03-19 东软集团股份有限公司 Method and device for calling external data by intelligent contract, storage medium and electronic equipment
CN114401118A (en) * 2021-12-27 2022-04-26 浙江数秦科技有限公司 A login password verification system based on smart contracts
CN114401118B (en) * 2021-12-27 2024-04-30 浙江数秦科技有限公司 Login password verification system based on intelligent contract
CN116452199A (en) * 2023-06-16 2023-07-18 江西五十铃汽车有限公司 VCU control algorithm optimization method and program product based on block chain

Also Published As

Publication number Publication date
CN109359978B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN109359978A (en) Smart contract transaction method and system based on blockchain network
CN110380858B (en) Method and system for processing game consensus protocol of block chain
JP7420890B2 (en) Event-locked encryption method and system implemented on blockchain
JP7627330B2 (en) Blockchain for general computation
JP7189144B2 (en) Secure Reuse of Private Keys for Dynamic Node Groups
CN109447799B (en) Smart contract transaction method and system based on blockchain network
CN113853578A (en) Method for generating random numbers in a blockchain intelligent contract
JP7592634B2 (en) Method and apparatus for recording work history and proving reputation in a blockchain network
JP7608364B2 (en) Method and apparatus for registering and authenticating miner identities in a blockchain network
UA128523C2 (en) METHOD OF GENERATION OF A BLOCKCHAIN TRANSACTION AND METHOD OF CHECKING THE VALIDITY OF A BLOCK OF BLOCKCHAIN
US20200152003A1 (en) Gambling systems and methods based on blockchain technology
CN109347877B (en) Blockchain structured storage control method
CN114372589B (en) A federated learning method and related device
CN111159297A (en) Block chain accounting method, device, node and storage medium
CN112734455B (en) Method, device and equipment for generating prize exchanging result and readable storage medium
CN111202987A (en) Login control method and device for game application
CN113269570B (en) Extraction result verification method and related device
Clark et al. Research perspectives and challenges for bitcoin and cryptocurrencies
CN115769240A (en) Method and device for double-spend relay in blockchain network
CN112933608B (en) Game game-play data processing method, system, node, device and storage medium
RU2791865C2 (en) Blockchain transaction generation method and blockchain block validity verification method
CN112689834A (en) Method and system for proof of election on blockchain
WO2017084080A1 (en) Method and apparatus for generating winning numbers
JP7211437B2 (en) RANDOM NUMBER GENERATING SYSTEM AND RANDOM NUMBER GENERATING METHOD
CN115314352B (en) Privacy-enhanced fair blockchain leader election method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100191 1107c, 11 / F, Xueyuan international building, 1 Zhichun Road, Haidian District, Beijing

Applicant after: IALLCHAIN Co.,Ltd.

Address before: 100043 5158, 5 floor, 11 Shixing street, Shijingshan District, Beijing.

Applicant before: IALLCHAIN Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20211008

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载