CN110598479B - A data processing method, device and computer readable storage medium - Google Patents
A data processing method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN110598479B CN110598479B CN201910893166.3A CN201910893166A CN110598479B CN 110598479 B CN110598479 B CN 110598479B CN 201910893166 A CN201910893166 A CN 201910893166A CN 110598479 B CN110598479 B CN 110598479B
- Authority
- CN
- China
- Prior art keywords
- production
- operation data
- user
- summary information
- business approval
- 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.)
- Active
Links
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/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/103—Workflow collaboration or project management
-
- 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)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明实施例提供了一种数据处理方法、装置以及计算机可读存储介质,其中方法包括:获取用户通过用户终端提交的业务审批请求,所述业务审批请求携带有用户的链上地址,根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息,接收电子发票服务商在接收到所述用户终端的的通知时发送的与所述用户相关的第二生产经营数据,在利用所述第一生产经营数据的摘要信息对所述第二生产经营数据校验通过后,根据所述第二生产经营数据确定对所述业务审批请求的审批结果,可以快速对企业提供的生产经营数据进行验证,防止用户篡改生产经营数据,从而保证用户提供数据的真实性和合法性,降低业务审批时的风险。
An embodiment of the present invention provides a data processing method, device and computer-readable storage medium, wherein the method includes: obtaining a business approval request submitted by a user through a user terminal, the business approval request carries the user's on-chain address, obtaining summary information of first production and operation data related to the user from a first node of a blockchain network according to the user's on-chain address, receiving second production and operation data related to the user sent by an electronic invoice service provider when receiving a notification from the user terminal, after verifying the second production and operation data using the summary information of the first production and operation data, determining the approval result of the business approval request according to the second production and operation data, so as to quickly verify the production and operation data provided by the enterprise and prevent the user from tampering with the production and operation data, thereby ensuring the authenticity and legality of the data provided by the user and reducing the risk during business approval.
Description
技术领域Technical Field
本发明涉及计算机技术领域,尤其涉及一种数据处理方法、装置以及计算机可读存储介质。The present invention relates to the field of computer technology, and in particular to a data processing method, device and computer-readable storage medium.
背景技术Background technique
目前针对小微企业授信,国内的金融机构征信方式比较单一,基本靠企业自身提供的资料和银行流水进行征信。在这种方式下,供应商容易伪造销售记录,制造虚假流水,同时以发票作为金融额度的经济方式,假发票也成为了不良企业伪造征信的工具,无法保证征信所用的数据的真实性和合法性。At present, domestic financial institutions have a relatively simple credit investigation method for small and micro enterprises, which basically relies on the information provided by the enterprises themselves and bank statements. In this way, suppliers can easily forge sales records and create false bank statements. At the same time, invoices are used as an economic method for financial quotas. Fake invoices have also become a tool for bad companies to forge credit investigations, and the authenticity and legitimacy of the data used for credit investigations cannot be guaranteed.
发明内容Summary of the invention
本发明实施例提供了一种数据处理方法、装置以及计算机可读存储介质,可以快速对企业提供的生产经营数据进行验证,防止用户篡改生产经营数据,从而保证用户提供数据的真实性和合法性,降低业务审批时的风险。The embodiments of the present invention provide a data processing method, device and computer-readable storage medium, which can quickly verify the production and operation data provided by the enterprise, prevent users from tampering with the production and operation data, thereby ensuring the authenticity and legality of the data provided by the user and reducing the risk during business approval.
本发明实施例第一方面提供了一种数据处理方法,应用于业务审批平台,包括:A first aspect of an embodiment of the present invention provides a data processing method, which is applied to a business approval platform, including:
获取用户通过用户终端提交的业务审批请求,所述业务审批请求携带有所述用户的链上地址;Obtaining a service approval request submitted by a user through a user terminal, wherein the service approval request carries the on-chain address of the user;
根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息;Obtain summary information of first production and operation data related to the user from a first node of the blockchain network according to the on-chain address of the user;
接收电子发票服务商在接收到所述用户终端的的通知时发送的与所述用户相关的第二生产经营数据;Receiving second production and operation data related to the user sent by the electronic invoice service provider when receiving a notification from the user terminal;
在利用所述第一生产经营数据的摘要信息对所述第二生产经营数据校验通过后,根据所述第二生产经营数据确定对所述业务审批请求的审批结果。After the second production and operation data is verified by using the summary information of the first production and operation data, the approval result of the business approval request is determined according to the second production and operation data.
本发明实施例第二方面提供了一种数据处理方法,应用于区块链网络,所述区块链网络包括多个节点,包括:A second aspect of an embodiment of the present invention provides a data processing method, which is applied to a blockchain network, wherein the blockchain network includes multiple nodes, including:
接收业务审批平台发送的数据获取请求,所述数据获取请求携带有用户的链上地址;Receive a data acquisition request sent by the business approval platform, where the data acquisition request carries the user's on-chain address;
根据所述用户的链上地址从区块链上查询与所述用户相关的第一生产经营数据的摘要信息;Query summary information of first production and operation data related to the user from the blockchain according to the on-chain address of the user;
向所述业务审批平台发送所述第一生产经营数据的摘要信息,以使得所述业务审批平台利用所述第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据所述第二生产经营数据确定对所述用户提交的业务审批请求的审批结果。The summary information of the first production and operation data is sent to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, determines the approval result of the business approval request submitted by the user according to the second production and operation data.
本发明实施例第三方面提供了一种数据处理装置,应用于业务审批平台,包括:A third aspect of an embodiment of the present invention provides a data processing device, which is applied to a business approval platform, including:
获取单元,用于获取用户通过用户终端提交的业务审批请求,所述业务审批请求携带有所述用户的链上地址;An acquisition unit, configured to acquire a service approval request submitted by a user through a user terminal, wherein the service approval request carries an on-chain address of the user;
所述获取单元,还用于根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息;The acquisition unit is further used to acquire summary information of first production and operation data related to the user from a first node of the blockchain network according to the on-chain address of the user;
接收单元,用于接收电子发票服务商在接收到所述用户终端的的通知时发送的与所述用户相关的第二生产经营数据;A receiving unit, configured to receive second production and operation data related to the user sent by the electronic invoice service provider when receiving a notification from the user terminal;
确定单元,用于在利用所述第一生产经营数据的摘要信息对所述第二生产经营数据校验通过后,根据所述第二生产经营数据确定对所述业务审批请求的审批结果。A determination unit is used to determine the approval result of the business approval request according to the second production and operation data after the second production and operation data is verified by using the summary information of the first production and operation data.
本发明实施例第四方面提供了一种数据处理装置,应用于区块链网络,所述区块链网络包括多个节点,包括:A fourth aspect of an embodiment of the present invention provides a data processing device, which is applied to a blockchain network, wherein the blockchain network includes multiple nodes, including:
接收单元,用于接收业务审批平台发送的数据获取请求,所述数据获取请求携带有用户的链上地址;A receiving unit, used to receive a data acquisition request sent by the business approval platform, wherein the data acquisition request carries the user's on-chain address;
查询单元,用于根据所述用户的链上地址从区块链上查询与所述用户相关的第一生产经营数据的摘要信息;A query unit, configured to query summary information of first production and operation data related to the user from the blockchain according to the on-chain address of the user;
发送单元,用于向所述业务审批平台发送所述第一生产经营数据的摘要信息,以使得所述业务审批平台利用所述第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据所述第二生产经营数据确定对所述用户提交的业务审批请求的审批结果。A sending unit is used to send summary information of the first production and operation data to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, determines the approval result of the business approval request submitted by the user according to the second production and operation data.
本发明实施例第五方面提供了一种服务器,包括:处理器和存储器,所述处理器用于执行上述第一方面所述的数据处理方法。A fifth aspect of an embodiment of the present invention provides a server, including: a processor and a memory, wherein the processor is used to execute the data processing method described in the first aspect.
本发明实施例第六方面提供了一种节点设备,包括:处理器和存储器,所述处理器用于执行上述第二方面所述的数据处理方法。A sixth aspect of an embodiment of the present invention provides a node device, including: a processor and a memory, wherein the processor is used to execute the data processing method described in the second aspect above.
本发明实施例第七方面提供了一种计算机存储介质,该计算机存储介质中存储有程序指令,该程序指令被执行时,用于实现上述第一方面或第二方面所述的数据处理方法。A seventh aspect of an embodiment of the present invention provides a computer storage medium, in which program instructions are stored. When the program instructions are executed, they are used to implement the data processing method described in the first aspect or the second aspect above.
在本发明实施例中,业务审批平台获取用户通过用户终端提交的业务审批请求,该业务审批请求携带有用户的链上地址,并根据该用户的链上地址从区块链网络的第一节点处获取与该用户相关的第一生产经营数据的摘要信息,并且接收电子发票服务商在接收到用户终端的的通知时发送的与该用户相关的第二生产经营数据,在利用该第一生产经营数据的摘要信息对该第二生产经营数据校验通过后,根据该第二生产经营数据确定对该业务审批请求的审批结果。可以快速对企业提供的生产经营数据进行验证,防止用户篡改生产经营数据,从而保证用户提供数据的真实性和合法性。In an embodiment of the present invention, the business approval platform obtains a business approval request submitted by a user through a user terminal, the business approval request carries the user's on-chain address, and obtains summary information of the first production and operation data related to the user from the first node of the blockchain network according to the user's on-chain address, and receives the second production and operation data related to the user sent by the electronic invoice service provider when receiving the notification from the user terminal, and after verifying the second production and operation data using the summary information of the first production and operation data, determines the approval result of the business approval request according to the second production and operation data. The production and operation data provided by the enterprise can be quickly verified to prevent users from tampering with the production and operation data, thereby ensuring the authenticity and legality of the data provided by the user.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1a是本发明实施例提供的一种业务审批系统的架构示意图;FIG. 1a is a schematic diagram of the architecture of a business approval system provided by an embodiment of the present invention;
图1b是本发明实施例提供的一种区块链的结构示意图;FIG1b is a schematic diagram of the structure of a blockchain provided by an embodiment of the present invention;
图1c是本发明实施例提供的一种产生新区块的过程示意图;FIG1c is a schematic diagram of a process of generating a new block provided by an embodiment of the present invention;
图2是本发明实施例提供的一种数据处理方法的示意图;FIG2 is a schematic diagram of a data processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种数据处理方法的示意图;FIG3 is a schematic diagram of another data processing method provided by an embodiment of the present invention;
图4是本发明实施例提供的一种数据处理装置的结构示意图;FIG4 is a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种数据处理装置的结构示意图;5 is a schematic diagram of the structure of another data processing device provided by an embodiment of the present invention;
图6是本发明实施例提供的一种服务器的结构示意图;6 is a schematic diagram of the structure of a server provided by an embodiment of the present invention;
图7是本发明实施例提供的一种节点设备的结构示意图。FIG. 7 is a schematic diagram of the structure of a node device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
针对目前企业制造假流水,伪造销售记录,并利用假发票造成不良征信,无法保证征信所用的数据的真实性和合法性等问题,本发明实施例提供了一种数据处理方法,可以通过区块链电子发票,可以快速对企业提供的生产经营数据进行验证,保证企业提供数据的真实性和合法性,降低业务审批时的风险。In response to the current problems of enterprises creating false cash flow, forging sales records, and using fake invoices to cause bad credit, and being unable to guarantee the authenticity and legality of the data used for credit investigation, the embodiments of the present invention provide a data processing method that can quickly verify the production and operation data provided by the enterprise through blockchain electronic invoices, ensure the authenticity and legality of the data provided by the enterprise, and reduce the risk during business approval.
请参见图1a,是本发明实施例提供的一种业务审批系统的架构示意图,该业务审批系统包括区块链网络10、用户终端102、业务审批平台103和电子发票服务商104,其中:Please refer to FIG. 1a, which is a schematic diagram of the architecture of a business approval system provided by an embodiment of the present invention. The business approval system includes a blockchain network 10, a user terminal 102, a business approval platform 103 and an electronic invoice service provider 104, wherein:
区块链网络10是指用于进行节点与节点之间数据共享的网络,区块链网络中可以包括多个节点101。每个节点101在进行正常工作可以接收到输入信息,并基于接收到的输入信息维护区块链网络内的共享数据(即区块链)。为了保证区块链网络内的信息互通,每个节点之间可以存在信息连接,任意两个节点之间可以实现点对点(Peer To Peer,P2P)通信,具体可以通过有线通信链路或无线通信链路进行P2P通信。例如,当区块链网络中的任意节点接收到输入信息时,其他节点便根据共识算法获取该输入信息,将该输入信息作为共享数据中的数据进行存储,使得区块链网络中全部节点上存储的数据均一致。The blockchain network 10 refers to a network for sharing data between nodes, and the blockchain network may include multiple nodes 101. Each node 101 can receive input information when performing normal work, and maintain the shared data (i.e., blockchain) in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there can be an information connection between each node, and peer-to-peer (P2P) communication can be achieved between any two nodes, and P2P communication can be performed specifically through a wired communication link or a wireless communication link. For example, when any node in the blockchain network receives input information, other nodes obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the blockchain network are consistent.
用户终端102、业务审批平台103和电子发票服务商104可以接入该区块链网络,并可以与区块链网络中的节点进行通信,例如,向节点发起数据获取,交易数据上链等等。其中,用户终端102具体可以是智能手机、平板电脑、笔记本电脑、台式电脑、车载智能终端等,业务审批平台103具体可以是贷款平台,金融机构等,本发明实施例不做限定。The user terminal 102, the business approval platform 103 and the electronic invoice service provider 104 can access the blockchain network and communicate with the nodes in the blockchain network, for example, to initiate data acquisition to the nodes, upload transaction data to the blockchain, etc. The user terminal 102 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a car-mounted smart terminal, etc., and the business approval platform 103 can be a loan platform, a financial institution, etc., which is not limited in the embodiment of the present invention.
需要说明的是,图1a中所示的节点的数目仅仅是示意性的,根据实际需要,可以部署任意数目的节点,用户终端102、业务审批平台103和电子发票服务商104可以与区块链网络中的同一节点进行通信,也可以分别与区块链网络中的不同节点进行通信。It should be noted that the number of nodes shown in FIG. 1a is merely schematic. Any number of nodes may be deployed according to actual needs. The user terminal 102 , the business approval platform 103 , and the electronic invoice service provider 104 may communicate with the same node in the blockchain network, or may communicate with different nodes in the blockchain network respectively.
其中,对于区块链网络中的每个节点,均具有与其对应的节点标识,而且区块链网络中的每个节点均可以存储有区块链网络中其他节点的节点标识,以便后续根据其他节点的节点标识,将生成的区块广播至区块链网络中的其他节点。每个节点中可维护一个如下表所示的节点标识列表,将节点名称和节点标识对应存储至该节点标识列表中。其中,节点标识可为互联网协议(Internet Protocol,IP)地址以及其他任一种能够用于标识该节点的信息,表中仅以IP地址为例进行说明。Among them, for each node in the blockchain network, there is a node identifier corresponding to it, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an Internet Protocol (IP) address and any other information that can be used to identify the node. The table only uses the IP address as an example for illustration.
其中,区块链网络中的每个节点均存储一条相同的区块链。区块链由多个区块组成,参见图1b,区块链由多个区块组成,创始块中包括区块头和区块主体,区块头中存储有输入信息特征值、版本号、时间戳和难度值,区块主体中存储有输入信息;创始块的下一区块以创始块为父区块,下一区块中同样包括区块头和区块主体,区块头中存储有当前区块的输入信息特征值、父区块的区块头特征值、版本号、时间戳和难度值,并以此类推,使得区块链中每个区块中存储的区块数据均与父区块中存储的区块数据存在关联,保证了区块中输入信息的安全性。Among them, each node in the blockchain network stores an identical blockchain. The blockchain consists of multiple blocks. See Figure 1b. The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version numbers, timestamps, and difficulty values, and the block body stores input information. The next block of the genesis block uses the genesis block as the parent block. The next block also includes a block header and a block body. The block header stores the input information feature values of the current block, the block header feature values, version numbers, timestamps, and difficulty values of the parent block, and so on. The block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
其中,在生成区块链中的各个区块时,参见图1c,区块链所在的节点在接收到输入信息时,对输入信息进行校验,完成校验后,将输入信息存储至内存池中,并更新其用于记录输入信息的哈希树;之后,将更新时间戳更新为接收到输入信息的时间,并尝试不同的随机数,多次进行特征值计算,使得计算得到的特征值可以满足下述公式:Among them, when generating each block in the blockchain, see Figure 1c. When the node where the blockchain is located receives the input information, it verifies the input information. After completing the verification, it stores the input information in the memory pool and updates the hash tree used to record the input information. After that, the update timestamp is updated to the time when the input information is received, and different random numbers are tried, and the eigenvalue calculation is performed multiple times, so that the calculated eigenvalue can satisfy the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGETSHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
其中,SHA256为计算特征值所用的特征值算法;version(版本号)为区块链中相关区块协议的版本信息;prev_hash为当前区块的父区块的区块头特征值;merkle_root为输入信息的特征值;ntime为更新时间戳的更新时间;nbits为当前难度,在一段时间内为定值,并在超出固定时间段后再次进行确定;x为随机数;TARGET为特征值阈值,该特征值阈值可以根据nbits确定得到。Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.
这样,当计算得到满足上述公式的随机数时,便可将信息对应存储,生成区块头和区块主体,得到当前区块。随后,区块链所在节点根据区块链网络中其他节点的节点标识,将新生成的区块分别发送给其所在的区块链网络中的其他节点,由其他节点对新生成的区块进行校验,并在完成校验后将新生成的区块添加至其存储的区块链中。In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the blockchain network according to the node identification of other nodes in the blockchain network. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.
在一些可行的实施方式中,区块链网络的某一节点101可以接收业务审批平台103发送的数据获取请求,数据获取请求携带有用户的链上地址,并根据该用户的链上地址从区块链上查询与该用户相关的第一生产经营数据的摘要信息,节点101向业务审批平台103发送该第一生产经营数据的摘要信息,以使得该业务审批平台利用该第一生产经营数据的摘要信息对电子发票服务商104提供的第二生产经营数据进行校验,并在校验通过后,根据该第二生产经营数据确定对该用户提交的业务审批请求的审批结果,可以快速对企业提供的生产经营数据进行验证,从而保证企业提供生产经营数据的真实性和合法性,显著降低业务审批时的风险。In some feasible implementations, a node 101 of the blockchain network can receive a data acquisition request sent by the business approval platform 103, the data acquisition request carries the user's on-chain address, and queries the summary information of the first production and operation data related to the user from the blockchain according to the user's on-chain address. Node 101 sends the summary information of the first production and operation data to the business approval platform 103, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider 104, and after the verification is passed, determines the approval result of the business approval request submitted by the user according to the second production and operation data, and can quickly verify the production and operation data provided by the enterprise, thereby ensuring the authenticity and legality of the production and operation data provided by the enterprise, and significantly reducing the risk during business approval.
在一些可行的实施方式中,区块链网络的某一节点101可以向区块链网络中的其他节点广播业务审批结果以及业务审批平台103查看用户终端102生产经营数据的记录,在所述其他节点对该业务审批结果以及业务审批平台103查看用户终端102生产经营数据的记录共识验证通过后,节点101将该业务审批结果写入区块,从而业务审批结果以及业务审批平台103查看用户终端102生产经营数据的记录均可上链,有效防止篡改,保证了业务审批结果的有效性和可追溯性。In some feasible implementations, a node 101 of the blockchain network can broadcast the business approval results and the records of the business approval platform 103 viewing the production and operation data of the user terminal 102 to other nodes in the blockchain network. After the other nodes have passed consensus verification on the business approval results and the records of the business approval platform 103 viewing the production and operation data of the user terminal 102, the node 101 writes the business approval results into the block, so that the business approval results and the records of the business approval platform 103 viewing the production and operation data of the user terminal 102 can be uploaded to the chain, effectively preventing tampering and ensuring the validity and traceability of the business approval results.
以下对本发明实施例的技术方案的实现细节进行详细阐述:The implementation details of the technical solution of the embodiment of the present invention are described in detail below:
请参见图2,是本发明实施例基于图1a所示的业务审批系统提供的一种数据处理方法的流程示意图,本发明实施例的数据处理方法主要是从业务审批平台一侧进行描述的,该数据处理方法应用于业务审批平台,业务审批平台具体可以是贷款平台,金融机构等,该数据处理方法包括如下步骤:Please refer to FIG. 2, which is a flow chart of a data processing method provided by the business approval system shown in FIG. 1a according to an embodiment of the present invention. The data processing method according to the embodiment of the present invention is mainly described from the perspective of the business approval platform. The data processing method is applied to the business approval platform, which may specifically be a loan platform, a financial institution, etc. The data processing method includes the following steps:
201、获取用户通过用户终端提交的业务审批请求,所述业务审批请求携带有所述用户的链上地址。201. Obtain a service approval request submitted by a user through a user terminal, where the service approval request carries the on-chain address of the user.
其中,业务审批请求具体可以是贷款请求。The business approval request may specifically be a loan request.
具体的,业务审批平台从用户终端提交的业务审批请求中得到携带有该用户的链上地址,该链上地址包括该用户终端对应的公钥的摘要信息。Specifically, the business approval platform obtains the on-chain address of the user from the business approval request submitted by the user terminal, and the on-chain address includes summary information of the public key corresponding to the user terminal.
202、根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息。202. Obtain summary information of first production and operation data related to the user from a first node of the blockchain network according to the on-chain address of the user.
具体的,第一生产经营数据包括该用户的经营成本开支、销售收入和票据信息中的一种或多种,票据信息可以是指在生产、经营过程中开具的区块链电子发票。由于保证区块链上交易的隐私,链上数据提供模糊后的hash值(即摘要信息),不提供具体交易的对象和身份,因此业务审批平台通过用户提供的链上地址从区块链网络的第一节点处获取到的是该用户的第一生产经营数据的摘要信息。Specifically, the first production and operation data includes one or more of the user's operating cost expenditure, sales revenue and bill information. The bill information may refer to the blockchain electronic invoice issued during the production and operation process. In order to ensure the privacy of transactions on the blockchain, the on-chain data provides a blurred hash value (i.e., summary information) and does not provide the specific transaction object and identity. Therefore, the business approval platform obtains the summary information of the user's first production and operation data from the first node of the blockchain network through the on-chain address provided by the user.
在一些可行的实施方式中,业务审批平台根据用户的链上地址从区块链网络的第一节点处获取与用户相关的第一生产经营数据的摘要信息的具体实现方式为:向区块链网络的第一节点发送数据获取请求,该数据获取请求携带有该用户的链上地址,并接收该第一节点发送的与该用户相关的第一生产经营数据的摘要信息,该第一生产经营数据的摘要信息是由该第一节点根据该用户的链上地址从区块链上查询得到的。In some feasible implementations, the specific implementation method of the business approval platform obtaining summary information of the first production and operation data related to the user from the first node of the blockchain network according to the user's on-chain address is: sending a data acquisition request to the first node of the blockchain network, the data acquisition request carries the user's on-chain address, and receiving the summary information of the first production and operation data related to the user sent by the first node, the summary information of the first production and operation data is obtained by the first node from the blockchain according to the user's on-chain address.
203、接收电子发票服务商在接收到所述用户终端的的通知时发送的与所述用户相关的第二生产经营数据。203. Receive second production and operation data related to the user sent by the electronic invoice service provider when receiving a notification from the user terminal.
具体的,用户通过用户终端向电子发票服务商发送通知请求,电子发票服务商在接收到通知请求后,将该用户相关的第二生产经营数据发送给业务审批平台,即业务审批平台接收电子发票服务商发送的与该用户相关的第二生产经营数据,上述第二生产经营数据包括用户的交易数额、笔数、时间、退款等数据。Specifically, the user sends a notification request to the electronic invoice service provider through the user terminal. After receiving the notification request, the electronic invoice service provider sends the second production and operation data related to the user to the business approval platform. That is, the business approval platform receives the second production and operation data related to the user sent by the electronic invoice service provider. The above-mentioned second production and operation data includes the user's transaction amount, number of transactions, time, refund and other data.
204、在利用所述第一生产经营数据的摘要信息对所述第二生产经营数据校验通过后,根据所述第二生产经营数据确定对所述业务审批请求的审批结果。204. After the second production and operation data is verified by using the summary information of the first production and operation data, the approval result of the business approval request is determined according to the second production and operation data.
具体的,业务审批平台利用第一生产数据的摘要信息与第二生产经营数据的摘要信息进行校验,然后根据第二生产经营数据确定对该用户提供的业务审批请求的审批结果,该审批结果包括是否发放贷款、授予的贷款额度等信息。Specifically, the business approval platform uses the summary information of the first production data and the summary information of the second production and operation data to verify, and then determines the approval result of the business approval request provided by the user based on the second production and operation data. The approval result includes information such as whether to issue a loan and the amount of loan granted.
在一些可行的实施方式中,利用所述第一生产经营数据的摘要信息对第二生产经营数据校验通过的具体实现方式为:业务审批平台获取该第二生产经营数据的摘要信息,将该第二生产经营数据的摘要信息与第一生产经营数据的摘要信息进行匹配,若该第二生产经营数据的摘要信息与该第一生产经营数据的摘要信息匹配,则确定对该第二生产经营数据校验通过。通过利用该用户第一生产经营数据的摘要信息对第二生产经营数据校验通过,可以保证企业提供的生产经营数据得到验证,从而保证企业提供生产经营数据的真实性和合法性。In some feasible implementations, the specific implementation method of verifying the second production and operation data by using the summary information of the first production and operation data is as follows: the business approval platform obtains the summary information of the second production and operation data, matches the summary information of the second production and operation data with the summary information of the first production and operation data, and if the summary information of the second production and operation data matches the summary information of the first production and operation data, it is determined that the second production and operation data has been verified. By verifying the second production and operation data by using the summary information of the first production and operation data of the user, it can be ensured that the production and operation data provided by the enterprise is verified, thereby ensuring the authenticity and legality of the production and operation data provided by the enterprise.
需要注意的是,这里的“匹配”,指的是摘要信息一致。It should be noted that the "match" here refers to the consistency of summary information.
举例来说,金融机构(对应上述业务审批平台)接收到某企业的贷款请求(对应上述业务审批请求),该贷款请求包括企业的链上地址,金融机构通过链上地址从区块链网络的第一节点处获取与该企业相关的第一生产经营数据的摘要信息,其中第一生产经营数据包括经营成本开支、销售收入和票据信息,同时还接收到电子发票服务商发送的有关该企业的第二生产经营数据,第二生产经营数据包括括用户的交易数额、笔数、时间、退款等数据,然后金融机构对比第一生产经营数据摘要信息和第二生产经营数据摘要信息,若两个数据对应的摘要信息一致,则进行贷款审批通过。For example, a financial institution (corresponding to the above-mentioned business approval platform) receives a loan request from an enterprise (corresponding to the above-mentioned business approval request), which includes the on-chain address of the enterprise. The financial institution obtains summary information of the first production and operation data related to the enterprise from the first node of the blockchain network through the on-chain address, where the first production and operation data includes operating cost expenditure, sales revenue and bill information. At the same time, the financial institution also receives the second production and operation data about the enterprise sent by the electronic invoice service provider, and the second production and operation data includes the user's transaction amount, number of transactions, time, refund and other data. Then the financial institution compares the first production and operation data summary information with the second production and operation data summary information. If the summary information corresponding to the two data is consistent, the loan is approved.
在一些可行的实施方式中,在根据第二生产经营数据确定对业务审批请求的审批结果之后,向区块链网络的第二节点发送该审批结果,以使得第二节点将该审批结果写入区块链中的具体实现方式为:业务审批平台向区块链网络的第二节点发送该审批结果以及查看企业生产经营数据行为,节点将该审批结果进行校验,完成校验后,将该审批结果存储至内存池中,并更新其用于记录输入信息的哈希树;之后,将更新时间戳更新为接收到该审批结果的时间,并尝试不同的随机数,多次进行特征值计算,计算得到满足条件的随机数,便可将信息对应存储,生成区块头和区块主体,得到包含该审批结果区块。随后,区块链所在节点根据区块链网络中其他节点的节点标识,将新生成的包含该审批结果区块分别发送给其所在的区块链网络中的其他节点,由其他节点对该审批结果区块进行校验,如果校验通过后将该审批结果区块添加至其存储的区块链中。通过将审批结果上传区块链,防止数据被篡改,保证了审批结果的有效性和可追溯性,同时放贷行为也会上链,防止一个企业同时申请多笔贷款。In some feasible implementations, after determining the approval result of the business approval request according to the second production and operation data, the approval result is sent to the second node of the blockchain network so that the second node writes the approval result into the blockchain. The specific implementation method is as follows: the business approval platform sends the approval result to the second node of the blockchain network and checks the production and operation data behavior of the enterprise. The node verifies the approval result. After the verification is completed, the approval result is stored in the memory pool and the hash tree used to record the input information is updated; then, the update timestamp is updated to the time when the approval result is received, and different random numbers are tried, and the characteristic value calculation is performed multiple times. The random number that meets the conditions is calculated, and the information can be stored accordingly, and the block header and block body are generated to obtain the block containing the approval result. Subsequently, the node where the blockchain is located sends the newly generated block containing the approval result to other nodes in the blockchain network where it is located according to the node identification of other nodes in the blockchain network, and other nodes verify the approval result block. If the verification passes, the approval result block is added to the blockchain stored therein. By uploading the approval results to the blockchain, data tampering can be prevented, ensuring the validity and traceability of the approval results. At the same time, the lending behavior will also be put on the chain to prevent a company from applying for multiple loans at the same time.
需要注意的是,上述区块链网络的第一节点与第二节点可以是相同的节点、不同节点、或者多个节点。同时本发明不仅仅只是对审批结果进行上链操作,还包括对业务审批平台查看企业相关数据的行为也会进行上链操作,具体上链流程如审批结果上链流程,在此不再赘述。It should be noted that the first node and the second node of the above blockchain network can be the same node, different nodes, or multiple nodes. At the same time, the present invention not only performs chain operations on the approval results, but also includes chain operations on the behavior of viewing enterprise-related data on the business approval platform. The specific chain process, such as the chain process for approval results, will not be repeated here.
在本发明实施例中,业务审批平台获取用户通过用户终端提交的业务审批请求,该业务审批请求携带有该用户的链上地址,再根据该用户的链上地址从区块链网络的第一节点处获取与该用户相关的第一生产经营数据的摘要信息,同时接收电子发票服务商在接收到该用户终端的通知时发送的与该用户相关的第二生产经营数据,并在利用该第一生产经营数据的摘要信息对该第二生产经营数据校验通过后,根据该第二生产经营数据确定对该业务审批请求的审批结果。可以快速对企业提供的生产经营数据进行验证,保证企业提供生产经营数据的真实性和合法性,降低业务审批时的风险。In an embodiment of the present invention, the business approval platform obtains a business approval request submitted by a user through a user terminal, the business approval request carries the user's on-chain address, and then obtains summary information of the first production and operation data related to the user from the first node of the blockchain network according to the user's on-chain address, and simultaneously receives the second production and operation data related to the user sent by the electronic invoice service provider when receiving the notification of the user terminal, and after verifying the second production and operation data using the summary information of the first production and operation data, determines the approval result of the business approval request according to the second production and operation data. The production and operation data provided by the enterprise can be quickly verified to ensure the authenticity and legality of the production and operation data provided by the enterprise, and reduce the risk during business approval.
请参见图3,是本发明实施例基于图1a所示的业务审批系统提供的另一种数据处理方法的流程示意图,本发明实施例的数据处理方法主要是从区块链网络一侧进行描述的,该数据处理方法应用于区块链网络,所述区块链网络包括多个节点,该数据处理方法包括如下步骤:Please refer to FIG3, which is a flow chart of another data processing method provided by the business approval system shown in FIG1a according to an embodiment of the present invention. The data processing method according to the embodiment of the present invention is mainly described from the blockchain network side. The data processing method is applied to the blockchain network, and the blockchain network includes multiple nodes. The data processing method includes the following steps:
301、接收业务审批平台发送的数据获取请求,所述数据获取请求携带有用户的链上地址。301. Receive a data acquisition request sent by the business approval platform, where the data acquisition request carries the user's on-chain address.
302、根据所述用户的链上地址从区块链上查询与所述用户相关的第一生产经营数据的摘要信息。302. Query summary information of first production and operation data related to the user from the blockchain according to the on-chain address of the user.
在一些可行的实施方式中,区块链网络的节点获取用户终端对应的公钥和数字签名,其中,数字签名是该用户通过公钥对应的私钥加密得到的。区块链节点利用公钥对链上地址进行解密得到hash数值(即摘要信息),并验证数字签名是否有效,若数字签名有效,则节点从区块链上查询与该用户相关的第一生产经营数据的摘要信息。其中数字签名确认是由发送方签名发出的,加密是为了保证数据的隐秘性。In some feasible implementations, the nodes of the blockchain network obtain the public key and digital signature corresponding to the user terminal, wherein the digital signature is obtained by encrypting the private key corresponding to the public key. The blockchain node uses the public key to decrypt the address on the chain to obtain the hash value (i.e., summary information), and verifies whether the digital signature is valid. If the digital signature is valid, the node queries the summary information of the first production and operation data related to the user from the blockchain. The digital signature confirmation is issued by the sender's signature, and encryption is to ensure the confidentiality of the data.
举例来说,区块链节点接收到金融机构的数据获取请求时,通过数据获取请求中企业的链上地址,并且获取企业对应的公钥和数字签名,然后利用公钥进行解密,获得摘要信息,再验证数字签名是否有效,数字签名有效则节点从区块链上查询与该企业相关第一生产经营数据的摘要信息。For example, when a blockchain node receives a data acquisition request from a financial institution, it uses the on-chain address of the enterprise in the data acquisition request to obtain the enterprise's corresponding public key and digital signature, then uses the public key to decrypt it, obtains summary information, and then verifies whether the digital signature is valid. If the digital signature is valid, the node queries the blockchain for summary information of the first production and operation data related to the enterprise.
303、向所述业务审批平台发送所述第一生产经营数据的摘要信息,以使得所述业务审批平台利用所述第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据所述第二生产经营数据确定对所述用户提交的业务审批请求的审批结果。303. Send summary information of the first production and operation data to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, determine the approval result of the business approval request submitted by the user according to the second production and operation data.
具体的,节点向业务审批平台发送根据上述用户链上地址获取第一生产经营数据的摘要信息,使得业务审批平台利用该第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据第二生产经营数据确定对用户提交的业务审批请求的审批结果。Specifically, the node sends summary information of the first production and operation data obtained according to the above-mentioned user chain address to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, determines the approval result of the business approval request submitted by the user based on the second production and operation data.
在本发明实施例中,区块链节点根据用户的链上地址从区块链上查询与用户相关的第一生产经营数据的摘要信息,并向业务审批平台发送该第一生产经营数据的摘要信息,以使得该业务审批平台利用该第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据该第二生产经营数据确定对该用户提交的业务审批请求的审批结果。这样可以快速准确、快速获取用户的生产经营数据,从而保证企业提供生产经营数据的真实性和合法性。In the embodiment of the present invention, the blockchain node queries the summary information of the first production and operation data related to the user from the blockchain according to the user's on-chain address, and sends the summary information of the first production and operation data to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, the approval result of the business approval request submitted by the user is determined according to the second production and operation data. In this way, the production and operation data of the user can be obtained quickly and accurately, thereby ensuring the authenticity and legality of the production and operation data provided by the enterprise.
请参见图4,为本发明实施例提供的一种数据处理装置的结构示意图。本实施例中所描述的数据处理装置,应用于业务审批平台,包括:Please refer to Figure 4, which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present invention. The data processing device described in this embodiment is applied to a business approval platform, and includes:
获取单元401,用于获取用户通过用户终端提交的业务审批请求,所述业务审批请求携带有所述用户的链上地址;An acquisition unit 401 is used to acquire a service approval request submitted by a user through a user terminal, wherein the service approval request carries an on-chain address of the user;
所述获取单元401,还用于根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息;The acquisition unit 401 is further configured to acquire summary information of first production and operation data related to the user from a first node of the blockchain network according to the on-chain address of the user;
接收单元402,用于接收电子发票服务商在接收到所述用户终端的的通知时发送的与所述用户相关的第二生产经营数据;The receiving unit 402 is used to receive the second production and operation data related to the user sent by the electronic invoice service provider when receiving the notification from the user terminal;
确定单元403,用于在利用所述第一生产经营数据的摘要信息对所述第二生产经营数据校验通过后,根据所述第二生产经营数据确定对所述业务审批请求的审批结果。The determination unit 403 is used to determine the approval result of the business approval request according to the second production and operation data after the second production and operation data is verified by using the summary information of the first production and operation data.
可选地,所述第一生产经营数据包括所述用户的经营成本开支、销售收入和票据信息中的一种或多种。Optionally, the first production and operation data includes one or more of the user's operating cost expenditure, sales revenue and bill information.
可选地,所述装置还包括:匹配单元404,其中:Optionally, the device further includes: a matching unit 404, wherein:
所述获取单元401,还用于获取所述第二生产经营数据的摘要信息;The acquisition unit 401 is further used to acquire summary information of the second production and operation data;
所述匹配单元404,用于将所述第二生产经营数据的摘要信息与所述第一生产经营数据的摘要信息进行匹配;The matching unit 404 is used to match the summary information of the second production and operation data with the summary information of the first production and operation data;
所述确定单元403,用于若所述第二生产经营数据的摘要信息与所述第一生产经营数据的摘要信息匹配,则确定对所述第二生产经营数据校验通过。The determining unit 403 is configured to determine that verification of the second production and operation data has passed if the summary information of the second production and operation data matches the summary information of the first production and operation data.
可选地,所述装置还包括:发送单元405,其中:Optionally, the device further includes: a sending unit 405, wherein:
所述发送单元405,用于向区块链网络的第一节点发送数据获取请求,所述数据获取请求携带有所述用户的链上地址;The sending unit 405 is used to send a data acquisition request to the first node of the blockchain network, where the data acquisition request carries the on-chain address of the user;
所述接收单元,用于接收所述第一节点发送的与所述用户相关的第一生产经营数据的摘要信息,所述第一生产经营数据的摘要信息是由所述第一节点根据所述用户的链上地址从区块链上查询得到的。The receiving unit is used to receive summary information of first production and operation data related to the user sent by the first node, where the summary information of the first production and operation data is obtained by the first node from querying the blockchain according to the on-chain address of the user.
可选地,所述发送单元405,具体用于:Optionally, the sending unit 405 is specifically configured to:
向所述区块链网络的第二节点发送所述审批结果,以使得所述第二节点将所述审批结果写入区块链中。Send the approval result to a second node of the blockchain network so that the second node writes the approval result into the blockchain.
可选地,所述用户的链上地址包括所述用户终端对应的公钥的摘要信息。Optionally, the user's on-chain address includes summary information of the public key corresponding to the user terminal.
在本实施例中,获取单元401获取用户通过用户终端提交的业务审批请求,该业务审批请求携带有该用户的链上地址,再根据该用户的链上地址从区块链网络的第一节点处获取与该用户相关的第一生产经营数据的摘要信息,同时接收单元402接收电子发票服务商在接收到该用户终端的通知时发送的与该用户相关的第二生产经营数据,确定单元403在利用该第一生产经营数据的摘要信息对该第二生产经营数据校验通过后,根据该第二生产经营数据确定对该业务审批请求的审批结果。可以快速对企业提供的生产经营数据进行验证,保证企业提供生产经营数据的真实性和合法性,降低业务审批时的风险。In this embodiment, the acquisition unit 401 acquires the business approval request submitted by the user through the user terminal, and the business approval request carries the on-chain address of the user, and then acquires the summary information of the first production and operation data related to the user from the first node of the blockchain network according to the on-chain address of the user, and at the same time, the receiving unit 402 receives the second production and operation data related to the user sent by the electronic invoice service provider when receiving the notification of the user terminal, and the determination unit 403 determines the approval result of the business approval request according to the second production and operation data after verifying the second production and operation data by using the summary information of the first production and operation data. The production and operation data provided by the enterprise can be quickly verified to ensure the authenticity and legality of the production and operation data provided by the enterprise, and reduce the risk of business approval.
请参见图5,为本发明实施例提供的另一种数据处理装置的结构示意图。本实施例中所描述的数据处理装置,应用于区块链网络,所述区块链网络包括多个节点,包括:Please refer to Figure 5, which is a schematic diagram of the structure of another data processing device provided in an embodiment of the present invention. The data processing device described in this embodiment is applied to a blockchain network, and the blockchain network includes multiple nodes, including:
接收单元501,用于接收业务审批平台发送的数据获取请求,所述数据获取请求携带有用户的链上地址;A receiving unit 501 is used to receive a data acquisition request sent by a business approval platform, wherein the data acquisition request carries the user's on-chain address;
查询单元502,用于根据所述用户的链上地址从区块链上查询与所述用户相关的第一生产经营数据的摘要信息;A query unit 502, configured to query summary information of first production and operation data related to the user from the blockchain according to the on-chain address of the user;
发送单元503,用于向所述业务审批平台发送所述第一生产经营数据的摘要信息,以使得所述业务审批平台利用所述第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据所述第二生产经营数据确定对所述用户提交的业务审批请求的审批结果。The sending unit 503 is used to send the summary information of the first production and operation data to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, determine the approval result of the business approval request submitted by the user according to the second production and operation data.
可以理解的是,本实施例的数据处理装置的各单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each unit of the data processing device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
请参见图6,为本发明实施例提供的一种服务器的结构示意图。本实施例中所描述的服务器,应用于业务审批平台,包括:处理器601、网络接口602及存储器603。其中,处理器601、网络接口602及存储器603可通过总线或其他方式连接,本发明实施例以通过总线连接为例。Please refer to Figure 6, which is a schematic diagram of the structure of a server provided in an embodiment of the present invention. The server described in this embodiment is applied to a business approval platform, and includes: a processor 601, a network interface 602, and a memory 603. Among them, the processor 601, the network interface 602, and the memory 603 can be connected via a bus or other means. The embodiment of the present invention takes the connection via a bus as an example.
其中,处理器601(或称中央处理器(Central Processing Unit,CPU))是服务器的计算核心以及控制核心。网络接口602可选的可以包括标准的有线接口、无线接口(如WI-FI、移动通信接口等),受处理器601的控制用于收发数据。存储器603(Memory)是服务器的记忆设备,用于存放程序和数据。可以理解的是,此处的存储器603可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的还可以是至少一个位于远离前述处理器601的存储装置。存储器603提供存储空间,该存储空间存储了服务器的操作系统和可执行程序代码,可包括但不限于:Windows系统(一种操作系统)、Linux(一种操作系统)系统等等,本发明对此并不作限定。Among them, the processor 601 (or central processing unit (CPU)) is the computing core and control core of the server. The network interface 602 may optionally include a standard wired interface, a wireless interface (such as WI-FI, a mobile communication interface, etc.), which is controlled by the processor 601 for sending and receiving data. The memory 603 (Memory) is a memory device of the server, which is used to store programs and data. It can be understood that the memory 603 here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one storage device located away from the aforementioned processor 601. The memory 603 provides a storage space, which stores the operating system and executable program code of the server, which may include but is not limited to: Windows system (an operating system), Linux (an operating system) system, etc., and the present invention is not limited to this.
在本发明实施例中,处理器601通过运行存储器603中的可执行程序代码,执行如下操作:In the embodiment of the present invention, the processor 601 performs the following operations by running the executable program code in the memory 603:
获取用户通过用户终端提交的业务审批请求,所述业务审批请求携带有所述用户的链上地址;Obtaining a service approval request submitted by a user through a user terminal, wherein the service approval request carries the on-chain address of the user;
根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息;Obtain summary information of first production and operation data related to the user from a first node of the blockchain network according to the on-chain address of the user;
接收电子发票服务商在接收到所述用户终端的的通知时发送的与所述用户相关的第二生产经营数据;Receiving second production and operation data related to the user sent by the electronic invoice service provider when receiving a notification from the user terminal;
在利用所述第一生产经营数据的摘要信息对所述第二生产经营数据校验通过后,根据所述第二生产经营数据确定对所述业务审批请求的审批结果。After the second production and operation data is verified by using the summary information of the first production and operation data, the approval result of the business approval request is determined according to the second production and operation data.
可选地,所述用户的经营成本开支、销售收入和票据信息中的一种或多种。Optionally, one or more of the user's operating cost expenditure, sales revenue and bill information.
可选地,所述处理器601,用于:Optionally, the processor 601 is configured to:
获取所述第二生产经营数据的摘要信息;Obtain summary information of the second production and operation data;
将所述第二生产经营数据的摘要信息与所述第一生产经营数据的摘要信息进行匹配;matching the summary information of the second production and operation data with the summary information of the first production and operation data;
若所述第二生产经营数据的摘要信息与所述第一生产经营数据的摘要信息匹配,则确定对所述第二生产经营数据校验通过。If the summary information of the second production and operation data matches the summary information of the first production and operation data, it is determined that the verification of the second production and operation data has passed.
可选地,所述处理器601根据所述用户的链上地址从区块链网络的第一节点处获取与所述用户相关的第一生产经营数据的摘要信息的具体方式为:Optionally, the specific manner in which the processor 601 obtains summary information of the first production and operation data related to the user from the first node of the blockchain network according to the on-chain address of the user is:
向区块链网络的第一节点发送数据获取请求,所述数据获取请求携带有所述用户的链上地址;Sending a data acquisition request to a first node of the blockchain network, wherein the data acquisition request carries the on-chain address of the user;
接收所述第一节点发送的与所述用户相关的第一生产经营数据的摘要信息,所述第一生产经营数据的摘要信息是由所述第一节点根据所述用户的链上地址从区块链上查询得到的。Receive summary information of first production and operation data related to the user sent by the first node, where the summary information of the first production and operation data is obtained by the first node from querying the blockchain according to the on-chain address of the user.
可选地,所述处理器601,用于向所述区块链网络的第二节点发送所述审批结果,以使得所述第二节点将所述审批结果写入区块链中。Optionally, the processor 601 is used to send the approval result to a second node of the blockchain network, so that the second node writes the approval result into the blockchain.
可选地,所述用户的链上地址包括所述用户终端对应的公钥的摘要信息。Optionally, the user's on-chain address includes summary information of the public key corresponding to the user terminal.
具体实现中,本发明实施例中所描述的处理器601、网络接口602及存储器603可执行本发明实施例图2提供的一种数据处理方法的流程中所描述的实现方式,也可执行本发明实施例图4提供的一种数据处理装置中所描述的实现方式,在此不再赘述。In a specific implementation, the processor 601, network interface 602 and memory 603 described in the embodiment of the present invention can execute the implementation method described in the flow of a data processing method provided in Figure 2 of the embodiment of the present invention, and can also execute the implementation method described in a data processing device provided in Figure 4 of the embodiment of the present invention, which will not be repeated here.
请参见图7,为本发明实施例提供的一种节点设备的结构示意图。本实施例中所描述的节点设备,包括:处理器701、网络接口702及存储器703。其中,处理器701、网络接口702及存储器703可通过总线或其他方式连接,本发明实施例以通过总线连接为例。Please refer to Figure 7, which is a schematic diagram of the structure of a node device provided in an embodiment of the present invention. The node device described in this embodiment includes: a processor 701, a network interface 702, and a memory 703. The processor 701, the network interface 702, and the memory 703 may be connected via a bus or other means, and the embodiment of the present invention takes the connection via a bus as an example.
其中,处理器701(或称中央处理器(Central Processing Unit,CPU))是节点设备的计算核心以及控制核心。网络接口702可选的可以包括标准的有线接口、无线接口(如WI-FI、移动通信接口等),受处理器701的控制用于收发数据。存储器703(Memory)是节点设备的记忆设备,用于存放程序和数据。可以理解的是,此处的存储器703可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的还可以是至少一个位于远离前述处理器701的存储装置。存储器703提供存储空间,该存储空间存储了节点设备的操作系统和可执行程序代码,可包括但不限于:Windows系统(一种操作系统)、Linux(一种操作系统)系统等等,本发明对此并不作限定。Among them, the processor 701 (or central processing unit (CPU)) is the computing core and control core of the node device. The network interface 702 may optionally include a standard wired interface, a wireless interface (such as WI-FI, a mobile communication interface, etc.), which is controlled by the processor 701 for sending and receiving data. The memory 703 (Memory) is a memory device of the node device, which is used to store programs and data. It can be understood that the memory 703 here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one storage device located away from the aforementioned processor 701. The memory 703 provides a storage space, which stores the operating system and executable program code of the node device, which may include but is not limited to: Windows system (an operating system), Linux (an operating system) system, etc., and the present invention is not limited to this.
在本发明实施例中,处理器701通过运行存储器703中的可执行程序代码,执行如下操作:接收业务审批平台发送的数据获取请求,所述数据获取请求携带有用户的链上地址;根据所述用户的链上地址从区块链上查询与所述用户相关的第一生产经营数据的摘要信息;In the embodiment of the present invention, the processor 701 performs the following operations by running the executable program code in the memory 703: receiving a data acquisition request sent by the business approval platform, the data acquisition request carrying the user's on-chain address; querying summary information of the first production and operation data related to the user from the blockchain according to the user's on-chain address;
向所述业务审批平台发送所述第一生产经营数据的摘要信息,以使得所述业务审批平台利用所述第一生产经营数据的摘要信息对电子发票服务商提供的第二生产经营数据进行校验,并在校验通过后,根据所述第二生产经营数据确定对所述用户提交的业务审批请求的审批结果。The summary information of the first production and operation data is sent to the business approval platform, so that the business approval platform uses the summary information of the first production and operation data to verify the second production and operation data provided by the electronic invoice service provider, and after the verification is passed, determines the approval result of the business approval request submitted by the user according to the second production and operation data.
具体实现中,本发明实施例中所描述的处理器701、网络接口702及存储器703可执行本发明实施例图3提供的一种数据处理方法的流程中所描述的实现方式,也可执行本发明实施例图5提供的一种数据处理装置中所描述的实现方式,在此不再赘述。In a specific implementation, the processor 701, network interface 702 and memory 703 described in the embodiment of the present invention can execute the implementation method described in the flow of a data processing method provided in Figure 3 of the embodiment of the present invention, and can also execute the implementation method described in a data processing device provided in Figure 5 of the embodiment of the present invention, which will not be repeated here.
本发明实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,可执行上述数据处理实施例中所执行的步骤。A computer-readable storage medium is also provided in an embodiment of the present invention. The computer-readable storage medium stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the steps performed in the above data processing embodiment can be executed.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。A person skilled in the art can understand that all or part of the processes in the above-mentioned 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 when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910893166.3A CN110598479B (en) | 2019-09-20 | 2019-09-20 | A data processing method, device and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910893166.3A CN110598479B (en) | 2019-09-20 | 2019-09-20 | A data processing method, device and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110598479A CN110598479A (en) | 2019-12-20 |
| CN110598479B true CN110598479B (en) | 2024-06-21 |
Family
ID=68861769
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910893166.3A Active CN110598479B (en) | 2019-09-20 | 2019-09-20 | A data processing method, device and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110598479B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111355804B (en) * | 2020-03-06 | 2023-03-07 | 微民保险代理有限公司 | Alliance-chain-based vehicle management method, device, equipment and storage medium |
| CN111476652B (en) * | 2020-04-14 | 2025-09-05 | 腾讯科技(深圳)有限公司 | Blockchain-based data processing method, device, terminal and storage medium |
| CN111581627A (en) * | 2020-05-11 | 2020-08-25 | 北京精准沟通传媒科技股份有限公司 | Data processing method and device and electronic equipment |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110019326A (en) * | 2018-12-25 | 2019-07-16 | 阿里巴巴集团控股有限公司 | True from false of bills verification method and device and electronic equipment based on block chain |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107341702B (en) * | 2017-03-08 | 2020-06-23 | 创新先进技术有限公司 | Service processing method and device |
| CN108734575A (en) * | 2018-04-03 | 2018-11-02 | 平安科技(深圳)有限公司 | Financing method, system based on block chain and storage medium |
| CN109191219B (en) * | 2018-08-13 | 2023-09-26 | 深圳市智税链科技有限公司 | Data processing method, device, storage medium and equipment for electronic bill |
| CN109345194A (en) * | 2018-09-12 | 2019-02-15 | 北京东港瑞宏科技有限公司 | An electronic bill circulation system |
| CN109359485A (en) * | 2018-09-18 | 2019-02-19 | 深圳壹账通智能科技有限公司 | Invoice data shared system and method based on block chain |
| CN110851496B (en) * | 2018-12-07 | 2023-03-14 | 深圳市智税链科技有限公司 | Method, apparatus, accounting node and medium for querying transaction information in blockchain network |
| CN109858262B (en) * | 2019-01-17 | 2022-06-17 | 平安科技(深圳)有限公司 | Process approval method, device and system based on block chain system and storage medium |
-
2019
- 2019-09-20 CN CN201910893166.3A patent/CN110598479B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110019326A (en) * | 2018-12-25 | 2019-07-16 | 阿里巴巴集团控股有限公司 | True from false of bills verification method and device and electronic equipment based on block chain |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110598479A (en) | 2019-12-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240144280A1 (en) | Blockchain architecture with record security | |
| US11210661B2 (en) | Method for providing payment gateway service using UTXO-based protocol and server using same | |
| US10977632B2 (en) | Electronic bill management method, apparatus, and storage medium | |
| US10839395B2 (en) | Techniques for expediting processing of blockchain transactions | |
| KR102384340B1 (en) | Method for processing blockchain based real-time transaction and system thereof | |
| US11423475B2 (en) | Distributed electronic record and transaction history | |
| CN110633963B (en) | Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device | |
| US20210209373A1 (en) | Media authentication using distributed ledger | |
| US20170316497A1 (en) | Method for creating, registering, revoking authentication information and server using the same | |
| JP2020528222A (en) | Handling of transaction activities based on smart contracts in blockchain Caution Methods and devices for protecting data | |
| CN112967160A (en) | Service processing system and method based on block chain | |
| CN113228076A (en) | Block chain management system | |
| CN111292174B (en) | Tax information processing method, device and computer-readable storage medium | |
| CN115619395B (en) | Blockchain-based data processing methods and related equipment | |
| CN111488626B (en) | Blockchain-based data processing method, device, equipment and medium | |
| WO2020037927A1 (en) | Negotiable block chain transaction method, apparatus, device, and storage medium | |
| CN113255014A (en) | Data processing method based on block chain and related equipment | |
| CN111311211A (en) | A blockchain-based data processing method and device | |
| CN110598479B (en) | A data processing method, device and computer readable storage medium | |
| CN111292057A (en) | A blockchain-based business processing method | |
| CN111311341A (en) | Bill processing method, equipment and medium | |
| CN119301903B (en) | System and method for reducing network congestion on a blockchain network by supporting blockchain operations via under-chain interactions | |
| CN110807209B (en) | Data processing method, device and storage medium | |
| CN111311259A (en) | Bill processing method, device, terminal and computer readable storage medium | |
| CN111027992A (en) | Asset transaction method and device based on blockchain system and hardware equipment |
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 | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |