CN111274597A - Data processing method and equipment - Google Patents
Data processing method and equipment Download PDFInfo
- Publication number
- CN111274597A CN111274597A CN202010076865.1A CN202010076865A CN111274597A CN 111274597 A CN111274597 A CN 111274597A CN 202010076865 A CN202010076865 A CN 202010076865A CN 111274597 A CN111274597 A CN 111274597A
- Authority
- CN
- China
- Prior art keywords
- contract
- enterprise
- electronic contract
- node
- electronic
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/105—Human resources
- G06Q10/1053—Employment or hiring
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/18—Legal services
- G06Q50/188—Electronic negotiation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2151—Time stamp
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Bioethics (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Technology Law (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请实施例公开一种数据处理方法以及设备,其中方法包括如下步骤:获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约;所述电子合约由所述智能合约进行维护;获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态;当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。采用本申请,可以提高协议和保密协议的数据可靠性。
The embodiments of the present application disclose a data processing method and device, wherein the method includes the following steps: acquiring a contract initiation request of an enterprise node, calling a smart contract according to the contract initiation request, and generating electronic data for user nodes and enterprise nodes through the smart contract contract; the electronic contract is maintained by the smart contract; the system timestamp of the blockchain network is obtained, and when the timestamp matches the transfer time of the confidential asset amount in the electronic contract, the electronic contract is detected. Status information, the status information includes a locked state and an activated state; when the electronic contract is in an activated state, the amount of transferred assets is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are transferred from the enterprise account of the enterprise node. Sent to the user account of the user node. By adopting this application, the data reliability of the agreement and the confidentiality agreement can be improved.
Description
技术领域technical field
本申请涉及电子技术领域,尤其涉及一种数据处理方法以及设备。The present application relates to the field of electronic technology, and in particular, to a data processing method and device.
背景技术Background technique
在一些高科技企业,员工可能会接触到企业的核心技术或者机密信息,有些竞争企业为了获取竞争对手的技术,采用不正当的手段,通过招聘竞争对手企业的员工,已达到窃取核心技术的目的,为了避免上述情况的发生,员工离职时,企业会与员工签订劳动协议,保证企业的技术不被泄露,但是由于无法及时对协议进行检验,同时也无法确保协议的数据准确性,导致协议无法及时执行。In some high-tech enterprises, employees may come into contact with the core technology or confidential information of the enterprise. In order to obtain the competitor's technology, some competing companies have adopted unfair means and recruited employees of the competitor's company to achieve the purpose of stealing the core technology. , In order to avoid the above situation, when the employee leaves the company, the company will sign a labor agreement with the employee to ensure that the company's technology will not be leaked. Execute in a timely manner.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种数据处理方法以及设备,可以提高劳动协议的数据可靠性。The embodiments of the present application provide a data processing method and device, which can improve the data reliability of a labor agreement.
本申请实施例一方面提供了一种数据处理方法,可包括:On the one hand, the embodiments of the present application provide a data processing method, which may include:
获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约;所述电子合约由所述智能合约进行维护;Obtain the contract initiation request of the enterprise node, invoke the smart contract according to the contract initiation request, and generate an electronic contract for the user node and the enterprise node through the smart contract; the electronic contract is maintained by the smart contract;
获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态;Obtain the system timestamp of the blockchain network, and when the timestamp matches the transfer time of the confidential asset amount in the electronic contract, detect the status information of the electronic contract, and the status information includes a locked state and an activated state;
当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。When the electronic contract is in an activated state, the amount of assets to be transferred is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are sent from the enterprise account of the enterprise node to the user account of the user node.
其中,还包括:Among them, it also includes:
检测所述用户节点所属的企业信息,当所属的企业信息属于所述电子合约中的参考企业时,根据智能合约,将所述电子合约中的违约资产量对应的数字资产从所述用户账号发送至企业账户;Detect the enterprise information to which the user node belongs, and when the enterprise information belongs to the reference enterprise in the electronic contract, according to the smart contract, send the digital asset corresponding to the default asset amount in the electronic contract from the user account to a business account;
将所述电子合约的状态信息设置为锁定状态,当所述电子合约处于锁定状态时,停止所述企业节点向所述用户节点的数字资产转移服务。The state information of the electronic contract is set to a locked state, and when the electronic contract is in a locked state, the digital asset transfer service from the enterprise node to the user node is stopped.
其中,所述获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约,包括:Wherein, the contract initiating request for acquiring the enterprise node, calling a smart contract according to the contract initiating request, and generating an electronic contract for the user node and the enterprise node through the smart contract, including:
获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约获取所述企业节点对应的初始电子合约;Obtain the contract initiation request of the enterprise node, invoke the smart contract according to the contract initiation request, and obtain the initial electronic contract corresponding to the enterprise node through the smart contract;
根据企业节点的企业签名、用户节点的用户签名和初始电子合约,生成电子合约;Generate an electronic contract according to the enterprise signature of the enterprise node, the user signature of the user node and the initial electronic contract;
将所述电子合约进行加密,将加密后的电子合约同步至区块链网络。The electronic contract is encrypted, and the encrypted electronic contract is synchronized to the blockchain network.
其中,所述获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,包括:Wherein, when the system time stamp of the blockchain network is obtained, when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, the state information of the electronic contract is detected, including:
获取所述电子合约中的保密期限和转移周期,采用智能合约,确定所述电子合约中保密资产量的转移时间;Obtain the confidentiality period and transfer period in the electronic contract, and use a smart contract to determine the transfer time of the confidential asset amount in the electronic contract;
获取区块链网络的系统时间戳,当所述时间戳与所述转移时间匹配时,检测所述电子合约的状态信息。Obtain the system timestamp of the blockchain network, and detect the state information of the electronic contract when the timestamp matches the transfer time.
其中,所述当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户,包括:Wherein, when the electronic contract is in an activated state, the amount of transferred assets is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are sent from the enterprise account of the enterprise node to the user account of the user node, include:
当所述电子合约处于激活状态时,根据智能合约,从所述电子合约中获取用户的用户账户和企业的企业账户;When the electronic contract is in an activated state, obtain the user account of the user and the enterprise account of the enterprise from the electronic contract according to the smart contract;
根据电子合约中的保密期限和转移周期,确定所述电子合约的转移资产量;According to the confidentiality period and transfer cycle in the electronic contract, determine the amount of transferred assets in the electronic contract;
根据所述用户账户、所述企业账户、所述转移资产量和所述转移资产量的来源账户生成交易数据;generating transaction data according to the user account, the enterprise account, the amount of transferred assets, and the source account of the amount of transferred assets;
获取企业节点的企业私钥,采用所述企业私钥对所述交易数据进行签名,得到转移签名信息;Obtain the enterprise private key of the enterprise node, and use the enterprise private key to sign the transaction data to obtain transfer signature information;
对所述交易数据和所述转移签名信息进行共识处理;Perform consensus processing on the transaction data and the transfer signature information;
共识通过后,将所述交易数据和所述转移签名信息存储至区块链网络;用户节点具备对已存储至区块链网络中的所述交易数据的资产转移权限。After the consensus is passed, the transaction data and the transfer signature information are stored in the blockchain network; the user node has the asset transfer authority to the transaction data stored in the blockchain network.
其中,还包括:Among them, it also includes:
根据智能合约,当检测到所述电子合约到达所述保密期限,检测所述电子合约的保密资产量的转移状态;According to the smart contract, when it is detected that the electronic contract has reached the confidentiality period, the transfer status of the confidential asset amount of the electronic contract is detected;
若所述企业账户向所述用户账户转移的数字资产等于所述保密资产量对应的数字资产,或者所述电子合约处于锁定状态,则根据智能合约将所述电子合约从所述区块链中销毁。If the digital asset transferred from the enterprise account to the user account is equal to the digital asset corresponding to the confidential asset amount, or the electronic contract is in a locked state, the electronic contract will be removed from the blockchain according to the smart contract. destroy.
其中,还包括:Among them, it also includes:
获取企业节点的查询指令,根据所述查询指令和所述查询指令携带的查询信息对所述电子合约进行检测;Obtain the query instruction of the enterprise node, and detect the electronic contract according to the query instruction and the query information carried by the query instruction;
当检测到与所述查询信息满足相关性阈值的信息时,根据智能合约,获取所述电子合约中的违约资产量;When detecting the information satisfying the correlation threshold with the query information, obtain the default asset amount in the electronic contract according to the smart contract;
将所述违约资产量对应的数字资产从所述用户账户发送至所述企业账户。Sending the digital assets corresponding to the amount of defaulted assets from the user account to the enterprise account.
本申请实施例一方面提供了一种数据处理设备,可包括:On the one hand, the embodiments of the present application provide a data processing device, which may include:
电子合约生成单元,用于获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约;所述电子合约由所述智能合约进行维护;The electronic contract generation unit is used to obtain the contract initiation request of the enterprise node, call the smart contract according to the contract initiation request, and generate the electronic contract for the user node and the enterprise node through the smart contract; the electronic contract is executed by the smart contract maintain;
合约状态检测单元,用于获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态;The contract state detection unit is used to obtain the system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, the state information of the electronic contract is detected, and the state information including locked state and activated state;
资产转移单元,用于当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。An asset transfer unit, configured to determine the amount of assets to be transferred according to the smart contract when the electronic contract is in an active state, and send the digital assets corresponding to the amount of transferred assets from the enterprise account of the enterprise node to the user of the user node account.
其中,还包括:Among them, it also includes:
合约状态设置单元,用于检测所述用户节点所属的企业信息,当所属的企业信息属于所述电子合约中的参考企业时,根据智能合约,将所述电子合约中的违约资产量对应的数字资产从所述用户账号发送至企业账户;The contract state setting unit is used to detect the enterprise information to which the user node belongs. When the enterprise information belongs to the reference enterprise in the electronic contract, according to the smart contract, the number corresponding to the amount of defaulted assets in the electronic contract is set. assets are sent from the user account to the business account;
将所述电子合约的状态信息设置为锁定状态,当所述电子合约处于锁定状态时,停止所述企业节点向所述用户节点的数字资产转移服务。The state information of the electronic contract is set to a locked state, and when the electronic contract is in a locked state, the digital asset transfer service from the enterprise node to the user node is stopped.
其中,所述电子合约生成单元具体用于:Wherein, the electronic contract generation unit is specifically used for:
获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约获取所述企业节点对应的初始电子合约;Obtain the contract initiation request of the enterprise node, invoke the smart contract according to the contract initiation request, and obtain the initial electronic contract corresponding to the enterprise node through the smart contract;
根据企业节点的企业签名、用户节点的用户签名和初始电子合约,生成电子合约;Generate an electronic contract according to the enterprise signature of the enterprise node, the user signature of the user node and the initial electronic contract;
将所述电子合约进行加密,将加密后的电子合约同步至区块链网络。The electronic contract is encrypted, and the encrypted electronic contract is synchronized to the blockchain network.
其中,所述合约状态检测单元具体用于:Wherein, the contract state detection unit is specifically used for:
获取所述电子合约中的保密期限和转移周期,采用智能合约,确定所述电子合约中保密资产量的转移时间;Obtain the confidentiality period and transfer period in the electronic contract, and use a smart contract to determine the transfer time of the confidential asset amount in the electronic contract;
获取区块链网络的系统时间戳,当所述时间戳与所述转移时间匹配时,检测所述电子合约的状态信息。Obtain the system timestamp of the blockchain network, and detect the state information of the electronic contract when the timestamp matches the transfer time.
其中,所述资产转移单元具体用于:Wherein, the asset transfer unit is specifically used for:
当所述电子合约处于激活状态时,根据智能合约,从所述电子合约中获取用户的用户账户和企业的企业账户;When the electronic contract is in an activated state, obtain the user account of the user and the enterprise account of the enterprise from the electronic contract according to the smart contract;
根据电子合约中的保密期限和转移周期,确定所述电子合约的转移资产量;According to the confidentiality period and transfer cycle in the electronic contract, determine the amount of transferred assets in the electronic contract;
根据所述用户账户、所述企业账户、所述转移资产量和所述转移资产量的来源账户生成交易数据;generating transaction data according to the user account, the enterprise account, the amount of transferred assets, and the source account of the amount of transferred assets;
获取企业节点的企业私钥,采用所述企业私钥对所述交易数据进行签名,得到转移签名信息;Obtain the enterprise private key of the enterprise node, and use the enterprise private key to sign the transaction data to obtain transfer signature information;
对所述交易数据和所述转移签名信息进行共识处理;Perform consensus processing on the transaction data and the transfer signature information;
共识通过后,将所述交易数据和所述转移签名信息存储至区块链网络;用户节点具备对已存储至区块链网络中的所述交易数据的资产转移权限。After the consensus is passed, the transaction data and the transfer signature information are stored in the blockchain network; the user node has the asset transfer authority to the transaction data stored in the blockchain network.
其中,还包括:Among them, it also includes:
电子合约销毁单元,用于根据智能合约,当检测到所述电子合约到达所述保密期限,检测所述电子合约的保密资产量的转移状态;The electronic contract destruction unit is used to detect, according to the smart contract, the transfer state of the confidential asset amount of the electronic contract when it is detected that the electronic contract has reached the confidentiality period;
若所述企业账户向所述用户账户转移的数字资产等于所述保密资产量对应的数字资产,或者所述电子合约处于锁定状态,则根据智能合约将所述电子合约从所述区块链中销毁。If the digital asset transferred from the enterprise account to the user account is equal to the digital asset corresponding to the confidential asset amount, or the electronic contract is in a locked state, the electronic contract will be removed from the blockchain according to the smart contract. destroy.
其中,还包括:Among them, it also includes:
查询单元,用于获取企业节点的查询指令,根据所述查询指令和所述查询指令携带的查询信息对所述电子合约进行检测;a query unit, configured to obtain a query instruction of an enterprise node, and detect the electronic contract according to the query instruction and the query information carried by the query instruction;
当检测到与所述查询信息满足相关性阈值的信息时,根据智能合约,获取所述电子合约中的违约资产量;When detecting the information satisfying the correlation threshold with the query information, obtain the default asset amount in the electronic contract according to the smart contract;
将所述违约资产量对应的数字资产从所述用户账户发送至所述企业账户。Sending the digital assets corresponding to the amount of defaulted assets from the user account to the enterprise account.
本申请实施例一方面提供了一种计算机可读存储介质,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行上述的方法步骤。An aspect of an embodiment of the present application provides a computer-readable storage medium, where the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
本申请实施例一方面提供了一种计算机设备,包括处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行上述的方法步骤。In one aspect, an embodiment of the present application provides a computer device, including a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the above-mentioned method steps.
在本申请实施例中,通过获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,再通过所述智能合约为用户节点和企业节点生成电子合约,电子合约由所述智能合约进行维护,获取区块链网络的系统时间戳,当时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态,当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。通过智能合约对电子合约电子进行维护,可以实时执行合约条款,避免了无法及时对合约进行检验,导致合约无法执行的问题,同时也提高了合约的数据准确性。In the embodiment of the present application, the request is initiated by obtaining the contract of the enterprise node, and the smart contract is invoked according to the contract initiation request, and then an electronic contract is generated for the user node and the enterprise node through the smart contract, and the electronic contract is executed by the smart contract. Maintain, obtain the system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, detect the state information of the electronic contract, the state information includes the locked state and the activated state, When the electronic contract is in an activated state, the amount of assets to be transferred is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are sent from the enterprise account of the enterprise node to the user account of the user node. The electronic maintenance of the electronic contract through the smart contract can implement the contract terms in real time, avoiding the problem of the inability to check the contract in time, resulting in the inability of the contract to be executed, and at the same time improving the data accuracy of the contract.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1a是本申请实施例提供的一种的数据处理的系统架构图;1a is a system architecture diagram of a data processing provided by an embodiment of the present application;
图1b是本申请实施例提供的一种分布式系统的场景示意图;FIG. 1b is a schematic diagram of a scenario of a distributed system provided by an embodiment of the present application;
图1c是本申请实施例提供的一种区块结构的结构示意图;1c is a schematic structural diagram of a block structure provided by an embodiment of the present application;
图2是本申请实施例提供的一种数据处理方法的流程示意图;2 is a schematic flowchart of a data processing method provided by an embodiment of the present application;
图3是本申请实施例提供的一种数据处理方法的流程示意图;3 is a schematic flowchart of a data processing method provided by an embodiment of the present application;
图4a是本申请实施例提供的一种资产转移的举例示意图;4a is an exemplary schematic diagram of an asset transfer provided by an embodiment of the present application;
图4b是本申请实施例提供的一种合约状态的举例示意图;FIG. 4b is an exemplary schematic diagram of a contract state provided by an embodiment of the present application;
图5是本申请实施例提供的一种数据处理设备的结构示意图;5 is a schematic structural diagram of a data processing device provided by an embodiment of the present application;
图6是本申请实施例提供的一种计算机设备的结构示意图。FIG. 6 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
请参见图1a,是本发明实施例提供的一种数据处理的系统架构图。区块链网络10c与用户节点10a和企业节点10b建立连接。区块链网络10c中包括区块链节点10d、...、区块链节点10e,用户节点10a和企业节点10b也属于区块链网络10d中的节点,区块链网络10c获取企业节点10b的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点10a和企业节点10b生成电子合约,所述电子合约由所述智能合约进行维护;区块链网络10c获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,区块链网络10c检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态;当所述电子合约处于激活状态时,区块链网络10c根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。Please refer to FIG. 1a , which is a system architecture diagram of a data processing provided by an embodiment of the present invention. The
本申请实施例涉及的企业节点可以包括具有数据处理的服务器,所述用户节点包括:平板电脑、智能手机、个人电脑(PC)、笔记本电脑、掌上电脑等终端设备。The enterprise node involved in the embodiments of the present application may include a server with data processing, and the user node includes terminal devices such as a tablet computer, a smart phone, a personal computer (PC), a notebook computer, and a palmtop computer.
本申请实施例中涉及到的区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层。The blockchain involved in the embodiments of this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
区块链底层平台可以包括用户管理、基础服务、智能合约以及运营监控等处理模块。其中,用户管理模块负责所有区块链参与者的身份信息管理,包括维护公私钥生成(账户管理)、密钥管理以及用户真实身份和区块链地址对应关系维护(权限管理)等,并且在授权的情况下,监管和审计某些真实身份的交易情况,提供风险控制的规则配置(风控审计);基础服务模块部署在所有区块链节点设备上,用来验证业务请求的有效性,并对有效请求完成共识后记录到存储上,对于一个新的业务请求,基础服务先对接口适配解析和鉴权处理(接口适配),然后通过共识算法将业务信息加密(共识管理),在加密之后完整一致的传输至共享账本上(网络通信),并进行记录存储;智能合约模块负责合约的注册发行以及合约触发和合约执行,开发人员可以通过某种编程语言定义合约逻辑,发布到区块链上(合约注册),根据合约条款的逻辑,调用密钥或者其它的事件触发执行,完成合约逻辑,同时还提供对合约升级注销的功能;运营监控模块主要负责产品发布过程中的部署、配置的修改、合约设置、云适配以及产品运行中的实时状态的可视化输出,例如:告警、监控网络情况、监控节点设备健康状态等。The underlying platform of the blockchain can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, and maintenance of the corresponding relationship between the user's real identity and blockchain address (authority management), etc. When authorized, supervise and audit the transactions of some real identities, and provide rule configuration for risk control (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, After completing the consensus on valid requests, record them in the storage. For a new business request, the basic service first adapts the interface for analysis and authentication processing (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management), After encryption, it is completely and consistently transmitted to the shared ledger (network communication), and records are stored; the smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define contract logic through a programming language and publish to On the blockchain (contract registration), according to the logic of the contract terms, call the key or other events to trigger execution, complete the contract logic, and also provide the function of contract upgrade and cancellation; the operation monitoring module is mainly responsible for the deployment in the product release process , configuration modification, contract settings, cloud adaptation, and visual output of real-time status in product operation, such as: alarms, monitoring network conditions, monitoring node equipment health status, etc.
平台产品服务层提供典型应用的基本能力和实现框架,开发人员可以基于这些基本能力,叠加业务的特性,完成业务逻辑的区块链实现。应用服务层提供基于区块链方案的应用服务给业务参与方进行使用。The platform product service layer provides the basic capabilities and implementation framework of typical applications. Based on these basic capabilities, developers can superimpose business characteristics to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.
下面将结合图1b和图1c,为本申请实施例提供的具体实施场景进行说明。本发明实施例涉及的区块链网络可以是由客户端、多个节点(接入网络中的任意形式的计算设备,如服务器、用户终端)通过网络通信的形式连接形成的分布式系统。The specific implementation scenarios provided by the embodiments of the present application will be described below with reference to FIG. 1b and FIG. 1c. The blockchain network involved in the embodiments of the present invention may be a distributed system formed by connecting a client and multiple nodes (any form of computing device in the access network, such as a server and a user terminal) through network communication.
以分布式系统为区块链系统为例,参见图1b,图1b是本发明实施例提供的分布式系统100应用于区块链系统的一个可选的结构示意图,由多个节点(接入网络中的任意形式的计算设备,如服务器、用户终端)和客户端形成,节点之间形成组成的点对点(P2P,PeerTo Peer)网络,P2P协议是一个运行在传输控制协议(TCP,Transmission ControlProtocol)协议之上的应用层协议。在分布式系统中,任何机器如服务器、终端都可以加入而成为节点,节点包括硬件层、中间层、操作系统层和应用层。Taking the distributed system as the blockchain system as an example, refer to FIG. 1b. FIG. 1b is an optional schematic structural diagram of the distributed system 100 provided by the embodiment of the present invention applied to the blockchain system. Any form of computing equipment in the network, such as servers, user terminals) and clients are formed, and a peer-to-peer (P2P, PeerTo Peer) network is formed between nodes. The P2P protocol is a transmission control protocol (TCP, Transmission Control Protocol) Application layer protocol on top of the protocol. In a distributed system, any machine such as a server and a terminal can join to become a node, and a node includes a hardware layer, a middle layer, an operating system layer and an application layer.
参见图1b示出的区块链系统中各节点的功能,涉及的功能包括:Referring to the functions of each node in the blockchain system shown in Figure 1b, the involved functions include:
1)路由,节点具有的基本功能,用于支持节点之间的通信。1) Routing, a basic function that a node has to support communication between nodes.
节点除具有路由功能外,还可以具有以下功能:In addition to the routing function, a node can also have the following functions:
2)应用,用于部署在区块链中,根据实际业务需求而实现特定业务,记录实现功能相关的数据形成记录数据,在记录数据中携带数字签名以表示任务数据的来源,将记录数据发送到区块链系统中的其他节点,供其他节点在验证记录数据来源以及完整性成功时,将记录数据添加到临时区块中。2) Application, used to deploy in the blockchain, implement specific business according to actual business needs, record data related to the realization of functions to form record data, carry a digital signature in the record data to indicate the source of the task data, and send the record data To other nodes in the blockchain system, for other nodes to add the record data to the temporary block when verifying the source and integrity of the record data successfully.
例如,应用实现的业务包括:For example, the services implemented by the application include:
2.1)钱包,用于提供进行电子货币的交易的功能,包括发起交易(即,将当前交易的交易记录发送给区块链系统中的其他节点,其他节点验证成功后,作为承认交易有效的响应,将交易的记录数据存入区块链的临时区块中;当然,钱包还支持查询电子货币地址中剩余的电子货币;2.1) Wallet, which is used to provide the function of conducting electronic currency transactions, including initiating transactions (that is, sending the transaction record of the current transaction to other nodes in the blockchain system, and after the other nodes have successfully verified the transaction, it will be used as a response to acknowledge that the transaction is valid. , store the record data of the transaction in the temporary block of the blockchain; of course, the wallet also supports querying the remaining electronic currency in the electronic currency address;
2.2)共享账本,用于提供账目数据的存储、查询和修改等操作的功能,将对账目数据的操作的记录数据发送到区块链系统中的其他节点,其他节点验证有效后,作为承认账目数据有效的响应,将记录数据存入临时区块中,还可以向发起操作的节点发送确认。2.2) Shared ledger is used to provide functions such as storage, query and modification of account data, and the record data of operations on account data is sent to other nodes in the blockchain system. After the other nodes verify the validity, it will be used as an approved account. In response to valid data, the record data is stored in a temporary block, and an acknowledgment can also be sent to the node that initiated the operation.
2.3)智能合约,计算机化的协议,可以执行某个合约的条款,通过部署在共享账本上的用于在满足一定条件时而执行的代码实现,根据实际的业务需求代码用于完成自动化的交易,例如查询买家所购买商品的物流状态,在买家签收货物后将买家的电子货币转移到商户的地址;当然,智能合约不仅限于执行用于交易的合约,还可以执行对接收的信息进行处理的合约。2.3) Smart contracts, computerized agreements, which can execute the terms of a contract, are implemented through the code deployed on the shared ledger for execution when certain conditions are met, and the code is used to complete automated transactions according to actual business needs, For example, query the logistics status of the goods purchased by the buyer, and transfer the buyer's electronic currency to the merchant's address after the buyer signs for the goods; of course, the smart contract is not limited to the execution of the contract used for the transaction, but also the execution of the received information. deal with the contract.
3)区块链,包括一系列按照产生的先后时间顺序相互接续的区块,新区块一旦加入到区块链中就不会再被移除,区块中记录了区块链系统中节点提交的记录数据。3) Blockchain, including a series of blocks that are connected to each other in chronological order. Once a new block is added to the blockchain, it will not be removed. The block records the submission of nodes in the blockchain system. record data.
参见图1c,图1c是本发明实施例提供的区块结构(Block Structure)一个可选的示意图,每个区块中包括本区块存储交易记录的哈希值(本区块的哈希值)、以及前一区块的哈希值,各区块通过哈希值连接形成区块链。另外,区块中还可以包括有区块生成时的时间戳等信息。区块链本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了相关的信息,用于验证其信息的有效性(防伪)和生成下一个区块。Referring to FIG. 1c, FIG. 1c is an optional schematic diagram of a block structure (Block Structure) provided by an embodiment of the present invention, and each block includes the hash value of the transaction record stored in this block (the hash value of this block). ), and the hash value of the previous block, each block is connected by the hash value to form a blockchain. In addition, the block may also include information such as a timestamp when the block was generated. The blockchain is essentially a decentralized database, which is a series of data blocks associated with cryptographic methods. Each data block contains relevant information to verify the validity of its information (anti-counterfeiting) and Generate the next block.
请参见图2,为本申请实施例提供了一种数据处理方法的流程示意图。如图2所示,本申请实施例的所述方法可以包括以下步骤S101-步骤S103。Referring to FIG. 2 , a schematic flowchart of a data processing method is provided in an embodiment of the present application. As shown in FIG. 2 , the method in this embodiment of the present application may include the following steps S101 to S103.
S101,获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约;所述电子合约由所述智能合约进行维护;S101, obtaining a contract initiation request of an enterprise node, invoking a smart contract according to the contract initiation request, and generating an electronic contract for a user node and an enterprise node through the smart contract; the electronic contract is maintained by the smart contract;
具体的,数据处理设备获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约,可以理解的是,企业节点是企业在区块链上的对应的节点设备,用户节点是用户在区块链上对应的节点设备,区块链上可以包括多个用户节点和企业节点,合约发起请求是企业节点发送的与用户节点在区块链上签订电子合约的指令,电子合约是用户与企业签订的用于约束合约签订双方的条款,数据处理设备根据合约发起请求调用智能合约,通过智能合约为用户节点和企业节点生成电子合约,智能合约是运行区块链中各种指令的程序代码,具体的,可以从区块链网络上获取初始电子合约,初始电子合约中包括各种合约条款,可以包括对合约签署双方的要求,以及的合约的保密期限,违背合约后的违约金等等,根据合约签署双方的签名和初始电子合约,生成电子合约,并存储在区块链中,电子合约由智能合约进行维护,即上述电子合约中的执行条款通过智能合约来执行。Specifically, the data processing device obtains the contract initiation request of the enterprise node, invokes the smart contract according to the contract initiation request, and generates an electronic contract for the user node and the enterprise node through the smart contract. It can be understood that the enterprise node is the enterprise node in the district. The corresponding node device on the blockchain, the user node is the node device corresponding to the user on the blockchain, and the blockchain can include multiple user nodes and enterprise nodes. The contract initiation request is sent by the enterprise node and the user node is in the area. An instruction to sign an electronic contract on the blockchain. An electronic contract is a clause signed by the user and the enterprise to bind both parties to the contract. The data processing device initiates a request to call the smart contract according to the contract, and generates an electronic contract for the user node and the enterprise node through the smart contract. A smart contract is a program code that runs various instructions in the blockchain. Specifically, an initial electronic contract can be obtained from the blockchain network. The initial electronic contract includes various contract terms, which can include requirements for both parties to the contract, and The confidentiality period of the contract, the liquidated damages after breaching the contract, etc., according to the signatures of both parties and the initial electronic contract, the electronic contract is generated and stored in the blockchain, and the electronic contract is maintained by the smart contract, that is, the above-mentioned electronic contract The execution clauses in are executed through smart contracts.
S102,获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态;S102: Obtain a system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, detect state information of the electronic contract, where the state information includes locked state and activation state;
具体的,数据处理设备获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,可以理解的是,保密资产量的转移时间是电子合约中的合约条款,例如,企业和用户签订电子合约,如果用户遵守上述电子合约,则企业向用户支付一定的保密金额,保密金额可以通过多次分期的方式进行支付,保密资产量即为电子合约中的保密金额,保密金额的支付时间是电子合约中保密资产量的转移时间,当系统时间戳与电子合约中保密资产量的转移时间匹配时,检测电子合约的状态信息,例如,保密资产量的转移时间为每个月的第一天,当系统时间为当月的第一天时,检测电子合约的状态信息,电子合约的状态信息包括锁定状态和激活状态,电子合约处于锁定状态时,智能合约停止企业向用户的数字资产转移服务,即企业不再向用户支付保密金额,电子合约处于激活状态时,数字资产转移服务正常运行。Specifically, the data processing device obtains the system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, detects the status information of the electronic contract. It can be understood that, The transfer time of the amount of confidential assets is the contract terms in the electronic contract. For example, the enterprise and the user sign an electronic contract. If the user abides by the above electronic contract, the enterprise pays a certain confidential amount to the user, and the confidential amount can be carried out in multiple installments. Payment, the amount of confidential assets is the confidential amount in the electronic contract, and the payment time of the confidential amount is the transfer time of the confidential asset amount in the electronic contract. When the system timestamp matches the transfer time of the confidential asset amount in the electronic contract, the electronic contract is detected. For example, the transfer time of the confidential asset amount is the first day of each month, and when the system time is the first day of the current month, the state information of the electronic contract is detected. The state information of the electronic contract includes the locked state and the activated state. , when the electronic contract is locked, the smart contract stops the digital asset transfer service from the enterprise to the user, that is, the enterprise no longer pays the confidential amount to the user, and the digital asset transfer service operates normally when the electronic contract is activated.
S103,当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。S103, when the electronic contract is in an activated state, determine the amount of assets to be transferred according to the smart contract, and send the digital assets corresponding to the amount of transferred assets from the enterprise account of the enterprise node to the user account of the user node.
具体的,当所述电子合约处于激活状态时,数据处理设备根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户,可以理解的是,当所述电子合约处于激活状态时,企业节点向用户节点的数字资产转移服务正常运行,数字资产转移服务是企业和用户之间的支付服务,电子合约处于激活状态时,根据智能合约确定转移资产量,转移资产量可以通过电子合约中的保密期限和转移周期确定,然后将转移资产量对应的数字资产从企业节点的企业账户发送至用户节点的用户账户,企业账户是企业在区块链网络中的私人账户,用户账户是用户在区块链网络中的私人账户。Specifically, when the electronic contract is in an active state, the data processing device determines the amount of transferred assets according to the smart contract, and sends the digital assets corresponding to the amount of transferred assets from the enterprise account of the enterprise node to the user of the user node Account, it can be understood that when the electronic contract is in the active state, the digital asset transfer service from the enterprise node to the user node runs normally. The digital asset transfer service is a payment service between the enterprise and the user. When the electronic contract is in the active state , determine the amount of transferred assets according to the smart contract, the amount of transferred assets can be determined by the confidentiality period and transfer cycle in the electronic contract, and then send the digital assets corresponding to the transferred asset amount from the enterprise account of the enterprise node to the user account of the user node, and the enterprise account It is the private account of the enterprise in the blockchain network, and the user account is the private account of the user in the blockchain network.
在本申请实施例中,通过获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,再通过所述智能合约为用户节点和企业节点生成电子合约,电子合约由所述智能合约进行维护,获取区块链网络的系统时间戳,当时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态,当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。通过智能合约对电子合约电子进行维护,可以实时执行合约条款,避免了无法及时对合约进行检验,导致合约无法执行的问题,同时也提高了合约的数据准确性。In the embodiment of the present application, the request is initiated by obtaining the contract of the enterprise node, and the smart contract is invoked according to the contract initiation request, and then an electronic contract is generated for the user node and the enterprise node through the smart contract, and the electronic contract is executed by the smart contract. Maintain, obtain the system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, detect the state information of the electronic contract, the state information includes the locked state and the activated state, When the electronic contract is in an activated state, the amount of assets to be transferred is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are sent from the enterprise account of the enterprise node to the user account of the user node. The electronic maintenance of the electronic contract through the smart contract can implement the contract terms in real time, avoiding the problem of the inability to check the contract in time, resulting in the inability of the contract to be executed, and at the same time improving the data accuracy of the contract.
请参见图3,为本申请实施例提供了一种数据处理方法的流程示意图。如图3所示,本申请实施例的所述方法可以包括以下步骤S201-步骤S206。Referring to FIG. 3 , a schematic flowchart of a data processing method is provided in an embodiment of the present application. As shown in FIG. 3 , the method in this embodiment of the present application may include the following steps S201 to S206.
S201,获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约获取所述企业节点对应的初始电子合约;根据企业节点的企业签名、用户节点的用户签名和初始电子合约,生成电子合约;将所述电子合约进行加密,将加密后的电子合约同步至区块链网络。S201, obtaining a contract initiation request of an enterprise node, calling a smart contract according to the contract initiation request, and obtaining an initial electronic contract corresponding to the enterprise node through the smart contract; according to the enterprise signature of the enterprise node, the user signature of the user node and the initial An electronic contract is generated to generate an electronic contract; the electronic contract is encrypted, and the encrypted electronic contract is synchronized to the blockchain network.
具体的,合约发起请求是企业节点发送的与用户节点在区块链上签订电子合约的指令,根据合约发起请求调用智能合约,通过所述智能合约获取所述企业节点对应的初始电子合约,初始电子合约中包括各种合约条款,包括对合约签署双方的要求,以及的合约的保密期限,违背合约后的违约金等等,合约签署双方企业和用户分别对初始电子合约进行签名,根据合约签署双方的签名和初始电子合约,生成电子合约,并存储在区块链中,电子合约由智能合约进行维护,即上述电子合约中的执行条款通过智能合约来执行,包括按照合约约定期限向用户支付保密金额,在用户违反合约条款时设置合约的状态信息等等,将电子合约进行加密,将加密后的电子合约同步至区块链网络。Specifically, the contract initiation request is an instruction sent by the enterprise node to sign an electronic contract with the user node on the blockchain, and the smart contract is invoked according to the contract initiation request, and the initial electronic contract corresponding to the enterprise node is obtained through the smart contract. The electronic contract includes various contract terms, including the requirements for both parties to the contract, the confidentiality period of the contract, the penalty for breaching the contract, etc. The companies and users on both sides of the contract sign the initial electronic contract respectively, and sign according to the contract. The signatures of both parties and the initial electronic contract are generated and stored in the blockchain. The electronic contract is maintained by the smart contract, that is, the execution clauses in the above electronic contract are executed through the smart contract, including payment to the user according to the contract period. Keep the amount confidential, set the status information of the contract when the user violates the terms of the contract, etc., encrypt the electronic contract, and synchronize the encrypted electronic contract to the blockchain network.
S202,获取所述电子合约中的保密期限和转移周期,采用智能合约,确定所述电子合约中保密资产量的转移时间;获取区块链网络的系统时间戳,当所述时间戳与所述转移时间匹配时,检测所述电子合约的状态信息。S202: Obtain the confidentiality period and transfer period in the electronic contract, and use a smart contract to determine the transfer time of the confidential asset amount in the electronic contract; obtain the system timestamp of the blockchain network, when the timestamp matches the When the transfer time matches, the state information of the electronic contract is detected.
具体的,数据处理设备获取所述电子合约中的保密期限和转移周期,采用智能合约,确定所述电子合约中保密资产量的转移时间;获取区块链网络的系统时间戳,当所述时间戳与所述转移时间匹配时,检测所述电子合约的状态信息,可以理解的是,保密期限、转移周期和保密资产量的转移时间电子合约中的合约条款,例如,企业和用户签订电子合约,如果用户遵守上述电子合约,则企业向用户支付一定的保密金额,保密金额可以通过多次分期的方式进行支付,保密资产量即为电子合约中的保密金额,转移周期是保密金额的支付间隔时间,保密金额的支付时间是电子合约中保密资产量的转移时间,保密期限是电子合约约定的保密时间以及企业向用户支付保密金额的时间跨度,当系统时间戳与电子合约中保密资产量的转移时间匹配时,检测电子合约的状态信息,例如,保密资产量的转移时间为每个月的第一天,当系统时间为当月的第一天时,检测电子合约的状态信息,电子合约的状态信息包括锁定状态和激活状态,电子合约处于锁定状态时,智能合约停止企业向用户的数字资产转移服务,即企业不再向用户支付保密金额,电子合约处于激活状态时,数字资产转移服务正常运行。Specifically, the data processing device obtains the confidentiality period and transfer period in the electronic contract, and uses a smart contract to determine the transfer time of the confidential asset amount in the electronic contract; obtains the system timestamp of the blockchain network, when the time When the stamp matches the transfer time, the state information of the electronic contract is detected. It can be understood that the confidentiality period, the transfer period and the transfer time of the confidential asset amount are the contract terms in the electronic contract, for example, the enterprise and the user sign an electronic contract , if the user abides by the above electronic contract, the company will pay the user a certain confidential amount, which can be paid in multiple installments. The amount of confidential assets is the confidential amount in the electronic contract, and the transfer period is the payment interval of the confidential amount. Time, the payment time of the confidential amount is the transfer time of the amount of confidential assets in the electronic contract, and the confidentiality period is the confidential time agreed in the electronic contract and the time span for the company to pay the confidential amount to the user. When the transfer time matches, the status information of the electronic contract is detected. For example, the transfer time of the confidential asset amount is the first day of each month. When the system time is the first day of the current month, the status information of the electronic contract is detected. Status information includes locked state and activated state. When the electronic contract is in the locked state, the smart contract stops the digital asset transfer service from the enterprise to the user, that is, the enterprise no longer pays the user the confidential amount. When the electronic contract is in the activated state, the digital asset transfer service is normal. run.
S203,当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。S203, when the electronic contract is in an activated state, determine the amount of transferred assets according to the smart contract, and send the digital assets corresponding to the amount of transferred assets from the enterprise account of the enterprise node to the user account of the user node.
本申请实施例的所述步骤S203可以包括以下步骤S2031-步骤S2035。The step S203 in this embodiment of the present application may include the following steps S2031 to S2035.
S2031,当所述电子合约处于激活状态时,根据智能合约,从所述电子合约中获取用户的用户账户和企业的企业账户;S2031, when the electronic contract is in an activated state, obtain the user account of the user and the enterprise account of the enterprise from the electronic contract according to the smart contract;
S2032,根据电子合约中的保密期限和转移周期,确定所述电子合约的转移资产量;S2032, according to the confidentiality period and transfer cycle in the electronic contract, determine the amount of transferred assets of the electronic contract;
具体的,数据处理设备根据电子合约中的保密期限和转移周期,确定所述电子合约的转移资产量,可以理解的是,转移资产量是企业每次向用户支付的保密金额,转移量可以根据电子合约中的保密期限和转移周期获取,例如,保密周期为12个月,转移周期为1个月,即每个月进行一次资产转移,转移资产总量为120,则电子合约的转移资产量为120/12=10。Specifically, the data processing device determines the amount of transferred assets in the electronic contract according to the confidentiality period and transfer period in the electronic contract. It can be understood that the amount of transferred assets is the confidential amount paid by the enterprise to the user each time, and the transfer amount can be determined according to Obtain the confidentiality period and transfer period in the electronic contract. For example, if the confidentiality period is 12 months and the transfer period is 1 month, that is, asset transfer is performed once a month, and the total amount of transferred assets is 120, then the amount of transferred assets in the electronic contract is 120/12=10.
S2033,根据所述用户账户、所述企业账户、所述转移资产量和所述转移资产量的来源账户生成交易数据;S2033, generating transaction data according to the user account, the enterprise account, the amount of the transferred assets, and the source account of the amount of the transferred assets;
具体的,数据处理设备根据所述用户账户、所述企业账户、所述转移资产量和所述转移资产量的来源账户生成交易数据,可以理解的是,企业账户是企业在区块链网络中的私人账户,用户账户是用户在区块链网络中的私人账户,转移资产量的来源账户是企业账户中数字资产的来源对应的账户,可以作为数字资产的标签,数据处理设备将用户账户、企业账户、转移资产量和转移资产量的来源账户打包生成交易数据。Specifically, the data processing device generates transaction data according to the user account, the enterprise account, the transferred asset amount, and the source account of the transferred asset amount. The user account is the user's private account in the blockchain network, and the source account of the transferred assets is the account corresponding to the source of the digital assets in the enterprise account, which can be used as a label for digital assets. The enterprise account, the amount of transferred assets, and the source account of the amount of transferred assets are packaged to generate transaction data.
S2034,获取企业节点的企业私钥,采用所述企业私钥对所述交易数据进行签名,得到转移签名信息;S2034, obtain the enterprise private key of the enterprise node, and use the enterprise private key to sign the transaction data to obtain transfer signature information;
具体的,数据处理设备获取企业节点的企业私钥,采用所述企业私钥对所述交易数据进行签名,得到转移签名信息,可以理解的是,数据处理设备经过企业的授权,具有对企业私钥的使用权限,采用企业私钥对交易数据进行签名,得到转移签名信息。Specifically, the data processing device obtains the enterprise private key of the enterprise node, uses the enterprise private key to sign the transaction data, and obtains transfer signature information. Use the private key of the enterprise to sign the transaction data to obtain the transfer signature information.
S2035,对所述交易数据和所述转移签名信息进行共识处理;共识通过后,将所述交易数据和所述转移签名信息存储至区块链网络;用户节点具备对已存储至区块链网络中的所述交易数据的资产转移权限。S2035, perform consensus processing on the transaction data and the transfer signature information; after the consensus is passed, store the transaction data and the transfer signature information in the blockchain network; the user node has the ability to verify that the transaction data and the transfer signature information have been stored in the blockchain network. Asset transfer permissions for the transaction data in .
具体的,数据处理设备对所述交易数据和所述转移签名信息进行共识处理;共识通过后,将所述交易数据和所述转移签名信息存储至区块链网络,可以理解的是,共识处理是区块链网络对交易数据和转移签名信息进行验证,当共识通过后,用户节点具备对已存储至区块链网络中的交易数据的资产转移权限,即共识通过后,可以对交易数据中的数字资产进行转移。Specifically, the data processing device performs consensus processing on the transaction data and the transfer signature information; after the consensus is passed, the transaction data and the transfer signature information are stored in the blockchain network. It can be understood that the consensus processing It is the blockchain network that verifies the transaction data and transfer signature information. After the consensus is passed, the user node has the asset transfer authority to the transaction data that has been stored in the blockchain network. transfer of digital assets.
S204,检测所述用户节点所属的企业信息,当所属的企业信息属于所述电子合约中的参考企业时,根据智能合约,将所述电子合约中的违约资产量对应的数字资产从所述用户账号发送至企业账户;将所述电子合约的状态信息设置为锁定状态,当所述电子合约处于锁定状态时,停止所述企业节点向所述用户节点的数字资产转移服务。S204: Detect the enterprise information to which the user node belongs, and when the enterprise information belongs to the reference enterprise in the electronic contract, according to the smart contract, transfer the digital assets corresponding to the defaulted asset amount in the electronic contract from the user The account number is sent to the enterprise account; the state information of the electronic contract is set to a locked state, and when the electronic contract is in a locked state, the digital asset transfer service from the enterprise node to the user node is stopped.
具体的,检测所述用户节点所属的企业信息,即检测用户当前工作的企业,具体可以通过用户缴纳的社保信息进行查询,参考企业是电子合约中的约定的企业的集合,参考企业通常是与企业具有业务重合或者是具有竞争关系的企业,当所属的企业信息属于所述电子合约中的参考企业时,根据智能合约,将所述电子合约中的违约资产量对应的数字资产从所述用户账号发送至企业账户,违约资产量是电子合约中的条款,即用户违反电子合约中的条款时,需要支付的违约金,请参见图4a,为本申请实施例提供了一种资产转移的举例示意图。如图4a所示,检测用户当前工作的企业,当用户的企业信息属于电子合约中的参考企业时,用户违反电子合约中的条款,根据智能合约,将电子合约中的违约资产量对应的数字资产从用户账号发送至企业账户,当用户的企业信息不属于电子合约中的参考企业时,在转移时间,将转移资产量对应的数字资产从企业账号发送至用户账户。当用户违反合约条款时,将所述电子合约的状态信息设置为锁定状态,当所述电子合约处于锁定状态时,停止所述企业节点向所述用户节点的数字资产转移服务,即企业不再向用户支付保密金额。请参见图4b,为本申请实施例提供了一种合约状态的举例示意图。如图4b所示,电子合约在生成时处于激活状态,数字资产转移服务正常运行,即企业按照电子合约向用户支付保密金额,电子合约处于锁定状态时,智能合约停止企业向用户的数字资产转移服务,即企业不再向用户支付保密金额。Specifically, the company information to which the user node belongs is detected, that is, the company currently working for the user is detected. Specifically, it can be queried through the social security information paid by the user. The reference company is the set of companies agreed in the electronic contract. The reference company is usually related to The enterprise has overlapping business or is an enterprise with a competitive relationship. When the information of the enterprise belongs to the reference enterprise in the electronic contract, according to the smart contract, the digital assets corresponding to the amount of defaulted assets in the electronic contract are transferred from the user. The account number is sent to the enterprise account, and the amount of defaulted assets is the terms in the electronic contract, that is, the liquidated damages that need to be paid when the user violates the terms in the electronic contract. Please refer to FIG. 4a, which provides an example of asset transfer in the embodiment of this application. Schematic. As shown in Figure 4a, the company that the user currently works for is detected. When the user's company information belongs to the reference company in the electronic contract, the user violates the terms of the electronic contract. According to the smart contract, the number corresponding to the amount of defaulted assets in the electronic contract is calculated. The assets are sent from the user account to the enterprise account. When the user's enterprise information does not belong to the reference enterprise in the electronic contract, at the transfer time, the digital assets corresponding to the amount of transferred assets are sent from the enterprise account to the user account. When the user violates the terms of the contract, the state information of the electronic contract is set to a locked state, and when the electronic contract is in a locked state, the digital asset transfer service from the enterprise node to the user node is stopped, that is, the enterprise no longer Pay the user a confidential amount. Referring to FIG. 4b, an exemplary schematic diagram of a contract state is provided in this embodiment of the present application. As shown in Figure 4b, the electronic contract is activated when it is generated, and the digital asset transfer service operates normally, that is, the enterprise pays the user a confidential amount according to the electronic contract. When the electronic contract is locked, the smart contract stops the digital asset transfer from the enterprise to the user. service, i.e. businesses no longer pay users confidential amounts.
S205,根据智能合约,当检测到所述电子合约到达所述保密期限,检测所述电子合约的保密资产量的转移状态;若所述企业账户向所述用户账户转移的数字资产等于所述保密资产量对应的数字资产,或者所述电子合约处于锁定状态,则根据智能合约将所述电子合约从所述区块链中销毁。S205, according to the smart contract, when it is detected that the electronic contract has reached the confidentiality period, the transfer state of the confidential asset amount of the electronic contract is detected; if the digital assets transferred from the enterprise account to the user account are equal to the confidentiality If the digital asset corresponding to the asset amount, or the electronic contract is in a locked state, the electronic contract will be destroyed from the blockchain according to the smart contract.
具体的,根据智能合约,当检测到所述电子合约到达所述保密期限,检测所述电子合约的保密资产量的转移状态,保密资产量的转移状态是检测企业账户向用户账户转移的数字资产是否等于所述保密资产量对应的数字资产,具体的,在合约期间,统计企业账户向用户账户转移的数字资产之和,若转移的数字资产之和等于保密资产量对应的数字资产,则证明电子合约执行完成,则根据智能合约将电子合约从区块链中销毁,或者电子合约处于锁定状态,则可以确定是由用户违反了电子合约的约定,同样根据智能合约将电子合约从区块链中销毁。Specifically, according to the smart contract, when it is detected that the electronic contract has reached the confidentiality period, the transfer status of the confidential asset amount of the electronic contract is detected, and the transfer status of the confidential asset amount is to detect the digital assets transferred from the enterprise account to the user account. Whether it is equal to the digital assets corresponding to the amount of confidential assets. Specifically, during the contract period, the sum of the digital assets transferred from the enterprise account to the user account is counted. If the sum of the transferred digital assets is equal to the digital assets corresponding to the amount of confidential assets, it is proved After the execution of the electronic contract is completed, the electronic contract is destroyed from the blockchain according to the smart contract, or the electronic contract is locked, it can be determined that the user violated the agreement of the electronic contract, and the electronic contract is also deleted from the blockchain according to the smart contract. destroyed in.
S206,获取企业节点的查询指令,根据所述查询指令和所述查询指令携带的查询信息对所述电子合约进行检测;当检测到与所述查询信息满足相关性阈值的信息时,根据智能合约,获取所述电子合约中的违约资产量;将所述违约资产量对应的数字资产从所述用户账户发送至所述企业账户。S206: Obtain the query instruction of the enterprise node, and detect the electronic contract according to the query instruction and the query information carried by the query instruction; when detecting information satisfying the correlation threshold with the query information, according to the smart contract , obtain the amount of defaulted assets in the electronic contract; and send the digital assets corresponding to the amount of defaulted assets from the user account to the enterprise account.
具体的,获取企业节点的查询指令,根据所述查询指令和所述查询指令携带的查询信息对所述电子合约进行检测,具体的,可以对查询信息进行全网查询,并将查询结果与查询信息进行匹配,计算信息的相关度,当查询结果与查询信息满足相关性阈值时,可以确定用户针对上述查询信息未执行电子合约中的条款,根据智能合约,获取所述电子合约中的违约资产量,将所述违约资产量对应的数字资产从所述用户账户发送至所述企业账户。Specifically, the query instruction of the enterprise node is obtained, and the electronic contract is detected according to the query instruction and the query information carried by the query instruction. The information is matched, and the correlation of the information is calculated. When the query result and the query information meet the correlation threshold, it can be determined that the user has not executed the terms in the electronic contract for the above query information, and the default asset in the electronic contract is obtained according to the smart contract. amount, and the digital assets corresponding to the amount of defaulted assets are sent from the user account to the enterprise account.
在本申请实施例中,通过获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,再通过所述智能合约为用户节点和企业节点生成电子合约,电子合约由所述智能合约进行维护,获取区块链网络的系统时间戳,当时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态,当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。通过智能合约对电子合约电子进行维护,可以实时执行合约条款,避免了无法及时对合约进行检验,导致合约无法执行的问题,同时也提高了合约的数据准确性。In the embodiment of the present application, the request is initiated by obtaining the contract of the enterprise node, and the smart contract is invoked according to the contract initiation request, and then an electronic contract is generated for the user node and the enterprise node through the smart contract, and the electronic contract is executed by the smart contract. Maintain, obtain the system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, detect the state information of the electronic contract, the state information includes the locked state and the activated state, When the electronic contract is in an activated state, the amount of assets to be transferred is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are sent from the enterprise account of the enterprise node to the user account of the user node. The electronic maintenance of the electronic contract through the smart contract can implement the contract terms in real time, avoiding the problem of the inability to check the contract in time, resulting in the inability of the contract to be executed, and at the same time improving the data accuracy of the contract.
请参见图5,为本申请实施例提供了一种数据处理设备的结构示意图。所述数据处理设备可以是运行于计算机设备中的一个计算机程序(包括程序代码),例如该数据处理设备为一个应用软件;该设备可以用于执行本申请实施例提供的方法中的相应步骤。如图5所示,本申请实施例的所述数据处理设备1可以包括:电子合约生成单元11、合约状态检测单元12、资产转移单元13。Referring to FIG. 5 , a schematic structural diagram of a data processing device is provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running in a computer device, for example, the data processing device is an application software; the device may be used to execute corresponding steps in the methods provided in the embodiments of the present application. As shown in FIG. 5 , the data processing device 1 in the embodiment of the present application may include: an electronic contract generation unit 11 , a contract
电子合约生成单元11,用于获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约为用户节点和企业节点生成电子合约;所述电子合约由所述智能合约进行维护;The electronic contract generation unit 11 is used to obtain the contract initiation request of the enterprise node, invoke the smart contract according to the contract initiation request, and generate electronic contracts for the user node and the enterprise node through the smart contract; the electronic contract is generated by the smart contract carry out maintenance;
合约状态检测单元12,用于获取区块链网络的系统时间戳,当所述时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态;The contract
资产转移单元13,用于当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。The
如图5所示,本申请实施例的所述数据处理设备1可以包括:合约状态设置单元14。As shown in FIG. 5 , the data processing device 1 in this embodiment of the present application may include: a contract
合约状态设置单元14,用于检测所述用户节点所属的企业信息,当所属的企业信息属于所述电子合约中的参考企业时,根据智能合约,将所述电子合约中的违约资产量对应的数字资产从所述用户账号发送至企业账户;The contract
将所述电子合约的状态信息设置为锁定状态,当所述电子合约处于锁定状态时,停止所述企业节点向所述用户节点的数字资产转移服务。The state information of the electronic contract is set to a locked state, and when the electronic contract is in a locked state, the digital asset transfer service from the enterprise node to the user node is stopped.
所述电子合约生成单元11具体用于:The electronic contract generating unit 11 is specifically used for:
获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,通过所述智能合约获取所述企业节点对应的初始电子合约;Obtain the contract initiation request of the enterprise node, invoke the smart contract according to the contract initiation request, and obtain the initial electronic contract corresponding to the enterprise node through the smart contract;
根据企业节点的企业签名、用户节点的用户签名和初始电子合约,生成电子合约;Generate an electronic contract according to the enterprise signature of the enterprise node, the user signature of the user node and the initial electronic contract;
将所述电子合约进行加密,将加密后的电子合约同步至区块链网络。The electronic contract is encrypted, and the encrypted electronic contract is synchronized to the blockchain network.
所述合约状态检测单元12具体用于:The contract
获取所述电子合约中的保密期限和转移周期,采用智能合约,确定所述电子合约中保密资产量的转移时间;Obtain the confidentiality period and transfer period in the electronic contract, and use a smart contract to determine the transfer time of the confidential asset amount in the electronic contract;
获取区块链网络的系统时间戳,当所述时间戳与所述转移时间匹配时,检测所述电子合约的状态信息。Obtain the system timestamp of the blockchain network, and detect the state information of the electronic contract when the timestamp matches the transfer time.
所述资产转移单元13具体用于:The
当所述电子合约处于激活状态时,根据智能合约,从所述电子合约中获取用户的用户账户和企业的企业账户;When the electronic contract is in an activated state, obtain the user account of the user and the enterprise account of the enterprise from the electronic contract according to the smart contract;
根据电子合约中的保密期限和转移周期,确定所述电子合约的转移资产量;According to the confidentiality period and transfer cycle in the electronic contract, determine the amount of transferred assets in the electronic contract;
根据所述用户账户、所述企业账户、所述转移资产量和所述转移资产量的来源账户生成交易数据;generating transaction data according to the user account, the enterprise account, the amount of transferred assets, and the source account of the amount of transferred assets;
获取企业节点的企业私钥,采用所述企业私钥对所述交易数据进行签名,得到转移签名信息;Obtain the enterprise private key of the enterprise node, and use the enterprise private key to sign the transaction data to obtain transfer signature information;
对所述交易数据和所述转移签名信息进行共识处理;Perform consensus processing on the transaction data and the transfer signature information;
共识通过后,将所述交易数据和所述转移签名信息存储至区块链网络;用户节点具备对已存储至区块链网络中的所述交易数据的资产转移权限。After the consensus is passed, the transaction data and the transfer signature information are stored in the blockchain network; the user node has the asset transfer authority to the transaction data stored in the blockchain network.
如图5所示,本申请实施例的所述数据处理设备1可以包括:电子合约销毁单元15。As shown in FIG. 5 , the data processing device 1 in this embodiment of the present application may include: an electronic
电子合约销毁单元15,用于根据智能合约,当检测到所述电子合约到达所述保密期限,检测所述电子合约的保密资产量的转移状态;The electronic
若所述企业账户向所述用户账户转移的数字资产等于所述保密资产量对应的数字资产,或者所述电子合约处于锁定状态,则根据智能合约将所述电子合约从所述区块链中销毁。If the digital asset transferred from the enterprise account to the user account is equal to the digital asset corresponding to the confidential asset amount, or the electronic contract is in a locked state, the electronic contract will be removed from the blockchain according to the smart contract. destroy.
如图5所示,本申请实施例的所述数据处理设备1可以包括:查询单元16。As shown in FIG. 5 , the data processing device 1 in this embodiment of the present application may include: a
查询单元16,用于获取企业节点的查询指令,根据所述查询指令和所述查询指令携带的查询信息对所述电子合约进行检测;The
当检测到与所述查询信息满足相关性阈值的信息时,根据智能合约,获取所述电子合约中的违约资产量;When detecting the information satisfying the correlation threshold with the query information, obtain the default asset amount in the electronic contract according to the smart contract;
将所述违约资产量对应的数字资产从所述用户账户发送至所述企业账户。Sending the digital assets corresponding to the amount of defaulted assets from the user account to the enterprise account.
在本申请实施例中,通过获取企业节点的合约发起请求,根据所述合约发起请求调用智能合约,再通过所述智能合约为用户节点和企业节点生成电子合约,电子合约由所述智能合约进行维护,获取区块链网络的系统时间戳,当时间戳与所述电子合约中保密资产量的转移时间匹配时,检测所述电子合约的状态信息,所述状态信息包括锁定状态和激活状态,当所述电子合约处于激活状态时,根据智能合约确定转移资产量,将所述转移资产量对应的数字资产从所述企业节点的企业账户发送至所述用户节点的用户账户。通过智能合约对电子合约电子进行维护,可以实时执行合约条款,避免了无法及时对合约进行检验,导致合约无法执行的问题,同时也提高了合约的数据准确性。In the embodiment of the present application, the request is initiated by obtaining the contract of the enterprise node, and the smart contract is invoked according to the contract initiation request, and then an electronic contract is generated for the user node and the enterprise node through the smart contract, and the electronic contract is executed by the smart contract. Maintain, obtain the system time stamp of the blockchain network, and when the time stamp matches the transfer time of the confidential asset amount in the electronic contract, detect the state information of the electronic contract, the state information includes the locked state and the activated state, When the electronic contract is in an activated state, the amount of assets to be transferred is determined according to the smart contract, and the digital assets corresponding to the amount of transferred assets are sent from the enterprise account of the enterprise node to the user account of the user node. The electronic maintenance of the electronic contract through the smart contract can implement the contract terms in real time, avoiding the problem of the inability to check the contract in time, resulting in the inability of the contract to be executed, and at the same time improving the data accuracy of the contract.
请参见图6,为本申请实施例提供了一种计算机设备的结构示意图。如图6所示,所述计算机设备1000可以包括:至少一个处理器1001,例如CPU,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。其中,用户接口1003可以包括显示屏(Display),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1005可选的还可以是至少一个位于远离前述处理器1001的存储装置。如图6所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及数据处理应用程序。Referring to FIG. 6 , a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in FIG. 6 , the
在图6所示的计算机设备1000中,网络接口1004可提供网络通讯功能,用户接口1003主要用于为用户提供输入的接口;而处理器1001可以用于调用存储器1005中存储的数据处理应用程序,以实现上述图2-图4b任一个所对应实施例中对所述数据处理方法的描述,在此不再赘述。In the
应当理解,本申请实施例中所描述的计算机设备1000可执行前文图2-图4b任一个所对应实施例中对所述数据处理方法的描述,也可执行前文图5所对应实施例中对所述数据处理设备的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。It should be understood that the
此外,这里需要指出的是:本申请实施例还提供了一种计算机可读存储介质,且所述计算机可读存储介质中存储有前文提及的数据处理设备所执行的计算机程序,且所述计算机程序包括程序指令,当所述处理器执行所述程序指令时,能够执行前文图2-图4b任一个所对应实施例中对所述数据处理方法的描述,因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的计算机可读存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。作为示例,程序指令可被部署为在一个计算设备上执行,或者在位于一个地点的多个计算设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算设备上执行,分布在多个地点且通过通信网络互连的多个计算设备可以组成区块链系统。In addition, it should be pointed out here that an embodiment of the present application further provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the aforementioned data processing device, and the The computer program includes program instructions, and when the processor executes the program instructions, it can execute the description of the data processing method in the embodiment corresponding to any one of FIG. 2-FIG. 4b, and therefore, will not be repeated here . In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments involved in the present application, please refer to the description of the method embodiments of the present application. By way of example, program instructions may be deployed to execute on one computing device, or on multiple computing devices located at one site, or alternatively, on multiple computing devices distributed across multiple sites and interconnected by a communications network Implemented, multiple computing devices distributed in multiple locations and interconnected by a communication network can form a blockchain system.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。The above disclosures are only the preferred embodiments of the present application, and of course, the scope of the rights of the present application cannot be limited by this. Therefore, equivalent changes made according to the claims of the present application are still within the scope of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010076865.1A CN111274597B (en) | 2020-01-23 | 2020-01-23 | A data processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010076865.1A CN111274597B (en) | 2020-01-23 | 2020-01-23 | A data processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111274597A true CN111274597A (en) | 2020-06-12 |
| CN111274597B CN111274597B (en) | 2023-08-22 |
Family
ID=71001939
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010076865.1A Active CN111274597B (en) | 2020-01-23 | 2020-01-23 | A data processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111274597B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112613877A (en) * | 2020-12-17 | 2021-04-06 | 腾讯科技(深圳)有限公司 | Intelligent contract triggering method and device applied to block chain network and related equipment |
| CN115689292A (en) * | 2022-11-11 | 2023-02-03 | 中国工商银行股份有限公司 | Resource data processing method and device, computer equipment and storage medium |
| US11711220B1 (en) * | 2019-11-08 | 2023-07-25 | Alicorn Systems, Inc. | System and methods for computation, storage, and consensus in distributed systems |
| CN116757684A (en) * | 2023-05-11 | 2023-09-15 | 北京中科江南信息技术股份有限公司 | Digital RMB payment method and device based on intelligent contract |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170155515A1 (en) * | 2015-11-26 | 2017-06-01 | International Business Machines Corporation | System, method, and computer program product for privacy-preserving transaction validation mechanisms for smart contracts that are included in a ledger |
| CN109242667A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | Assets management method and device, computer equipment and readable storage medium storing program for executing |
| CN109472611A (en) * | 2018-11-22 | 2019-03-15 | 北京八分量信息科技有限公司 | A kind of staple commodities method of commerce and device |
| CN110348882A (en) * | 2019-06-19 | 2019-10-18 | 阿里巴巴集团控股有限公司 | Integration method, system, device and equipment based on intelligent contract |
| CN110443625A (en) * | 2019-08-12 | 2019-11-12 | 苏州通泰易迅网络科技有限公司 | A kind of construction method, system and the device of flow business cross polymerization platform |
| CN110503547A (en) * | 2019-08-28 | 2019-11-26 | 上海天地汇供应链科技有限公司 | Loan administration method and system, financial institution's node based on block chain |
| CN110597916A (en) * | 2019-09-21 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and terminal |
-
2020
- 2020-01-23 CN CN202010076865.1A patent/CN111274597B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170155515A1 (en) * | 2015-11-26 | 2017-06-01 | International Business Machines Corporation | System, method, and computer program product for privacy-preserving transaction validation mechanisms for smart contracts that are included in a ledger |
| CN109242667A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | Assets management method and device, computer equipment and readable storage medium storing program for executing |
| CN109472611A (en) * | 2018-11-22 | 2019-03-15 | 北京八分量信息科技有限公司 | A kind of staple commodities method of commerce and device |
| CN110348882A (en) * | 2019-06-19 | 2019-10-18 | 阿里巴巴集团控股有限公司 | Integration method, system, device and equipment based on intelligent contract |
| CN110443625A (en) * | 2019-08-12 | 2019-11-12 | 苏州通泰易迅网络科技有限公司 | A kind of construction method, system and the device of flow business cross polymerization platform |
| CN110503547A (en) * | 2019-08-28 | 2019-11-26 | 上海天地汇供应链科技有限公司 | Loan administration method and system, financial institution's node based on block chain |
| CN110597916A (en) * | 2019-09-21 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and terminal |
Non-Patent Citations (3)
| Title |
|---|
| CHAO LI 等: "Decentralized Privacy-Preserving Timed Execution in Blockchain-Based Smart Contract Platforms", 《2018 IEEE 25TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING (HIPC)》, pages 265 - 274 * |
| 李丽琼: "探讨区块链技术冲击信用证商业银行的应对与管理", 《中国优秀硕士学位论文全文数据库 经济与管理科学》, no. 4, pages 159 - 390 * |
| 段明证: ""基于区块链技术的电子证据应用", no. 279, pages 118 - 120 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11711220B1 (en) * | 2019-11-08 | 2023-07-25 | Alicorn Systems, Inc. | System and methods for computation, storage, and consensus in distributed systems |
| CN112613877A (en) * | 2020-12-17 | 2021-04-06 | 腾讯科技(深圳)有限公司 | Intelligent contract triggering method and device applied to block chain network and related equipment |
| CN115689292A (en) * | 2022-11-11 | 2023-02-03 | 中国工商银行股份有限公司 | Resource data processing method and device, computer equipment and storage medium |
| CN116757684A (en) * | 2023-05-11 | 2023-09-15 | 北京中科江南信息技术股份有限公司 | Digital RMB payment method and device based on intelligent contract |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111274597B (en) | 2023-08-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU2020414467B2 (en) | Partially-ordered blockchain | |
| KR102569409B1 (en) | Systems and methods for virtual distributed ledger networks | |
| AU2021210206B2 (en) | Index structure for blockchain ledger | |
| CN111445333A (en) | Block generation method, device, computer equipment and storage medium | |
| CN110620810A (en) | Non-linked ownership of continuous asset transfer over blockchain | |
| WO2020103566A1 (en) | Blockchain certificate storage method and apparatus, and computer device | |
| CN110782252A (en) | A blockchain-based monitoring video data transaction method and system | |
| EP3841550B1 (en) | Storage management based on message feedback | |
| CN111414434B (en) | Block chain-based data transaction management network, transaction device and storage medium | |
| EP3844942B1 (en) | Blockchain-based message services for time-sensitive events | |
| CN111488372A (en) | Data processing method, device and storage medium | |
| CN111127021B (en) | Service request method and device based on block chain | |
| CN113869901B (en) | Key generation method, apparatus, computer-readable storage medium, and computer device | |
| CN111769956B (en) | Service processing method, device, equipment and medium | |
| EP3948594B1 (en) | Blockchain identities | |
| CN109951490A (en) | Webpage integrity assurance, system and electronic equipment based on block chain | |
| CN114331437A (en) | Block chain-based digital seal using method and device | |
| CN111274597B (en) | A data processing method and device | |
| WO2024007860A1 (en) | Block chain-based data detection method, apparatus, device, storage medium, and program product | |
| CN110347750B (en) | Blockchain-based data processing method and device | |
| CN112231755A (en) | A method, device and system for data authorization based on blockchain | |
| US11887146B2 (en) | Product exploration-based promotion | |
| Lin et al. | Runtime hook on blockchain and smart contract systems | |
| HK40042314A (en) | Storage management based on message feedback | |
| HK40042313A (en) | Blockchain-based message services for time-sensitive events |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
