CN110503559B - Block chain-based clearing method, device, equipment and computer storage medium - Google Patents

Block chain-based clearing method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN110503559B
CN110503559B CN201910812766.2A CN201910812766A CN110503559B CN 110503559 B CN110503559 B CN 110503559B CN 201910812766 A CN201910812766 A CN 201910812766A CN 110503559 B CN110503559 B CN 110503559B
Authority
CN
China
Prior art keywords
clearing
node
service
data
alliance chain
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
Application number
CN201910812766.2A
Other languages
Chinese (zh)
Other versions
CN110503559A (en
Inventor
周瑞哲
卢道和
罗锶
黄叶飞
陈澄
陈小锋
吕定刚
毕玉龙
商市盛
高银川
曾凯瑶
边元乔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910812766.2A priority Critical patent/CN110503559B/en
Publication of CN110503559A publication Critical patent/CN110503559A/en
Priority to PCT/CN2020/103051 priority patent/WO2021036583A1/en
Application granted granted Critical
Publication of CN110503559B publication Critical patent/CN110503559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to the technical field of financial science (Fintech), and discloses a block chain-based clearing method, which comprises the following steps: when a clearing request is received, determining a target clearing node corresponding to the clearing request, and judging whether the target clearing node is the same as a basic clearing node in a preset service alliance chain; if the target clearing node is different from the basic clearing node, the target clearing node and the basic clearing node are accessed into a preset clearing alliance chain; acquiring clearing data corresponding to the clearing request in the service alliance chain through the basic clearing node, and writing the clearing data into the clearing alliance chain through the basic clearing node; and acquiring clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result. The invention also discloses a clearing device, equipment and a computer storage medium based on the blockchain. The invention improves the flexibility of clearing node change.

Description

Block chain-based clearing method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a blockchain-based clearing method, apparatus, device, and computer storage medium.
Background
With the rapid development of internet technology, especially internet financial technology (fittech), more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and more financial service data are also available.
In general, financial service data is required to be cleared, and the current financial service data clearing is in a fixed mode, that is, a clearing initiator (called a service mechanism) establishes a connection with a clearing mechanism through a preset data interface, the clearing initiator sends the service data to be cleared to the preset data interface, so that the preset data interface processes the service data, and sends the processed service data to the clearing mechanism for clearing, if the clearing initiator changes the clearing mechanism, the data interface needs to be re-established, and the clearing mode is not flexible enough.
Disclosure of Invention
The invention mainly aims to provide a block chain-based clearing method, a block chain-based clearing device, block chain-based clearing equipment and a block chain-based clearing computer storage medium, and aims to solve the technical problem that a current service data clearing mode is inflexible.
In order to achieve the above object, the present invention provides a blockchain-based clearing method, comprising the steps of:
when a clearing request is received, determining a target clearing node corresponding to the clearing request, and judging whether the target clearing node is the same as a basic clearing node in a preset service alliance chain;
if the target clearing node is different from the base clearing node, a clearing alliance chain is formed based on the target clearing node and the base clearing node;
acquiring clearing data corresponding to the clearing request in the service alliance chain through the basic clearing node, and writing the clearing data into the clearing alliance chain through the basic clearing node;
and acquiring the clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result.
In an embodiment, before the step of determining, when the clearing request is received, a target clearing node corresponding to the clearing request and determining whether the target clearing node is the same as a basic clearing node in a preset service alliance chain, the method includes:
when a service alliance chain creation request is received, determining a service node and a basic clearing node corresponding to the service alliance chain creation request, and forming a preset service alliance chain based on the service node and the basic clearing node.
In an embodiment, before the step of determining, when the clearing request is received, a target clearing node corresponding to the clearing request and determining whether the target clearing node is the same as a basic clearing node in a preset service alliance chain, the method includes:
when a transaction request and/or a verification request are received, acquiring business data corresponding to the transaction request and/or verification data corresponding to the verification request;
carrying out standardization processing on the service data and/or the verification data, and uploading the service data and/or the verification data after the standardization processing to a preset service alliance chain;
the step of acquiring, by the base clearing node, clearing data corresponding to the clearing request in the service federation chain, and writing, by the base clearing node, the clearing data to the clearing federation chain includes:
and acquiring the service data and/or the verification data in the service alliance chain through the basic verification node, extracting the verification data of preset dimensionality in the service data and/or the verification data through the basic verification node, and writing the verification data into the verification alliance chain.
In an embodiment, after the step of obtaining, by the target clearing node, the clearing data in the clearing federation chain, and performing, by the target clearing node, a clearing operation on the clearing data, a clearing result includes:
and when the completion of clearing is detected, writing the clearing result into the service alliance chain through the basic clearing node so as to enable service nodes in the service alliance chain to check the clearing result.
In an embodiment, after the step of determining, when the clearing request is received, a target clearing node corresponding to the clearing request and determining whether the target clearing node is the same as a basic clearing node in a preset service alliance chain, the method includes:
if the basic clearing node is the same as the target clearing node, acquiring clearing data from the service alliance chain through the basic clearing node, and processing the clearing data through the basic clearing node to obtain a clearing result;
and when the clearing completion is detected, sending the clearing result to the service nodes on the service alliance chain according to a preset on-chain messenger protocol.
In addition, to achieve the above object, the present invention also provides a block chain based clearing apparatus, including:
the request receiving module is used for determining a target clearing node corresponding to the clearing request when the clearing request is received, and judging whether the target clearing node is the same as a basic clearing node in a preset service alliance chain or not;
a first access module configured to form a clearing federation chain based on the target clearing node and the base clearing node if the target clearing node is different from the base clearing node;
the data writing module is used for acquiring clearing data corresponding to the clearing request in the service alliance chain through the basic clearing node and writing the clearing data into the clearing alliance chain through the basic clearing node;
the first clearing module is used for acquiring the clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result.
In one embodiment, the blockchain-based clearing device includes:
and the second access module is used for determining a service node and a basic clearing node corresponding to the service alliance chain creation request when the service alliance chain creation request is received, and forming a preset service alliance chain based on the service node and the basic clearing node.
In one embodiment, the blockchain-based clearing device includes:
the data acquisition module is used for acquiring service data corresponding to the transaction request and/or verification data corresponding to the verification request when the transaction request and/or the verification request are received;
the data uploading module is used for carrying out standardized processing on the service data and/or the verification data and uploading the service data and/or the verification data after standardized processing to a preset service alliance chain;
the data writing module is further configured to obtain the service data and/or the verification data in the service alliance chain through the base clearing node, extract the service data and/or the verification data with preset dimensions in the verification data through the base clearing node, and write the verification data into the verification alliance chain.
In one embodiment, the blockchain-based clearing device includes:
and the first output module is used for writing the clearing result into the service alliance chain through the basic clearing node when the clearing completion is detected, so that the service nodes in the service alliance chain can check the clearing result.
In an embodiment, the blockchain-based clearing device further includes:
the second clearing module is used for acquiring clearing data from the service alliance chain through the basic clearing node if the basic clearing node is the same as the target clearing node, and processing the clearing data through the basic clearing node to obtain a clearing result;
and the second output module is used for sending the clearing result to the service nodes on the service alliance chain according to a preset on-chain messenger protocol when the clearing completion is detected.
In addition, to achieve the above object, the present invention also provides a block chain based clearing apparatus, including: a memory, a processor, and a blockchain-based clearing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the blockchain-based clearing method as described above.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a blockchain-based clearing program which, when executed by a processor, implements the steps of the blockchain-based clearing method as described above.
The invention provides a block chain-based clearing method, a block chain-based clearing device, a block chain-based clearing equipment and a computer storage medium. When a server receives a clearing request, the server determines a target clearing node corresponding to the clearing request, judges whether the target clearing node is the same as a basic clearing node in a preset service alliance chain, if the target clearing node is different from the basic clearing node, the server determines that the clearing node is changed, the server forms the clearing alliance chain based on the target clearing node and the basic clearing node, and the server writes clearing data in the service alliance chain into the clearing alliance chain through the basic clearing node; the target clearing node acquires clearing data in the clearing alliance chain and executes clearing operation to obtain a clearing result, and the embodiment realizes flexible change of the clearing node and can support multi-party clearing; meanwhile, according to the embodiment of the invention, clearing is performed based on the blockchain, the specific interface information of each account checking double-sending is not required to be known, and convenience is provided for both account checking parties.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a blockchain-based clearing method of the present invention;
FIG. 3 is a flow chart of a fourth embodiment of a blockchain-based clearing method of the present invention;
FIG. 4 is a functional block diagram of a block chain based clearing device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
The clearing device based on the block chain in the embodiment of the invention can be a PC or a server.
As shown in fig. 1, the blockchain-based clearing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a blockchain-based clearing program may be included in the memory 1005 as one type of computer storage medium.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may be configured to invoke the blockchain-based clearing program stored in the memory 1005 and perform operations in the blockchain-based clearing method described below, and the method implemented when the blockchain-based clearing program running on the processor is executed may refer to various embodiments of the blockchain-based clearing method of the present invention, which are not described herein.
Based on the above hardware structure, the embodiment of the block chain based clearing method is provided.
The first embodiment of the block chain based clearing method of the present invention comprises:
when a clearing request is received, determining a target clearing node corresponding to the clearing request, and judging whether the target clearing node is the same as a basic clearing node in a preset service alliance chain;
if the target clearing node is different from the base clearing node, a clearing alliance chain is formed based on the target clearing node and the base clearing node;
acquiring clearing data corresponding to the clearing request in the service alliance chain through the basic clearing node, and writing the clearing data into the clearing alliance chain through the basic clearing node;
and acquiring the clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result.
The clearing method based on the blockchain in the embodiment is applied to clearing equipment (also called a server) based on the blockchain, and the server pre-builds a service alliance chain, specifically comprises the following steps:
and a step a1, when a service alliance chain creation request is received, determining a service node and a basic clearing node corresponding to the service alliance chain creation request, and forming a preset service alliance chain based on the service node and the basic clearing node.
The server receives a service alliance chain creation request, wherein the service alliance chain creation request can be actively triggered by a service node, namely, when the service node performs data clearing for the first time, the service node sends own information and information of a basic clearing node to the server so that the server forms a service alliance chain based on the service node and the basic clearing node, for example, a user clicks a node access button in a service node (called transaction terminal) display interface to actively trigger the service alliance chain creation request, the service node sends the service alliance chain creation request to the server, and the server receives the service alliance chain creation request; in addition, the service alliance chain creation request may also be automatically triggered, for example, a trigger condition is preset in the server: and automatically triggering a service alliance chain creation request when the new clearing service is added, and automatically triggering the service alliance chain creation request when the server detects the new clearing service.
When receiving a service alliance chain creation request, a server acquires a service node and a basic clearing node corresponding to the service alliance chain creation request, wherein the service node comprises a service provider node and a provider node, and the basic clearing node can be a bank node or other clearing nodes except a banking node; the server forms a preset service alliance chain based on the service node and the basic clearing node, namely, the server performs access authentication on the service node and the basic clearing node according to a block chain mechanism to form the service alliance chain.
The server accesses the service node and the basic clearing node into the same alliance chain through an alliance chain access mode, so that the service node and the basic clearing node share data with each other. For example, the service provider node orders records (service data) to the service provider node, records in the service federation chain through the blockchain node, the verification data of the service provider also corresponds to the service federation chain, in addition, the base clearing node is used as a member of the federation chain, the base clearing node can see the service data and verification data on the service federation chain, the base clearing node can clear the service data and verification data, and the base clearing node also notifies the corresponding service provider node and service provider node through an AMOP (Advanced Messages Onchain Protocol link on-line messenger protocol) request in the service federation chain.
In this embodiment, the server accesses the service node and the basic clearing node to form a preset service alliance chain, so that the service node and the basic clearing node can realize data sharing based on the service alliance chain, service data in the service node can be cleared at the basic clearing node, if the service node changes the clearing node, the clearing node needs to be reset, and in the embodiment of the invention, the clearing method based on the block chain can more flexibly change the clearing node, specifically:
referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a blockchain-based clearing method of the present invention, the blockchain-based clearing method including:
step S10, when a clearing request is received, determining a target clearing node corresponding to the clearing request, and judging whether the target clearing node is identical with a basic clearing node in a preset service alliance chain.
The server receives the clearing request, and the triggering mode of the clearing request is not particularly limited, that is, the clearing request may be actively triggered by a user, for example, the user selects to clear the service data of the week and clicks a "clearing" button on a display interface of a service node (also called a transaction terminal), the clearing request is actively triggered, and the transaction terminal sends the clearing request to the server; in addition, the clearing request can be automatically triggered by the server, for example, the server presets to make clearing every morning, and the server automatically triggers the clearing request every morning.
When the server receives a clearing request, the server acquires a clearing node identifier in the clearing request, the server determines a target clearing node corresponding to the clearing request according to the clearing node identifier, then the server compares the target clearing node with a basic clearing node in a preset service alliance chain to judge whether the target clearing node is the same as the basic clearing node, if the target clearing node is the same as the basic clearing node, the server determines that the service node continuously uses the basic clearing node in the service alliance chain, and the server carries out clearing through the basic clearing node; if the target clearing node is different from the base clearing node, the server determines that the service node changes the clearing node, and the service node applies for clearing by using the new target clearing node, specifically:
step S20, if the target clearing node is different from the base clearing node, a clearing alliance chain is formed based on the target clearing node and the base clearing node.
If the target clearing node is different from the basic clearing node, the new target clearing node is not in the service alliance, the target clearing node cannot acquire the service data in the preset service alliance chain, and can not execute clearing operation, and at this time, the server forms a clearing alliance chain based on the target clearing node and the basic clearing node.
In this embodiment, when determining that the target clearing node and the base clearing node are different, the server accesses the target clearing node and the base clearing node to form a clearing alliance chain, so that the service node can save the original base clearing node and can also use the new target clearing node to carry out clearing, specifically:
and step S30, acquiring clearing data corresponding to the clearing request in the service alliance chain through the basic clearing node, and writing the clearing data into the clearing alliance chain through the basic clearing node.
The server obtains the clearing data corresponding to the clearing request in the service alliance chain through the basic clearing node, namely, the basic clearing node inquires the preset service alliance chain, the basic clearing node obtains the clearing data corresponding to the clearing request in the service alliance chain, for example, when the service node receives a transaction request (the transaction request can be a bill making request) and/or a cancel request, the service node uploads the service data to the service alliance chain, the basic clearing node obtains the service data in the service alliance chain according to a blockchain data sharing mechanism, and after the basic clearing node obtains the service data, the basic clearing node deletes redundant data irrelevant to clearing in the service data to obtain the clearing data corresponding to the clearing request.
After the base clearing node acquires the clearing data, the server writes the clearing data into the clearing alliance chain through the base clearing node so that a target clearing node in the clearing alliance chain acquires the clearing data and carries out clearing processing.
In this embodiment, the server acquires service data from the service federation chain based on the basic clearing node, deletes part of the data in the service data, and retains the clearing data, so that on one hand, the risk of data disclosure can be reduced, and on the other hand, the processing amount of clearing data by the target clearing node can be reduced, specifically:
step S40, acquiring the clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result.
The server acquires the clearing data in the clearing alliance chain through the target clearing node, and the target clearing node executes clearing operation on the clearing data, namely, the target clearing node processes the clearing data according to a preset clearing rule to obtain a clearing result.
In this embodiment, when the server receives the clearing request, the server determines a target clearing node corresponding to the clearing request, determines whether the target clearing node is the same as a basic clearing node in a preset service alliance chain, if the target clearing node is different from the basic clearing node, the server determines that the clearing node is changed, the server forms a clearing alliance chain based on the target clearing node and the basic clearing node, and the server writes clearing data in the service alliance chain into the clearing alliance chain through the basic clearing node; the target clearing node acquires clearing data in the clearing alliance chain and executes clearing operation to obtain a clearing result, and the embodiment realizes flexible change of the clearing node and can support multi-party clearing; meanwhile, according to the embodiment of the invention, clearing is performed based on the blockchain, the specific interface information of each account checking double-sending is not required to be known, and convenience is provided for both account checking parties.
Further, based on the first embodiment of the block chain based clearing method of the present invention, a second embodiment of the block chain based clearing method of the present invention is presented.
Before step S10 of the first embodiment, the method includes:
and when a transaction request and/or a verification request are received, acquiring service data corresponding to the transaction request and/or verification data corresponding to the verification request.
And carrying out standardization processing on the service data and/or the verification data, and uploading the service data and/or the verification data after the standardization processing to a preset service alliance chain.
When the server receives a transaction request and/or a verification request sent by the transaction node, the server acquires service data (the service data includes but is not limited to commodity quantity, commodity name and purchasing time) corresponding to the transaction request and/or verification data (the verification data includes but is not limited to verification amount, verification date and verification type) corresponding to the verification request.
The server performs standardization processing on the service data and/or the verification data, the server deletes redundant data in the service data and/or the verification data, the server converts the rest of the service data and/or the verification data into a unified format, and the server uploads the service data and/or the verification data after the standardization processing to a preset service alliance chain.
In this embodiment, the server performs standardization processing on service data and verification data sent by the transaction node, and uploads the service data and/or verification data after the standardization processing to a preset service alliance chain, so that the service data in the service alliance chain is more unified and normative.
On the basis of the above, the present embodiment refines step S30 in the first embodiment, and the difference between the present embodiment and the first embodiment is that:
and acquiring the service data and/or the verification data in the service alliance chain through the basic verification node, extracting the verification data of preset dimensionality in the service data and/or the verification data through the basic verification node, and writing the verification data into the verification alliance chain.
The method comprises the steps that a server obtains service data and/or verification data in a service alliance chain through a basic verification node, and the server extracts the service data and/or verification data of preset dimensions in the verification data through the basic verification node, wherein the preset dimensions refer to preset data dimensions, for example, the preset dimensions are as follows: transaction time, transaction account, and transaction amount; after the base clearing node obtains the clearing data, the base clearing node writes the clearing data into the clearing federation chain so that a target clearing node in the clearing federation chain obtains the clearing data and performs the clearing operation.
In this embodiment, after obtaining service data and/or verification data uploaded by a service node, the server performs standardization processing on the service data and/or verification data, and uploads the service data after the standardization processing to a service alliance chain, so that a base clearing node obtains clearing data, and writes the clearing data into the clearing alliance chain, which not only can ensure security of the service data, but also can realize standardization processing of the clearing data.
Further, based on the above embodiment of the blockchain-based clearing method of the present invention, a third embodiment of the blockchain-based clearing method of the present invention is presented.
The present embodiment is a step subsequent to step S40 in the first embodiment, and differs from the first embodiment in that:
and when the completion of clearing is detected, writing the clearing result into the service alliance chain through the basic clearing node so as to enable service nodes in the service alliance chain to check the clearing result.
When the server detects that the clearing is completed, namely, the target clearing node outputs prompt information when the clearing data processing is completed, the server receives the prompt information and determines that the clearing is completed, at the moment, the server acquires a clearing result from a clearing alliance chain through a basic clearing node, and the server writes the clearing result into the service alliance chain by utilizing the basic clearing node so as to enable the service nodes in the service alliance chain to view the clearing result.
In this embodiment, after the server uses the target clearing node to clear the result, the target clearing node writes the clearing result into the clearing federation chain, and then the base clearing node writes the clearing result back into the service federation chain, so that the service nodes in the service federation chain can check the clearing result, and the checking of the clearing result is more convenient.
Further, referring to fig. 3, a fourth embodiment of the blockchain-based clearing method of the present invention is presented based on the above-described embodiment of the blockchain-based clearing method of the present invention.
The present embodiment is a step subsequent to step S10 in the first embodiment, and differs from the first embodiment in that:
and step S50, if the basic clearing node is the same as the target clearing node, acquiring clearing data from the service alliance chain through the basic clearing node, and processing the clearing data through the basic clearing node to obtain a clearing result.
If the basic clearing node is the same as the target clearing node, namely, the server determines that the service node does not replace the clearing node, the service node selects the basic clearing node in the service alliance chain to carry out clearing operation, the server acquires clearing data from the service alliance chain through the basic clearing node, and the clearing data is processed through the basic clearing node to obtain a clearing result.
And step S60, when the clearing completion is detected, the clearing result is sent to the service nodes on the service alliance chain according to a preset on-chain messenger protocol.
When the server detects that the clearing is completed, the server sends the clearing result to the service node through the chain messenger protocol, namely, when the basic clearing node completes the clearing, the basic clearing node publishes the clearing result to the service alliance chain, and the service nodes in the service alliance chain can acquire the clearing result according to the chain messenger protocol of the block chain. In this embodiment, when the server determines that the service node does not replace the clearing node, the server performs the clearing operation through the base clearing node, so that the clearing operation is more convenient.
Referring to fig. 4, an embodiment of the present invention further provides a block chain based clearing apparatus, including:
the request receiving module 10 is configured to determine, when a clearing request is received, a target clearing node corresponding to the clearing request, and determine whether the target clearing node is the same as a basic clearing node in a preset service alliance chain;
a first access module 20, configured to form a clearing federation chain based on the target clearing node and the base clearing node if the target clearing node is different from the base clearing node;
a data writing module 30, configured to obtain, by using the base clearing node, clearing data corresponding to the clearing request in the service federation chain, and write, by using the base clearing node, the clearing data to the clearing federation chain;
a first clearing module 40, configured to obtain, by using the target clearing node, the clearing data in the clearing federation chain, and perform, by using the target clearing node, a clearing operation on the clearing data, to obtain a clearing result.
In one embodiment, the blockchain-based clearing device includes:
and the second access module is used for determining a service node and a basic clearing node corresponding to the service alliance chain creation request when the service alliance chain creation request is received, and forming a preset service alliance chain based on the service node and the basic clearing node.
In one embodiment, the blockchain-based clearing device includes:
the data acquisition module is used for acquiring service data corresponding to the transaction request and/or verification data corresponding to the verification request when the transaction request and/or the verification request are received;
the data uploading module is used for carrying out standardized processing on the service data and/or the verification data and uploading the service data and/or the verification data after standardized processing to a preset service alliance chain;
the data writing module is further configured to obtain the service data and/or the verification data in the service alliance chain through the base clearing node, extract the service data and/or the verification data with preset dimensions in the verification data through the base clearing node, and write the verification data into the verification alliance chain.
In one embodiment, the blockchain-based clearing device includes:
and the first output module is used for writing the clearing result into the service alliance chain through the basic clearing node when the clearing completion is detected, so that the service nodes in the service alliance chain can check the clearing result.
In an embodiment, the blockchain-based clearing device further includes:
the second clearing module is used for acquiring clearing data from the service alliance chain through the basic clearing node if the basic clearing node is the same as the target clearing node, and processing the clearing data through the basic clearing node to obtain a clearing result;
and the second output module is used for sending the clearing result to the service nodes on the service alliance chain according to a preset on-chain messenger protocol when the clearing completion is detected.
The methods performed by the program modules may refer to various embodiments of the blockchain-based clearing method of the present invention, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a server device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (6)

1. A blockchain-based clearing method, applied to a server, the method comprising:
when a service alliance chain creation request is received, determining a service node and a basic clearing node corresponding to the service alliance chain creation request, forming a preset service alliance chain based on the service node and the basic clearing node, wherein the service node and the basic clearing node in the service alliance chain share data with each other according to a block chain data sharing mechanism;
when a transaction request and/or a verification request are received, acquiring service data corresponding to the transaction request and/or verification data corresponding to the verification request, and uploading the service data and/or the verification data to the service alliance chain;
receiving a clearing request triggered by the service node or automatically triggered by the server;
determining a target clearing node corresponding to the clearing request, and judging whether the target clearing node is the same as the basic clearing node in the service alliance chain;
if the target clearing node is different from the base clearing node, a clearing alliance chain is formed based on the target clearing node and the base clearing node; the method comprises the steps of,
acquiring the service data and/or the verification data in the service alliance chain according to the blockchain data sharing mechanism by the basic verification node, deleting the service data and/or redundant data which is irrelevant to verification in the verification data to obtain verification data corresponding to the verification request, and writing the verification data into the verification alliance chain by the basic verification node; the method comprises the steps of,
and acquiring the clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result.
2. The method of claim 1, wherein the steps of obtaining, by the target clearing node, the clearing data in the clearing federation chain, and performing, by the target clearing node, a clearing operation on the clearing data, resulting in a clearing result, comprise:
and when the completion of clearing is detected, writing the clearing result into the service alliance chain through the basic clearing node so as to enable service nodes in the service alliance chain to check the clearing result.
3. The method according to claim 1 or 2, wherein after the step of determining a target clearing node corresponding to the clearing request and determining whether the target clearing node is the same as the base clearing node in the service federation chain, the method comprises:
if the basic clearing node is the same as the target clearing node, acquiring clearing data from the service alliance chain through the basic clearing node, and processing the clearing data through the basic clearing node to obtain a clearing result;
and when the clearing completion is detected, sending the clearing result to the service nodes on the service alliance chain according to a preset on-chain messenger protocol.
4. A blockchain-based clearing device, the blockchain-based clearing device comprising:
the second access module is used for determining a service node and a basic clearing node corresponding to the service alliance chain creation request when the service alliance chain creation request is received, forming a preset service alliance chain based on the service node and the basic clearing node, and sharing data between the service node and the basic clearing node in the service alliance chain according to a block chain data sharing mechanism;
a data acquisition module, configured to acquire service data corresponding to a transaction request and/or verification data corresponding to a verification request when the transaction request and/or the verification request are received,
the data uploading module is used for uploading the service data and/or the verification data to the service alliance chain;
the request receiving module is used for receiving a clearing request triggered by the service node or automatically triggered by the server;
the node judging module is used for determining a target clearing node corresponding to the clearing request and judging whether the target clearing node is the same as the basic clearing node in the service alliance chain or not;
a first access module configured to form a clearing federation chain based on the target clearing node and the base clearing node if the target clearing node is different from the base clearing node;
the data writing module is used for acquiring the service data and/or the verification data in the service alliance chain according to the blockchain data sharing mechanism through the basic verification node, deleting redundant data which is irrelevant to verification in the service data and/or the verification data, obtaining verification data corresponding to the verification request, and writing the verification data into the verification alliance chain through the basic verification node;
the first clearing module is used for acquiring the clearing data in the clearing alliance chain through the target clearing node, and executing clearing operation on the clearing data through the target clearing node to obtain a clearing result.
5. A blockchain-based clearing device, the blockchain-based clearing device comprising: a memory, a processor, and a blockchain-based clearing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the blockchain-based clearing method of any of claims 1 to 3.
6. A computer readable storage medium, characterized in that it has stored thereon a blockchain-based clearing program, which when executed by a processor implements the steps of the blockchain-based clearing method according to any of claims 1 to 3.
CN201910812766.2A 2019-08-29 2019-08-29 Block chain-based clearing method, device, equipment and computer storage medium Active CN110503559B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910812766.2A CN110503559B (en) 2019-08-29 2019-08-29 Block chain-based clearing method, device, equipment and computer storage medium
PCT/CN2020/103051 WO2021036583A1 (en) 2019-08-29 2020-07-20 Blockchain-based clearing method, apparatus and device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910812766.2A CN110503559B (en) 2019-08-29 2019-08-29 Block chain-based clearing method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110503559A CN110503559A (en) 2019-11-26
CN110503559B true CN110503559B (en) 2024-04-09

Family

ID=68590697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910812766.2A Active CN110503559B (en) 2019-08-29 2019-08-29 Block chain-based clearing method, device, equipment and computer storage medium

Country Status (2)

Country Link
CN (1) CN110503559B (en)
WO (1) WO2021036583A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503559B (en) * 2019-08-29 2024-04-09 深圳前海微众银行股份有限公司 Block chain-based clearing method, device, equipment and computer storage medium
CN111667370A (en) * 2020-06-05 2020-09-15 中国银行股份有限公司 Block chain system for social security fee collection and settlement
CN112232963B (en) * 2020-11-23 2024-04-19 深圳前海微众银行股份有限公司 Block chain-based clearing method, device, equipment and computer storage medium
CN112766948B (en) * 2021-01-12 2024-03-26 深圳前海微众银行股份有限公司 Block chain-based clearing method, device, equipment and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194798A (en) * 2017-04-28 2017-09-22 广东网金控股股份有限公司 A kind of bank clearing method based on block chain alliance chain
CN109919654A (en) * 2019-01-23 2019-06-21 深圳壹账通智能科技有限公司 Integral monitoring method, device, equipment and storage medium based on block chain

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9218588B2 (en) * 2004-06-29 2015-12-22 United Parcel Service Of America, Inc. Offline processing systems and methods for a carrier management system
US20170278188A1 (en) * 2016-03-24 2017-09-28 Solution, LLC Pre-clearance trading system and method
CN107563880A (en) * 2017-07-17 2018-01-09 招商银行股份有限公司 Liquidation method, system and computer-readable recording medium
CN108022090B (en) * 2017-12-18 2022-01-18 深圳前海微众银行股份有限公司 Virtual account management method, device, system and readable storage medium
CN110503559B (en) * 2019-08-29 2024-04-09 深圳前海微众银行股份有限公司 Block chain-based clearing method, device, equipment and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194798A (en) * 2017-04-28 2017-09-22 广东网金控股股份有限公司 A kind of bank clearing method based on block chain alliance chain
CN109919654A (en) * 2019-01-23 2019-06-21 深圳壹账通智能科技有限公司 Integral monitoring method, device, equipment and storage medium based on block chain

Also Published As

Publication number Publication date
WO2021036583A1 (en) 2021-03-04
CN110503559A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110503559B (en) Block chain-based clearing method, device, equipment and computer storage medium
CN105530175B (en) Message processing method, device and system
EP2748781B1 (en) Multi-factor identity fingerprinting with user behavior
US20130185806A1 (en) Personal-information transmission/reception system, personal-information transmission/reception method, personal-information provision apparatus, preference management apparatus and computer program
CN109087116A (en) Accumulated point exchanging method, integral transaction system and computer readable storage medium
CN109639719B (en) Identity verification method and device based on temporary identifier
CN110851818A (en) Verification code display method and device, computer equipment and readable storage medium
CN113179282A (en) Method and device for merging account numbers and server
CN109670931A (en) Behavioral value method, apparatus, equipment and the storage medium of loan user
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN103220343A (en) Big data multi-system forwarding method
JP2014523671A (en) Assessing the overall performance of interactive application services
CN105184559A (en) System and method for payment
CN110135190B (en) Data management method, server and computer storage medium
CN110768956B (en) Data service providing method, device, computer equipment and storage medium
CN116776912A (en) Store detection processing method, device, system and computing equipment
KR20180122111A (en) Service and method for providing performance of event planning online with offline
CN107730380B (en) Method, system and server for processing joint account
US20220311766A1 (en) Sensor-based authentication, notification, and assistance systems
CN107613496B (en) Queuing method, system and authentication server
CN113256240B (en) Message processing method and device and server
CN114422586B (en) Event notification method, event notification device, computer equipment and storage medium
US20140351134A1 (en) Registration process
US20120191782A1 (en) Online Location Sharing Through an Internet Service Search Engine
CN114428723A (en) Test system, system test method, related device and storage medium

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