CN109493126A - Integration data processing method and processing device based on block chain - Google Patents

Integration data processing method and processing device based on block chain Download PDF

Info

Publication number
CN109493126A
CN109493126A CN201811256377.8A CN201811256377A CN109493126A CN 109493126 A CN109493126 A CN 109493126A CN 201811256377 A CN201811256377 A CN 201811256377A CN 109493126 A CN109493126 A CN 109493126A
Authority
CN
China
Prior art keywords
integral
sheet
client
data processing
points
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.)
Pending
Application number
CN201811256377.8A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201811256377.8A priority Critical patent/CN109493126A/en
Publication of CN109493126A publication Critical patent/CN109493126A/en
Pending legal-status Critical Current

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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems
    • 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

Abstract

The present invention provides a kind of integration data processing method and processing device based on block chain, the integration data processing methods, comprising: from the received transaction request of application server, the transaction request is sent to the application server by the corresponding processing unit of client;The request classification according to belonging to transaction request distributes to local corresponding processing unit and carries out integration data processing, and the request classification includes: publication sheet, integral dealing and integral access.The integration data of client, sheet information are stored on block chain by the present invention, to ensure that sheet information is not tampered with, ensure the reliability of sheet trade matching.

Description

Integration data processing method and processing device based on block chain
Technical field
The present invention relates to bank data processing technique more particularly to a kind of integration data processing method based on block chain and Device.
Background technique
China integral market experienced the development course that monomer is integrated to General integral.In recent years, bank, telecom operators etc. All kinds of enterprises are all proposed the integral of oneself, it is desirable to attract whereby and customer retaining, the user for enhancing itself are sticky.But for general For general family, for the number of points of single company generally than relatively limited, integral worth is lower, these integrals often do not play assorted Effect.Currently, assisting to look forward to there are also the businessman for passing through joint different industries, different field, different geographical between enterprise Realized between industry the logical product of integral, circulate with it is general, improve the utilization of integral to a certain extent.But these integrals are only It can be used between a limited number of cooperative enterprise, use scope is very limited, can not achieve common-mode.With the product of client Point type is more and more, how to solve the problems, such as to become the task of top priority when numerous integral " scattered, small, cannot use ".
Summary of the invention
The present invention, which implements, provides a kind of integration data processing method and processing device based on block chain, to ensure that sheet is believed Breath is not tampered with, and ensures the reliability of sheet trade matching.
To achieve the goals above, the embodiment of the invention provides a kind of integration data processing method based on block chain, Include:
From the received transaction request of application server, the transaction request is sent to institute by the corresponding processing unit of client State application server;
The request classification according to belonging to transaction request distributes to local corresponding processing unit and carries out integration data processing, institute Stating request classification includes: publication sheet, integral dealing and integral access.
On the one hand, when request classification is integral access, the request classification according to belonging to transaction request is distributed to local correspondence Processing unit carry out integration data processing, comprising:
Integral is stored in, the integral of client is transferred to integral background system from issuer's account;
The balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type and integral Quantity is corresponding.
On the one hand, when request classification is integral access, the request classification according to belonging to transaction request is distributed to local correspondence Processing unit carry out integration data processing, comprising:
Integral is extracted, the integral of client is transferred to issuer's account from integral background system;
The balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type and integral Quantity is corresponding.
On the one hand, when request classification is integral dealing, the request classification according to belonging to transaction request is distributed to local correspondence Processing unit carry out integration data processing, comprising:
According to the sheet that client issues, holding for respective numbers, is reduced from both parties' points account by intelligent contract Integral;
Target integral is increased in the points account of both parties;
The balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type and integral Quantity is corresponding.
On the one hand, when request classification is publication sheet, the request classification according to belonging to transaction request is distributed to local correspondence Processing unit carry out integration data processing, comprising:
The block chain database is retrieved according to the key value of the sheet data stored in block chain database, is met Bring the sheet collection of condition together;
It presets optimal sheet and optimal sheet issuing time stamp is concentrated from the sheet and screens optimal sheet;
Points transfer processing is carried out to successfully optimal sheet is brought together.Fail for system the sheet brought together, sheet It will store into block chain database, storage rule is subscriber-coded and integral coding, number of points and exchange hour stamp pair It answers.
To achieve the goals above, the embodiment of the invention also provides a kind of, and the integration data based on block chain handles dress It sets, comprising:
Transaction request receiving unit, for from the received transaction request of application server, the transaction request to be by client Corresponding processing unit is sent to the application server;
Data processing unit, for the request classification according to belonging to transaction request distribute to local corresponding processing unit into The processing of row integration data, the request classification include: publication sheet, integral dealing and integral access.
On the one hand, the request classification includes: integral deposit, and the data processing unit includes:
First integral shift module, for the integral of client to be transferred to integral background system from issuer's account;
First integral memory module, for storing the balance of points of client to block chain database, storage rule is to use Family coding is corresponding with integral type and number of points.
On the one hand, the request classification includes: that integral extracts, and the data processing unit includes:
The integral of client is transferred to issuer's account from integral background system by second integral shift module;
Second integral memory module stores the balance of points of client to block chain database, and storage rule is user's volume Code is corresponding with integral type and number of points.
On the one hand, the request classification includes: integral dealing, and the data processing unit includes:
Integral reduces module, the sheet for being issued according to client, through intelligent contract from both parties' points account That reduces respective numbers holds integral;
Integral increases module, for increasing to target integral in the points account of both parties;
Third integral memory module, for storing the balance of points of client to block chain database, storage rule is to use Family coding is corresponding with integral type and number of points.
On the one hand, the request classification includes: publication sheet, and the data processing unit includes:
Retrieval module, for retrieving the block chain number according to the key value of the sheet data stored in block chain database According to library, the sheet collection for meeting condition of brining together is obtained;
Sheet screening module concentrates screening most from the sheet for presetting optimal sheet and optimal sheet issuing time stamp Excellent sheet;
Points transfer module, for carrying out points transfer processing to brining successfully optimal sheet together.
Present invention uses the technologies such as encryption and decryption, signature, block chain, and the integration data of client, sheet information are stored in On block chain, to ensure that sheet information is not tampered with, the reliability of sheet trade matching is ensured.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of client;
Fig. 3 is the application server structural schematic diagram of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the block chain group of nodes of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the sheet information management unit of the embodiment of the present invention;
Fig. 6 is that the integral of the embodiment of the present invention buys and sells administrative unit structural schematic diagram;
Fig. 7 is the integral access management cellular construction schematic diagram of the embodiment of the present invention;
Fig. 8 is the integration data processing method flow chart one of the embodiment of the present invention;
Fig. 9 is the integration data processing method flowchart 2 of the embodiment of the present invention;
Figure 10 is the integration data processing method flow chart 3 of the embodiment of the present invention;
Figure 11 is that the integral of the embodiment of the present invention accesses corresponding integration data processing method flow chart;
Figure 12 is the integration data processing method flow chart four of the embodiment of the present invention;
Figure 13 is that the integral of the embodiment of the present invention buys and sells corresponding integration data processing method flow chart;
Figure 14 is the integration data processing method flow chart five of the embodiment of the present invention;
Figure 15 is the corresponding integration data processing method flow chart of publication of the embodiment of the present invention;
Figure 16 is the structural block diagram one of integration data processing unit of the embodiment of the present invention based on block chain;
Figure 17 is the structural block diagram two of integration data processing unit of the embodiment of the present invention based on block chain;
Figure 18 is the structural block diagram three of integration data processing unit of the embodiment of the present invention based on block chain;
Figure 19 is the structural block diagram four of integration data processing unit of the embodiment of the present invention based on block chain;
Figure 20 is the structural block diagram five of integration data processing unit of the embodiment of the present invention based on block chain.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention, as shown in Figure 1, the system (fraction in the application scenarios According to processing system) it include: block chain group of nodes 1, client 2, application server 3, application database 4, wire/wireless interconnection Network 6 and proprietary network 7.
Wherein, client 2 is connect by Wireless/wired network 6 with application server 3, and application server 3 passes through proprietary net Network 7 is connect with application database 4, is connect by proprietary network 7 with block chain group of nodes 1.
After client logs in the integration data processing system of bank by client 2, the transaction of 2 typing client of client is asked It is sent to application server 3 through Wireless/wired network 6 after asking and encrypted to transaction data, being signed, application server 3 is right Transaction data is decrypted, sign test and transaction legitimate verification send out transaction request in 4 store transaction detail of application database It send to block chain group of nodes 1.Block chain group of nodes 1 starts corresponding intelligent contract according to type of transaction, completes integral and deposits Business, sheet and system is taken intelligently to bring business and integral dealing business together.
When type of transaction is integral access business, block chain group of nodes 1 reads the integration data of client, calls integral The integral worth that the integral access service interface that issuer provides is completed transaction system and integrated between issuer shifts.
When type of transaction is sheet business, the basis first of block chain group of nodes 1 is brought together in rule search transaction system Meet the sheet of not trading for condition of brining together, form sheet result set, it is double to meet transaction by each pen hanging Dan Jun in result set at this time The time value of side, to obtain optimal sheet pairing, block chain group of nodes 1 starts binary search, carries out screening to result set, when To order matching sheet provide maximum quantity integral worth or integral worth same case under the sheet time it is earliest when, be System is asserted optimal sheet to be brought together, and block chain group of nodes starts integral worth shift module at this time, completes both parties Integral worth exchange.
When type of transaction is integral dealing business, block chain group of nodes 1 starts integral worth shift module, completes to hand over The integral worth of easy both sides exchanges.
Present invention synthesis has used the technologies such as encryption and decryption, signature, block chain, and the integration data of client, sheet information are deposited Storage is on block chain, it is ensured that sheet information is not tampered with, and ensures the reliability of sheet trade matching.
Client 2 is used for the transaction request data of typing client, is encrypted, is signed to transaction request data, and passed through Internet is interacted with application server 3.Fig. 2 is the structural schematic diagram of client, as shown in Fig. 2, client 2 includes input Request unit 11, encryption/decryption element 12, signature unit 13, sheet request unit 14, integral dealing request unit 15 and integral are deposited Take request unit 16.It, can be according to the class of transaction request after inputting the data of the input of request unit 11 and verification user's submission Not (including publication sheet, integral dealing, integral access), transfer to respectively sheet request unit 14, integral dealing request unit 15, Integral access request unit 16 is handled.
Specifically, input request unit 11 is responsible for the transaction data of input and verification user.
Encryption/decryption element 12 is responsible for encrypting the transaction data that input request unit 11 inputs, and application server 3 data returned are decrypted.
Signature unit 13 is responsible for the private key encryption by the summary info of transaction data with client, together with transaction data original text It is sent to application server 3.The summary info includes the information such as integral account, integral coding, balance of points.
Sheet request unit 14 is responsible for the sheet request that client issues being sent to application server 3.
Integral dealing request unit 15 is responsible for the sheet dealing request that client initiates being sent to application server 3.
Integral access request unit 16 is responsible for that the integral that client initiates is stored in or is extracted to request to be sent to application server 3。
Application server 3 records transaction log for realizing the decryption of transaction data, sign test and legitimacy verifies, and leads to Proprietary network 7 is crossed to interact with block chain group of nodes 1.
Fig. 3 is the application server structural schematic diagram of the embodiment of the present invention, as shown in figure 3, application server 3 includes safety Administrative unit 31, signature management unit 32, rights management unit 33 and transaction log storage unit 34.
Security managing unit 31 is responsible for transaction data encryption and decryption.
Signature management unit 32 is responsible for sign test, is verified using the public key of client to signature.
Rights management unit 33 is responsible for being arranged and verifies client to the operating right of transaction.
Transaction log storage unit 34 is responsible for record transaction log, and application database 4 is called to complete data storage.
Application database 4 passes through proprietary network 7 for data such as store transaction detail, log, key, user informations It is interacted with application server 3.
Block chain group of nodes 1 completes integral access, sheet and intelligence and brings together, integrates dealing for handling transaction request Etc. business processings.Block chain group of nodes 1 includes multiple nodes (each node corresponds to different alliance sides), each node deployment A set of server.In practical applications, the number of nodes that block chain group of nodes 1 is disposed is at least 4.One application server 3 It can connect any one or more block chain nodes, multiple application servers can also connect same block chain node.
Wireless/wired network 6 is that the wireless communication networks provided by operator or INTERNET communication network are counted According to communication.Proprietary network 7 is integration data processing system internal private network, does not connect with the external world, is realized by security strategy Tertiary-structure network guarantees safety, and the dedicated network of different alliance sides is not connected.
Fig. 4 is the structural schematic diagram of the block chain group of nodes of the embodiment of the present invention, such as Fig. 4, each block chain node packet The access unit 51 containing service, sheet information management unit 52, integral dealing administrative unit 53, integral access management unit 54.
Service access unit 51 is used to receive the transaction request of the forwarding of application server 3 and is verified, according to request Classification (including publication sheet, integral dealing, integral access), transfers to sheet information management unit 52, integral dealing management respectively Unit 53, integral access management unit 54 are handled.
Sheet information management unit 52 is used to handle the sheet request of client's initiation, and meets in Search Transactions system and bring together The sheet of not trading of condition completes the order matching of sheet intelligence.
Integral dealing administrative unit 53 is used to handle the sheet dealing request initiated by hand by client, and completes both parties Integral worth transfer.
Integral access management unit 54, which is used to handle, is supplemented with money by the integral that client initiates, extracts request, is completed client and is being handed over Integral worth between easy system and integral issuer shifts.
Fig. 5 is the structural schematic diagram of the sheet information management unit of the embodiment of the present invention, as shown in figure 5, sheet message tube Reason unit 52 intelligently brings module 522, integral worth shift module 523, sheet together comprising sheet requests verification module 521, sheet Information storage module 524, sheet information inquiry module 525.
Sheet requests verification module 521 is used to verify the legitimacy of sheet data, and starts sheet and intelligently bring 522 together.
Sheet intelligently brings module 522 together for meeting the sheet of not trading for condition of brining together in Search Transactions system, and presses and scoop up Normally screen optimal sheet pairing.When system matches are to optimal sheet, start integral worth shift module 523, it is complete It is exchanged at the integral worth of both parties, for example, A kind integral 100 can change B kind integral 200 into.
Integral worth shift module 523 realizes both parties for being interchangeable the integral assets of sheet both parties Hold integral reduce, target integral increase by two operation, after the completion start sheet information storage module 524.
Sheet information storage module 524 is used for store transaction data, and the data completed between each node of block chain are synchronous.
Fig. 6 is that the integral of the embodiment of the present invention buys and sells administrative unit structural schematic diagram, as shown in fig. 6, integral dealing management Unit 53 includes to hold integral to reduce module 531, target integral increase module 532, transaction record memory module 533, transaction note Record enquiry module 534.
Wherein, hold integral and reduce 531 and hold integral for reduce respective numbers from both parties' points account.
Target integral increases by 532 for increasing to target integral in the points account of both parties, does not have under customer name Points account is then created when the integral type.
Transaction record storage 533 is used for store transaction detail.
Transaction record inquiry 534 is for providing transaction detail query service.
Fig. 7 is the integral access management cellular construction schematic diagram of the embodiment of the present invention, as shown in fig. 7, integral access management Unit 54 includes integral deposit processing 541, integral extraction process 542, integration information storage 543, integration information inquiry 544.
Integral deposit processing 541 calls integral issuer to provide for receiving the integral deposit request of client's initiation The integral that client holds is transferred to transaction system of the invention from integral issuer's account by integral deposit interface.
The integral that integral extraction process 542 is used to receive client's initiation extracts request, and integral issuer is called to provide Integral extracts interface, and the integral that client holds is transferred to integral issuer's account from transaction system of the invention.
Integration information storage 543 is for the integration data of client to be stored in block chain database.
Integration information inquiry 544 is for providing the integration information query service of client.
For block chain group of nodes 1, Fig. 8 provides a kind of integration data processing method based on block chain, such as Fig. 8 institute Show, which includes:
S801: from the received transaction request of application server, the transaction request is sent out by the corresponding processing unit of client It send to the application server;
The transaction request includes transaction data, by client input request unit input, transfer to sheet request unit 14, Integral dealing request unit 15 or integral access request unit 16 carry out legitimacy verifies, are then forwarded to application server 3.
S802: the request classification according to belonging to transaction request is distributed to local corresponding processing unit and is carried out at integration data Reason, request classification include: publication sheet, integral dealing and integral access.
For different request classifications, due to processing method difference, in the server by each node of block chain group of nodes 1 Different processing units are handled.
Using the above method, present invention can assure that sheet information is not tampered with, the reliability of sheet trade matching is ensured.
Integral access includes that integral deposit and integral extract, and integral is stored in, as shown in figure 9, may include walking as follows It is rapid:
S901: the integral of client is transferred to integral background system from issuer's account;
Issuer is enterprises and institutions, such as airline etc. integrates the integral backstage that background system is generally bank System, such as the integral background system of industrial and commercial bank, integral background system of Construction Bank etc..
S902: the balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type And number of points is corresponding.
In one embodiment, integral can take storage rule as shown in table 1 below to store to block chain database.
Table 1
U1 Pa Na
U1 Pb Nb
Block chain database is key-value type database, and in table 1, key value includes U1, Pa, Na, the Pa class of U1 user Number of points is Na, and Pb class number of points is Nb.
Integral is extracted, as shown in Figure 10, may include steps of:
S1001: the integral of client is transferred to issuer's account from integral background system;
S1002: the balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type And number of points is corresponding.The storage rule of block chain database is as listed in Table 1.
Figure 11 is that the integral of the embodiment of the present invention accesses corresponding integration data processing method flow chart, as shown in figure 11, This method comprises the following steps:
Step S1101: the transaction request of the input request unit 11 input client of client 2 simultaneously calls integral access request Unit 16, the information such as 16 pairs of integral access quantity of integral access request unit carry out legitimacy verifies, by the transaction request of client Application server 3 is sent to through internet 6.
Step S1102: transaction data is decrypted in the security managing unit 31 of application server 3, obtains transaction data In plain text, signature management unit 32 is then called.
Step S1103: signature management unit 32 carries out integrity checking to transaction data, to confirm that transaction data is not usurped Change, verification calls rights management unit 33 after passing through.
Step S1104: rights management unit 33 verifies the transactional operation permission of user, by rear calling through proprietary network 7 Call the block chain host node of block chain link point group 1.
Step S1105: the integral access request access 513 of service access unit 51 receives the integral access request of client, And type (integral deposit, integral extraction) according to different requests, the integral deposit of integral access management unit 54 is called respectively Processing 541 and integral extraction process 542.
Step S1106: it is handled according to transaction request type.If transaction request type is integral deposit, integral deposit Processing 541 call it is each integral issuer provide integral be stored in service interfaces, the integral that client is held from integral issuing machine Structure (businessman: such as airline) account is transferred to integral transaction system of the invention.If transaction request type is that integral extracts, product The integral that point extraction process 542 calls each integral issuer to provide extracts service interface, and the integral that client is held is from this hair Bright transaction system is transferred to integral issuer's account.
Step S1107: integration information storage 543 will be in the balance of points top table deposit block chain database of client. Integral of the invention is stored using block chain structure, key-value type database specifically can be used, as shown in table 1.
Integration information storage 543 combines the P2P communication technology and common recognition algorithm, stores client in the different nodes of block chain Number of points, to realize can not distorting for integration information.Entire common recognition is divided into four-stage.
Stage one, sheet information management unit 52 (can temporarily select one to be used as main section to the host node of block chain element Point) send integration information storage request.
Stage two, host node distribute a sequence number n to the request received, then mass-send pre-preparation to every other node Message, the format of pre-preparation message are<<PRE-PREPARE, v, n, d>, m>, v is view number here, and m is that client is sent Request message, d is the abstract of request message m.Only meet the following conditions, other nodes can just receive a pre-preparation and disappear Breath: the signature of 1. requests and pre-preparation message is correct, and d is consistent with the abstract of m.2. active view number is v.3. the node Never receive serial number n in view v but make a summary d different message ms.4. the serial number n of pre-preparation message must be in waterline (watermark) between bound h and H.Meaning existing for waterline is to prevent a failure node from using a very big sequence Number consumption serial number space.
In the stage three, other nodes are sent to all nodes (in addition to this node) prepares message<PREPARE, v, n, and d, i>, and And by pre-preparation message and prepares message oneself message logging is written.Receive to prepare message to need the condition met to include main section All nodes including point are after receiving preparation message, and whether correct to the signature of message, whether view number is consistent, and Whether message sequence number, which meets waterline, limits these three conditions and is verified, this is then prepared message write-in if the verification passes and is disappeared It ceases in log.
Stage four, when (m, v, n, i) condition is genuine, node i general<COMMIT, v, n, D (m), i>to other copies Node broadcasts have then entered the stage four.The accept confirmation condition of message of each stage is: 1. signatures are correct.2. message The active view of view number and node number is consistent.3. the serial number n of message meets waterline condition, between h and H.Stage four It is genuine condition that committed-local (m, v, n, i) is completed in the confirmation of this node are as follows: prepared (m, v, n, i) is true, and It is consistent with pre-preparation message that i has received 2f+1 confirmation (including itself).After the completion of confirmation, each node disjoint is complete At the storage of sheet information.
Integral is bought and sold, as shown in figure 12, may include steps of:
S1201: the sheet issued according to client reduces respective numbers from both parties' points account by intelligent contract Hold integral;
S1202: target integral is increased in the points account of both parties;
S1203: the balance of points of the client is stored to block chain database, storage rule is subscriber-coded and integral Coding, number of points and exchange hour stamp correspond to.
For example, certain sheet is that integral A exchanges integral B, block chain database can be using k-v type database, in the present invention It is as shown in table 2 to the key value design rule of storage sheet data.
Table 2
PREX U Pa Pb Na Nb T
Wherein " PREX " is key value prefix, can be used for distinguishing different type of transaction or transaction categories;U is Customs Assigned Number; Pa, Pb are respectively the unified integral coding for integrating A, integral B, are all k;Na be client possess integral A quantity (it is N total, no It is left when N sufficient to mend 0);Nb be client need the target exchanged integrate B quantity (it is N total, it is left when less than N to mend 0);T is that publication is hung Single exchange hour stamp.
Figure 13 is that the integral of the embodiment of the present invention buys and sells corresponding integration data processing method flow chart, as shown in figure 13, This method comprises the following steps:
Step S1301: input request unit 11 inputs the transaction request of client and calls integral dealing request unit 15, product Divide dealing 15 pairs of integral trading volumes of request unit, client to hold number of points and carry out legitimacy verifies, the transaction of client is asked It asks and is sent to application server 3 through internet 6.
Step S1302: transaction data is decrypted in the security managing unit 31 of application server 3, obtains transaction data In plain text, signature management unit 32 is then called.
Step S1303: signature management unit 32 carries out integrity checking to transaction data, to confirm that transaction data is not usurped Change, verification calls rights management unit 33 after passing through.
Step S1304: rights management unit 33 verifies the transactional operation permission of user, by rear calling through proprietary network 7 Call the block chain host node of block chain link point group 1.
Step S1305: the integral that the integral dealing request access 512 of service access unit 51 receives client buys and sells request, Call integral dealing administrative unit 53.
Step S1306: integral dealing administrative unit 53 starts the integral worth transfer of both parties.Tool is exemplified below Body process flow:
The sheet of client U1 publication is (NA, MB), i.e. U1 is integrated with M B of N number of A accumulated point exchanging, as the B that client U2 possesses Number of points can initiate dealing request to the sheet that U1 is issued when being more than or equal to M.Block chain integral is realized by intelligent contract Value Transfer processing, detailed process are as follows: reduce first and hold 531 couples of client U1 of integral and reduce N number of A integral, client U2 is detained Subtract M B integral, then increase target integrates 532 couples of client U1 and increases M B integral, increases N number of A integral, client to client U2 U1 and client U2 completes the value Transfer integrated to A, B.
Step S1307: transaction record storage 533 saves transaction details information, and by integration information storage 543 by client's Balance of points is stored in block chain database.Integration information storage 543 combines the P2P communication technology and common recognition algorithm, in different sections The number of points of client is stored in point, to realize can not distorting for integration information.
Publication sheet may include steps of as shown in figure 14:
S1401: the block chain database is retrieved according to the key value of the sheet data stored in block chain database, is obtained The sheet collection of the condition of brining together must be met;
S1402: presetting optimal sheet and optimal sheet issuing time stamp is concentrated from the sheet and screens optimal sheet;
S1403: points transfer processing is carried out to successfully optimal sheet is brought together.
Figure 15 is the corresponding integration data processing method flow chart of publication of the embodiment of the present invention, as shown in figure 13, the party Method includes the following steps:
Step S1501: input request unit 11 receives the transaction request of client and calls sheet request unit 14, and sheet is asked It asks unit 14 to hold number of points to sheet number of points, client and carries out legitimacy verifies, by the transaction request of client through interconnecting Net 6 is sent to application server 3.
Step S1502: transaction data is decrypted in the security managing unit 31 of application server 3, obtains transaction data In plain text, signature management unit 32 is then called.
Step S1503: signature management unit 32 carries out integrity checking to transaction data, to confirm that transaction data is not usurped Change, verification calls rights management unit 33 after passing through.
Step S1504: rights management unit 33 verifies the transactional operation permission of user, by rear calling through proprietary network 7 Call the block chain host node of block chain link point group 1.
Step S1505: the sheet request access 511 of service access unit 51 receives the sheet request of client, calls sheet Information management unit 52.
Step S1506: after sheet requests verification 521 completes transaction legitimate verification, sheet intelligently brings 522 activation systems together Bring process together.The realization process that sheet is brought together is described in detail in citing below:
Such as certain sheet is that integral A exchanges integral B, block chain of the invention can be using k-v type database, in the present invention It is as shown in table 3 to the key value design rule of storage sheet data.
Table 3
PREX U Pa Pb Na Nb T
Wherein, " PREX " is key value prefix, can be used for distinguishing different type of transaction or transaction categories;Pa, Pb are respectively The unified integral coding for integrating A, integral B, is all k;Na is integral A quantity (N total, left benefit when less than N that client possesses 0);Nb be client need the target exchanged integrate B quantity (it is N total, it is left when less than N to mend 0);T is when issuing the transaction of sheet Between stab.Both parties are related to client U1 and client U2, and before client U2 issues transaction sheet request, system is existing by client U1 The sheet of east aviation publication is (A110000, B15000), i.e., the pen hanging list is that A1 integral A exchanges B1 integral B.Work as visitor When family U2 industrial and commercial bank publication transaction sheet (B2, A2), i.e., A2 integral A is exchanged with B2 integral B, system carries out intelligence to the pen hanging list It can bring together.When meeting A1 >=A2 and B2 >=B1, meet the condition that sheet is brought together, searches for meet step by step by following rules and scoop up The optimal sheet of conjunction condition:
Step is 1.: being (PREX+Pa+Pb+A2+MinJ+MinT, PREX+Pa+Pb+MaxJ+B2+MaxT) by key value range Range retrieval block chain k-v database forms result set S, and all sheets of result set S are all to meet to bring condition together at this time. Wherein PREX is key value prefix, and it is all k, A2 needs for client U2 that Pa, Pb, which are respectively the unified integral coding for integrating A, integral B, (N total, 0), MinJ is the integral of the publication sheet of default to left benefit to the quantity of the target to be exchanged integral A when less than N (N total, 0), MinT is timestamp minimum value (guaranteeing uniqueness) to left benefit to quantity minimum value, and MaxJ sets for system when less than N (N total, 0), B2 is the quantity for the integral B that client possesses to left benefit to the number of points maximum value of fixed publication sheet when less than N (N total, 0), MaxT is timestamp maximum value to left benefit when less than N.The time of T publication sheet
Step is 2.: search result set S one by one screens optimal sheet.Assuming that: optimal sheet is (Au, Bu), and publication is hung Single timestamp is Tu, and the initial value of optimal sheet is first sheet of result set S.Current sheet is (Acur, Bcur), hair The timestamp of cloth sheet is Tcur, and as Acur > Au, (Au, Bu)=matching works as Acur=at (Acur, Bcur), Tu=Tcur When Au, compare the exchange hour stamp of sheet (Au, Bu) and sheet (Acur, Bcur), when Tcur first sends out < Tu when, (Au, Bu)= (Acur, Bcur), Tu=Tcur.After complete result set S of search, you can get it for trade matching optimal sheet (Au, Bu)。
Step S1507: integral worth transfer processing 523 shifts the integral worth of client U1 and client U2.Specifically Processing are as follows: integral worth transfer processing 523 first reduce holding integration operation, A1 A integral is reduced to client U1, to visitor Family U2 reduces B2 B integral, then carries out increasing target integration operation, increases B2 B integral to client U1, increases client U2 A1 A integral.Client U1 possesses the integral A of A1 quantity before trade matching, and client U2 possesses the integral B of B2 quantity, trade matching Client U1 possesses the integral B of B2 quantity afterwards, and client U2 possesses the integral A of A1 quantity.
Step S1508: sheet information storage 524 saves transaction details information, and will bring friendship together by integration information storage 543 The integral B quantity B2 that client U1 possesses after easily, the integral A quantity A that client U2 possesses are stored in block chain database.Integration information Storage 543 combines the P2P communication technology and common recognition algorithm, and the number of points of client is stored in different nodes, to realize integral letter Breath can not be distorted.
Present invention uses the technologies such as encryption and decryption, signature, block chain, and the integration data of client, sheet information are stored in On block chain, to ensure that sheet information is not tampered with, the reliability of sheet trade matching is ensured.
Based on the same inventive concept, the embodiment of the present application also provides a kind of integration data processing unit, it can be used for reality Method described in existing above-described embodiment, as described in the following examples.The original solved the problems, such as due to integration data processing unit Reason is similar to integration data processing method, therefore the implementation of integration data processing unit may refer to integration data processing method Implement, overlaps will not be repeated.Used below, the software of predetermined function may be implemented in term " unit " or " module " And/or the combination of hardware.Although system described in following embodiment is preferably realized with software, hardware or soft The realization of the combination of part and hardware is also that may and be contemplated.
Figure 16 is the structural block diagram of integration data processing unit of the embodiment of the present invention based on block chain, as shown in figure 16, Include:
Transaction request receiving unit 1601, for from the received transaction request of application server, the transaction request to be by visitor The corresponding processing unit in family end is sent to the application server;
Data processing unit 1602 distributes single to local corresponding processing for the request classification according to belonging to transaction request Member carries out integration data processing, and the request classification includes: publication sheet, integral dealing and integral access.
In one embodiment, as shown in figure 17, the request classification includes: integral deposit, and data processing unit 1501 includes:
First integral shift module 1701, for the integral of client to be transferred to integral backstage system from issuer's account System;
First integral memory module 1702, for storing the balance of points of client to block chain database, storage rule It is subscriber-coded corresponding with integral type and number of points.
In one embodiment, as shown in figure 18, the request classification includes: that integral extracts, and the data processing unit includes:
The integral of client is transferred to issuer's account from integral background system by second integral shift module 1801;
Second integral memory module 1802 stores the balance of points of client to block chain database, and storage rule is to use Family coding is corresponding with integral type and number of points.
In one embodiment, as shown in figure 19, the request classification includes: integral dealing, and the data processing unit includes:
Integral reduces module 1901, the sheet for being issued according to client, integrates account from both parties by intelligent contract That respective numbers are reduced in family holds integral;
Integral increases module 1902, for increasing to target integral in the points account of both parties;
Third integral memory module 1903, for storing the balance of points of the client to block chain database, storage Rule is subscriber-coded corresponding with integral coding, number of points and exchange hour stamp.
In one embodiment, as shown in figure 20, the request classification includes: publication sheet, and the data processing unit includes:
Retrieval module 2001, for retrieving the block according to the key value of the sheet data stored in block chain database Chain database obtains the sheet collection for meeting condition of brining together;
Sheet screening module 2002 is concentrated from the sheet and is sieved for presetting optimal sheet and optimal sheet issuing time stamp Select optimal sheet;
Points transfer module 2003, for carrying out points transfer processing to brining successfully optimal sheet together.
Present invention uses the technologies such as encryption and decryption, signature, block chain, and the integration data of client, sheet information are stored in On block chain, to ensure that sheet information is not tampered with, the reliability of sheet trade matching is ensured.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specific embodiment is applied in the present invention, and principle and implementation of the present invention are described, above embodiments Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of integration data processing method based on block chain characterized by comprising
From the received transaction request of application server, the transaction request is sent to described answer by the corresponding processing unit of client Use server;
The request classification according to belonging to transaction request distributes to local corresponding processing unit and carries out integration data processing, described to ask Seeking classification includes: publication sheet, integral dealing and integral access.
2. integration data processing method according to claim 1, which is characterized in that when request classification is integral access, root It distributes according to request classification belonging to transaction request to local corresponding processing unit and carries out integration data processing, comprising:
Integral is stored in, the integral of client is transferred to integral background system from issuer's account;
The balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type and number of points It is corresponding.
3. integration data processing method according to claim 1, which is characterized in that when request classification is integral access, root It distributes according to request classification belonging to transaction request to local corresponding processing unit and carries out integration data processing, comprising:
Integral is extracted, the integral of client is transferred to issuer's account from integral background system;
The balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type and number of points It is corresponding.
4. integration data processing method according to claim 1, which is characterized in that when request classification is integral dealing, root It distributes according to request classification belonging to transaction request to local corresponding processing unit and carries out integration data processing, comprising:
According to the sheet that client issues, that reduces respective numbers from both parties' points account by intelligent contract holds product Point;
Target integral is increased in the points account of both parties;
The balance of points of client is stored to block chain database, storage rule is subscriber-coded and integral type and number of points It is corresponding.
5. integration data processing method according to claim 1, which is characterized in that when request classification is publication sheet, root It distributes according to request classification belonging to transaction request to local corresponding processing unit and carries out integration data processing, comprising:
The block chain database is retrieved according to the key value of the sheet data stored in block chain database, obtains to meet and bring together The sheet collection of condition;
It presets optimal sheet and optimal sheet issuing time stamp is concentrated from the sheet and screens optimal sheet;
Points transfer processing is carried out to successfully optimal sheet is brought together.
6. a kind of integration data processing unit based on block chain characterized by comprising
Transaction request receiving unit, for from the received transaction request of application server, the transaction request to be corresponded to by client Processing unit be sent to the application server;
Data processing unit is distributed to local corresponding processing unit for the request classification according to belonging to transaction request and is accumulated Divided data processing, the request classification include: publication sheet, integral dealing and integral access.
7. integration data processing unit according to claim 6, which is characterized in that the request classification includes: that integral is deposited Enter, the data processing unit includes:
First integral shift module, for the integral of client to be transferred to integral background system from issuer's account;
First integral memory module, for storing the balance of points of client to block chain database, storage rule is user's volume Code is corresponding with integral type and number of points.
8. integration data processing unit according to claim 6, which is characterized in that the request classification includes: that integral mentions It takes, the data processing unit includes:
The integral of client is transferred to issuer's account from integral background system by second integral shift module;
Second integral memory module stores the balance of points of client to block chain database, storage rule be it is subscriber-coded with Integral type and number of points are corresponding.
9. integration data processing unit according to claim 6, which is characterized in that the request classification includes: that integral is bought It sells, the data processing unit includes:
Integral reduces module, and the sheet for being issued according to client is reduced from both parties' points account by intelligent contract Respective numbers hold integral;
Integral increases module, for increasing to target integral in the points account of both parties;
Third integral memory module, for storing the balance of points of client to block chain database, storage rule is user's volume Code is corresponding with integral type and number of points.
10. integration data processing unit according to claim 6, which is characterized in that the request classification includes: that publication is hung Single, the data processing unit includes:
Retrieval module, for retrieving the block chain database according to the key value of the sheet data stored in block chain database, Obtain the sheet collection for meeting condition of brining together;
Sheet screening module is concentrated from the sheet for presetting optimal sheet and optimal sheet issuing time stamp and screens optimal extension It is single;
Points transfer module, for carrying out points transfer processing to brining successfully optimal sheet together.
CN201811256377.8A 2018-10-26 2018-10-26 Integration data processing method and processing device based on block chain Pending CN109493126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811256377.8A CN109493126A (en) 2018-10-26 2018-10-26 Integration data processing method and processing device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811256377.8A CN109493126A (en) 2018-10-26 2018-10-26 Integration data processing method and processing device based on block chain

Publications (1)

Publication Number Publication Date
CN109493126A true CN109493126A (en) 2019-03-19

Family

ID=65692777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811256377.8A Pending CN109493126A (en) 2018-10-26 2018-10-26 Integration data processing method and processing device based on block chain

Country Status (1)

Country Link
CN (1) CN109493126A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292173A (en) * 2020-02-21 2020-06-16 卓盛科技(广州)有限公司 Point bidding method and device, computer equipment and storage medium
CN112529626A (en) * 2020-12-15 2021-03-19 深圳市快付通金融网络科技服务有限公司 Method, device and equipment for clearing integral data and storage medium
CN113034192A (en) * 2021-03-31 2021-06-25 中国科学技术大学 Block chain-based point transaction method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783000A (en) * 2009-12-10 2010-07-21 重庆文迅网络科技有限公司 Metal material electronic trading system with trade matching function
CN108537627A (en) * 2018-03-22 2018-09-14 北京亿生生网络科技有限公司 A kind of copyright trading method and system based on block chain technology
CN108549965A (en) * 2018-03-02 2018-09-18 深圳市元征科技股份有限公司 Data processing method and data processing platform (DPP), server
CN108647958A (en) * 2018-03-23 2018-10-12 北京大学深圳研究生院 A kind of digital asset method of commerce and system based on block chain
CN111325533A (en) * 2019-12-31 2020-06-23 深圳大学 Decentralized transaction method, decentralized transaction system and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783000A (en) * 2009-12-10 2010-07-21 重庆文迅网络科技有限公司 Metal material electronic trading system with trade matching function
CN108549965A (en) * 2018-03-02 2018-09-18 深圳市元征科技股份有限公司 Data processing method and data processing platform (DPP), server
CN108537627A (en) * 2018-03-22 2018-09-14 北京亿生生网络科技有限公司 A kind of copyright trading method and system based on block chain technology
CN108647958A (en) * 2018-03-23 2018-10-12 北京大学深圳研究生院 A kind of digital asset method of commerce and system based on block chain
CN111325533A (en) * 2019-12-31 2020-06-23 深圳大学 Decentralized transaction method, decentralized transaction system and computer equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292173A (en) * 2020-02-21 2020-06-16 卓盛科技(广州)有限公司 Point bidding method and device, computer equipment and storage medium
CN112529626A (en) * 2020-12-15 2021-03-19 深圳市快付通金融网络科技服务有限公司 Method, device and equipment for clearing integral data and storage medium
CN113034192A (en) * 2021-03-31 2021-06-25 中国科学技术大学 Block chain-based point transaction method and device
CN113034192B (en) * 2021-03-31 2023-09-01 中国科学技术大学 Block chain-based point transaction method and device

Similar Documents

Publication Publication Date Title
AU2020261982B2 (en) Extracting data from a blockchain network
JP6995762B2 (en) Cryptographic methods and systems for the secure extraction of data from the blockchain
CN107147735B (en) Distributed account book system based on hierarchical structure
CN109102299A (en) Resource transfers data managing method, device and storage medium
EP4120150A1 (en) Calculation method for vertical federated learning, apparatus, device, and medium
CN107995120A (en) Construct the method and multi-tiling catenary system of multi-tiling chain
CN109691016A (en) Distributing real time system and Verification System
CN110032571A (en) Business flow processing method, apparatus, storage medium and calculating equipment
JP2019508950A (en) Data transfer control method and system based on integrated block chain
KR101876674B1 (en) Method of managing common account using block chain and system performing the same
CN109493126A (en) Integration data processing method and processing device based on block chain
Yadav Blockchain Security
CN110502927A (en) A kind of information processing method and relevant apparatus
CN110084594A (en) A kind of block chain method of commerce and device by lightning network
CN114978638B (en) Block chain cross-chain supervision method based on shared node
CN108446976A (en) A kind of common reserve fund transfer method, computer readable storage medium and terminal device
CN108764902A (en) Method, node and block catenary system for storing data
CN106022706A (en) Holographic presentation system of E-contract main body and correlation execution process information
CN109272311A (en) A kind of across chain flogic system based on digital wallet
CN112600830B (en) Service data processing method and device, electronic equipment and storage medium
CN110210976A (en) A kind of method of commerce and its equipment based on block chain
Bu et al. Cross hyperledger fabric transactions
CN113643032B (en) Information processing method, device and data management system based on block chain
CN109118220A (en) For handling the method, apparatus and storage medium of affairs in distributed network
CN114020847A (en) Network resource sharing method based on block chain technology

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190319

RJ01 Rejection of invention patent application after publication