CN111369355A - Transaction data processing method and device based on alliance chain - Google Patents

Transaction data processing method and device based on alliance chain Download PDF

Info

Publication number
CN111369355A
CN111369355A CN201811600099.3A CN201811600099A CN111369355A CN 111369355 A CN111369355 A CN 111369355A CN 201811600099 A CN201811600099 A CN 201811600099A CN 111369355 A CN111369355 A CN 111369355A
Authority
CN
China
Prior art keywords
data
transaction
marketing
node
privacy data
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
CN201811600099.3A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201811600099.3A priority Critical patent/CN111369355A/en
Publication of CN111369355A publication Critical patent/CN111369355A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Abstract

The invention discloses a transaction data processing method and device based on a alliance chain, which are used for improving the security of transaction data. The method comprises the following steps: obtaining first transaction privacy data in the marketing business, wherein the first transaction privacy data comprise identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data are used for representing transaction events related to the first marketing participant in the marketing business; performing first hash processing on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data; processing the first hash value and the node identifier of the current release node to obtain first uplink transaction data; and performing uplink processing on the first uplink transaction data so as to distribute the first uplink transaction data to the alliance chain.

Description

Transaction data processing method and device based on alliance chain
Technical Field
The invention relates to the technical field of alliance chains, in particular to a transaction data processing method and device based on alliance chains.
Background
In recent years, with the continuous development of mobile internet, the alliance chain technology gradually enters the visual field of people, and the use of the alliance chain technology can greatly help to improve the efficiency of justice, settlement and clearing business, value switching network and the like in an industry chain, so that users use the alliance chain technology in the management of marketing business. However, in the prior art, all nodes in the federation chain can view information on the chain, and if all the information is uplinked in the form of plaintext data, all the nodes in the federation chain can view the information, so that the requirement of privacy protection between the nodes in the federation chain is not met.
It can be seen that there is a problem in the prior art that privacy protection exists in the federation chain-based transaction data, that is, the privacy security of the federation chain-based transaction data in the prior art is low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing transaction data based on a alliance chain, which are used for improving the security of the transaction data.
In a first aspect, a federation chain-based transaction data processing method is provided, the method including:
obtaining first transaction privacy data in a marketing business, wherein the first transaction privacy data comprises identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data is used for representing a transaction event related to the first marketing participant in the marketing business;
performing first hash processing on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data;
processing the first hash value and the node identifier of the current release node to obtain first uplink transaction data;
and performing uplink processing on the first uplink transaction data so as to distribute the first uplink transaction data to the alliance chain.
Optionally, if the first marketing participant corresponding to the current publishing node is a supplier, the first transaction privacy data includes at least one of supplier identity information, supplier bank account information, supplier contact information, buyer contact information, order product quantity data, order product unit price data, order product total amount data, and marketer contribution amount data; alternatively, the first and second electrodes may be,
if the first marketing participant corresponding to the current publishing node is a buyer, the first transaction privacy data comprises at least one of buyer identity information, buyer contact information, purchased product information and purchased product quantity data; alternatively, the first and second electrodes may be,
and if the first marketing participant corresponding to the current release node is a marketer, the first transaction privacy data comprises at least one of identity information of the marketer, job number information of the marketer, bank account information of the marketer and proportional data of the marketer for drawing funds.
Optionally, obtaining first transaction privacy data in the marketing service includes:
receiving second transaction privacy data sent by a first other publishing node, wherein the second transaction privacy data comprises identity information of a second marketing participant corresponding to the first other publishing node and/or second marketing data, and the second marketing data is used for representing a transaction event associated with the second marketing participant in the marketing service;
determining the first transaction privacy data according to the second transaction privacy data.
Optionally, determining the first transaction privacy data according to the second transaction privacy data includes:
determining order demand information of a second marketing participant corresponding to the first other publishing node according to the second marketing data in the second transaction privacy data, wherein the order demand information comprises product information and demander information;
and processing the identity information of the first marketing participant corresponding to the current publishing node, the identity information of the second marketing participant corresponding to the first other publishing node and the order demand information to determine the first transaction privacy data.
Optionally, the receiving second transaction privacy data sent by the first other publishing node includes:
sending a first request to the first other publishing node, where the first request carries the node identifier of the current publishing node, and the first request is used to request the second transaction privacy data from the first other publishing node;
and receiving the second transaction privacy data sent by the first other publishing node through a predetermined data transmission protocol.
Optionally, before determining the first transaction privacy data according to the second transaction privacy data, the method further includes:
performing third hash processing on the second transaction privacy data to obtain a hash value to be verified corresponding to the second transaction privacy data;
acquiring second uplink transaction data corresponding to the first other publishing node from the alliance chain, wherein the second uplink transaction data are data obtained by processing a second hash value and a node identifier of the first other publishing node, and the second hash value is a hash value obtained by performing second hash processing on the second transaction privacy data by the first other publishing node;
comparing the hash value to be verified with the second hash value included in the second uplink transaction data;
and if the hash value to be verified is the same as the second hash value, determining that the received second transaction privacy data is valid.
Optionally, the method further includes:
obtaining a second request sent by a second other publishing node, wherein the second request carries a node identifier of the second other publishing node, and the second request is used for requesting the first transaction privacy data from the current publishing node;
determining whether the node identification of the second other publishing node belongs to a predetermined identification set;
and if the first transaction privacy data belongs to the second other publishing node, sending the first transaction privacy data to the second other publishing node.
In a second aspect, an apparatus for a federation chain-based transaction data processing method is provided, the apparatus including:
the system comprises a first obtaining module, a first transaction privacy data processing module and a second obtaining module, wherein the first transaction privacy data comprises identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data is used for representing a transaction event related to the first marketing participant in the marketing service;
the processing module is used for carrying out first hash processing on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data;
a second obtaining module, configured to process the first hash value and the node identifier of the current publishing node to obtain first uplink transaction data;
and the uplink module is used for performing uplink processing on the first uplink transaction data so as to distribute the first uplink transaction data to the alliance chain.
Optionally, the first obtaining module is configured to:
if the first marketing participant corresponding to the current publishing node is a supplier, the first transaction privacy data comprises at least one of supplier identity information, supplier bank account information, supplier contact information, buyer contact information, order product quantity data, order product unit price data, order product total amount data and marketer contribution amount data; alternatively, the first and second electrodes may be,
if the first marketing participant corresponding to the current publishing node is a buyer, the first transaction privacy data comprises at least one of buyer identity information, buyer contact information, purchased product information and purchased product quantity data; alternatively, the first and second electrodes may be,
and if the first marketing participant corresponding to the current release node is a marketer, the first transaction privacy data comprises at least one of identity information of the marketer, job number information of the marketer, bank account information of the marketer and proportional data of the marketer for drawing funds.
Optionally, the first obtaining module is configured to:
receiving second transaction privacy data sent by a first other publishing node, wherein the second transaction privacy data comprises identity information of a second marketing participant corresponding to the first other publishing node and/or second marketing data, and the second marketing data is used for representing a transaction event associated with the second marketing participant in the marketing service;
determining the first transaction privacy data according to the second transaction privacy data.
Optionally, the first obtaining module is configured to:
determining order demand information of a second marketing participant corresponding to the first other publishing node according to the second marketing data in the second transaction privacy data, wherein the order demand information comprises product information and demander information;
and processing the identity information of the first marketing participant corresponding to the current publishing node, the identity information of the second marketing participant corresponding to the first other publishing node and the order demand information to determine the first transaction privacy data.
Optionally, the apparatus further includes a receiving module, configured to:
sending a first request to the first other publishing node, where the first request carries the node identifier of the current publishing node, and the first request is used to request the second transaction privacy data from the first other publishing node;
and receiving the second transaction privacy data sent by the first other publishing node through a predetermined data transmission protocol.
Optionally, the apparatus further comprises a verification module for:
performing third hash processing on the second transaction privacy data to obtain a hash value to be verified corresponding to the second transaction privacy data;
acquiring second uplink transaction data corresponding to the first other publishing node from the alliance chain, wherein the second uplink transaction data are data obtained by processing a second hash value and a node identifier of the first other publishing node, and the second hash value is a hash value obtained by performing second hash processing on the second transaction privacy data by the first other publishing node;
comparing the hash value to be verified with the second hash value included in the second uplink transaction data;
and if the hash value to be verified is the same as the second hash value, determining that the received second transaction privacy data is valid.
Optionally, the apparatus further includes a determining module, configured to:
obtaining a second request sent by a second other publishing node, wherein the second request carries a node identifier of the second other publishing node, and the second request is used for requesting the first transaction privacy data from the current publishing node;
determining whether the node identification of the second other publishing node belongs to a predetermined identification set;
and if the first transaction privacy data belongs to the second other publishing node, sending the first transaction privacy data to the second other publishing node.
In a third aspect, a computing device is provided, the computing device comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the steps included in any of the methods of the first aspect according to the obtained program instructions.
In a fourth aspect, there is provided a storage medium having stored thereon computer-executable instructions for causing a computer to perform the steps included in any one of the methods of the first aspect.
In the embodiment of the invention, when desiring to process the uplink transaction data, first transaction privacy data to be uplink may be determined, that is, the transaction data that is to be processed and is not intended to be viewed by other publishing nodes without permission are determined, then the first transaction privacy data is processed by using a hash algorithm, so as to obtain a first hash value corresponding to the first transaction privacy data, then the first hash value and identification information of a node corresponding to the current publishing node that obtains the first transaction privacy data are processed, so as to obtain the first uplink transaction data, and then the first uplink transaction data is processed, so that other publishing nodes desiring to view the first transaction privacy data and having permission to view may determine a corresponding hash value by the identification information corresponding to the first transaction privacy data, so as to obtain the first transaction privacy data by using a local transmission manner, and the publishing node without permission to view cannot obtain the first transaction privacy data information, so that the security of transaction data can be improved, furthermore, the first uplink transaction data and the transaction data uplink which can not be subjected to hash processing can better ensure that the marketing service based on the alliance chain operates smoothly, further, the first uplink transaction data uplink mode comprising the first hash value not only protects the privacy of the transaction privacy data through the irreversibility of the first hash value, but also reduces the data volume on the alliance chain, reduces the cost for operating the alliance chain, and further improves the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a schematic view of an application scenario of a marketing service in an embodiment of the present invention;
FIG. 2 is a flow chart of a federation chain-based transaction data processing method in an embodiment of the present invention;
FIG. 3 is a flow diagram of obtaining first transaction privacy data in an embodiment of the invention;
FIG. 4 is a block diagram of a federation chain-based transaction data processing apparatus in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computing device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the term "comprises" and any variations thereof, which are intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In the embodiments of the present invention, the "plurality" may mean at least two, for example, two, three, or more, and the embodiments of the present application are not limited.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In the prior art, in a traditional consensus process of a federation chain, a client must transmit transaction data to an endorsement node in a plaintext form, so that the endorsement node performs operations such as intelligent contract operation, data calculation, verification, signature verification and the like, then the endorsement node returns a transaction result and a signature to the client, the client sends the transaction result and the signature to the consensus node, the consensus node receives the transaction result and the signature sent by the client and forwards the transaction result and the signature to a message queue for sequencing, after the message queue is sequenced, the consensus node receives the sequenced transaction accounting data, divides the data into blocks, and distributes the blocks to the endorsement node and the accounting node in a network, so that the consensus node receives the accounting data from the consensus node and other accounting nodes, and stores the complete accounting data of the federation chain.
As mentioned above, all nodes in the federation chain can acquire clear data on the federation chain, for example, based on marketing service of the federation chain, functional nodes included in the federation chain in the application scenario include a provider node, a buyer node and a marketer node, but since in a specific practical application, there is more than one person involved in the buyer node and the marketer node, if all transaction data is written in the federation chain in the form of clear data, then all nodes in the chain can acquire the transaction data, which does not meet the requirement of privacy protection.
Therefore, in the prior art, a method is adopted to encrypt transaction data of an alliance chain to be linked by using a symmetric encryption algorithm, and then to link the encrypted transaction data, however, in the method, when an encryption party encrypting the transaction data wants to share plaintext data corresponding to the transaction data to a node with permission to view, a symmetric key needs to be distributed to the other party, and in practical application, in the distribution process of the key, the key is easy to be stolen, so that the security of the encrypted transaction data is low.
In view of this, an embodiment of the present invention provides a method for processing transaction data based on a federation chain, where the method may perform hash calculation on transaction private data to be linked up to obtain a hash value, and then link up the hash value of the transaction private data to protect security of the transaction private data, and further, when it is desired to share plaintext data of the transaction private data to other nodes having permission to view, the plaintext data may be sent to the node through a transmission protocol, so as to achieve a purpose of protecting security of the transaction private data, and improve security of the transaction data.
After the design idea of the embodiment of the present invention is introduced, some simple descriptions are provided below for application scenarios applicable to the technical solution for determining a cloned vehicle in the embodiment of the present invention, and it should be noted that the application scenarios described below are only used for illustrating the embodiment of the present invention and are not limited. In specific implementation, the technical scheme provided by the embodiment of the invention can be flexibly applied according to actual needs.
At present, in terms of marketing service processing based on a federation chain, please refer to fig. 1, which generally includes three functional nodes, where the marketing service participants of the functional nodes are marketer, buyer and provider respectively, and the functional nodes can publish transaction data corresponding to their associated transaction events in the marketing service, that is, the functional nodes can be referred to as publishing nodes, and for convenience of distinguishing description, they are referred to as marketer nodes, buyer nodes and provider nodes as shown in fig. 1.
In the application scenario, the specific process of the marketing service is as follows: firstly, the marketer node sends product information to the buyer node, communication is carried out between the marketer and the buyer (as shown in step 1 in fig. 1), thereby a transaction preliminary agreement, namely a transaction pre-order is achieved, the marketer can link the transaction pre-order information (as shown in step 2 in fig. 1), then the supplier node obtains the transaction pre-order (as shown in step 3 in fig. 1), the transaction pre-order is processed to generate a corresponding transaction contract, the transaction contract is linked (as shown in step 4 in fig. 1), secondly, the buyer node obtains the transaction contract and determines product amount data in the transaction contract, then the supplier node determines to deliver goods to the buyer according to the transaction contract and links determined delivery information, thereby the buyer node determines to determine payment information after receiving the determined delivery information and determining to receive the goods, then, after receiving the payment confirmation information, the provider node confirms the withdrawal amount data of the marketer (step 5 in fig. 1), and links the withdrawal amount data of the marketer, so that the marketer corresponding to the withdrawal amount information obtains the withdrawal amount data of the marketer (step 6 in fig. 1).
In the embodiment of the present invention, in the application scenario, the supplier node, the marketer node, and the buyer node may all issue transaction data in the federation chain, and in the application scenario, the issue transaction data of the supplier node, the marketer node, and the buyer node may be supported by a server corresponding to the supplier node, so that the federation chain operates better.
The technical scheme provided by the embodiment of the invention is described in the following with the accompanying drawings of the specification.
Referring to fig. 2, an embodiment of the present invention provides a method for processing transaction data based on a federation chain, where the method may be performed by a server in the foregoing application scenario, and in a specific implementation process, the server is, for example, a personal computer, a large-medium-sized computer, a computer cluster, or the like. The specific flow of the method is described below.
Step 201: first transaction privacy data in the marketing business are obtained, wherein the first transaction privacy data comprise identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data are used for representing transaction events related to the first marketing participant in the marketing business.
In the embodiment of the invention, when transaction data in the marketing service is desired to be processed, first transaction privacy data in the marketing service can be obtained, that is, the first transaction privacy data represents data that is not desired to be viewed by other publishing nodes without permission in the marketing service, wherein the first transaction privacy data includes identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and specifically, the first marketing data is used for representing a transaction event associated with the first marketing participant in the marketing service.
In a specific implementation process, the first marketing participant corresponding to the current publishing node may be any one of the suppliers, buyers and marketers in the foregoing application scenario, and it should be noted that, in an embodiment of the present invention, the publishing node is configured to publish the transaction data to any node in the federation chain, and further, when the corresponding first marketing participant of the current publishing node is a provider, the correspondingly determined first transaction privacy data includes at least one of supplier identity information, supplier bank account information, supplier contact information, buyer contact information, order product quantity data, order product unit price data, order product total amount data, marketer pull-up amount data, for example, the first transaction privacy data may be data including supplier identity information, order product information, and order product quantity data.
Further, if the corresponding first marketing participant of the current publishing node is the buyer, the correspondingly determined first transaction privacy data includes at least one of buyer identity information, buyer contact information, purchased product information and purchased product quantity data; and if the corresponding first marketing participant of the current publishing node is a marketer, the correspondingly determined first transaction privacy data comprises at least one of marketer identity information, marketer job number information, marketer bank account information and marketer proportion drawing data.
In the embodiment of the present invention, the method provided by the embodiment of the present invention is specifically described by taking the first marketing participant as an example of a supplier.
In a specific implementation process, please refer to fig. 3 for a process of obtaining first transaction privacy data in a marketing service:
step 301: sending a first request to a first other publishing node, wherein the first request carries a node identifier of a current publishing node, and the first request is used for requesting second transaction privacy data from the first other publishing node;
step 302: receiving second transaction privacy data sent by the first other publishing node through a predetermined data transmission protocol, wherein the second transaction privacy data comprise identity information of a second marketing participant and/or second marketing data corresponding to the first other publishing node, and the second marketing data are used for representing transaction events related to the second marketing participant in the marketing service;
step 303: first transaction privacy data is determined based on the second transaction privacy data.
As described above, when the first marketing participant is a supplier, the second marketing participant corresponding to the first other publishing node may be a buyer or a marketer, and assuming that the second marketing participant is a marketer as an example, the obtained first transaction privacy data may be the contract information in the application scenario and the identity information of the supplier corresponding to the contract information.
Further, the obtaining process of the first transaction privacy data is as follows: the method comprises the steps that a current publishing node, namely a publishing node corresponding to a supplier, sends a first request to a first other publishing node, namely a publishing node corresponding to a marketer, the publishing node corresponding to the marketer further obtains identification information of the publishing node corresponding to the supplier, the identification information is judged to be in a set of preset identifications, if the node corresponding to the supplier is determined to belong to the set of the preset identifications, second transaction privacy data are sent to the publishing node corresponding to the supplier through a preset transmission protocol (such as Gossip protocol), then the first transaction privacy data are determined according to the second transaction privacy data, namely the obtained second transaction privacy data are stored in the local, and the transaction data are synchronized among nodes with authority through the preset transmission protocol, so that the first other publishing node in a federation chain is prevented from obtaining the second transaction privacy data under the condition of no authority, the safe transmission of the second transaction privacy data is ensured, and the safety of the second transaction privacy data is improved.
For example, if the first marketing participant corresponding to the current publishing node is the provider a, the identification information is a, the second marketing participant corresponding to the first other publishing node is the marketer C, and the predetermined identification set is "a, b, and m", the first other publishing node may determine that the identification information a of the current publishing node is in the predetermined identification set, and send the second transaction privacy data to the first marketing participant provider a corresponding to the current publishing node through the predetermined transmission protocol.
In a specific implementation process, after the second transaction privacy data is obtained, the order demand information of the second marketing participant corresponding to the first other publishing node can be determined according to the second marketing data in the second transaction privacy data, the order demand information comprises product information and demand party information, and then the identity information of a first marketing participant of a current publishing node, the identity information of a second marketing participant corresponding to a first other publishing node and the order demand information are processed.
Continuing with the previous example, after the first marketing participant supplier a obtains the second transaction privacy data, order requirement information determined by the marketer C, such as that the buyer H reserves the M60 pieces of products, the buyer H reserves the D40 pieces of products, and the buyer H reserves the F70 pieces of products, may be determined, and then the order requirement information is processed with identity information, contact information (such as address, contact information, and the like) of the supplier a, the marketer C, and the buyer H, and bank account information, so as to determine the first transaction privacy data.
Step 202: and performing first hash processing on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data.
In the embodiment of the present invention, after the first transaction privacy data is obtained, a first Hash process may be performed on the transaction privacy data, so as to obtain a first Hash value corresponding to the first transaction privacy data, specifically, the first transaction privacy data is processed by using a Hash Algorithm, which may use an MD5(Message Digest5) Algorithm, or may use SHA-1(Secure Hash Algorithm-1), and of course, may also use a secret SM3 Algorithm or another Algorithm, which is not limited in the embodiment of the present invention.
Step 203: processing the first hash value and the node identifier of the current release node to obtain first uplink transaction data;
step 204: and performing uplink processing on the first uplink transaction data so as to distribute the first uplink transaction data to the alliance chain.
In the embodiment of the present invention, after the first hash value is obtained, the first hash value and the node identifier of the current publishing node may be processed, so as to obtain the first uplink transaction data, then the first uplink transaction data is uplink processed, and the first uplink transaction data is published to the alliance chain, that is, a first other publishing node that may obtain the first hash value determines the first uplink transaction data as data that is desired to be obtained through the node identifier of the current publishing node in the first uplink transaction data, and then receives the first transaction privacy data sent through the transmission protocol in a local obtaining manner, so as to ensure smooth transaction, and improve the security of the transaction data.
Therefore, by the above method, in the embodiment of the present invention, when desiring to process uplink transaction data, first transaction privacy data to be uplink-linked may be determined, that is, transaction data that is to be processed and is not intended to be viewed by other publishing nodes without permission is determined, then the first transaction privacy data is processed by using a hash algorithm, so as to obtain a first hash value corresponding to the first transaction privacy data, then the first hash value and identification information of a node corresponding to a current publishing node that obtains the first transaction privacy data are processed, so as to obtain the first uplink transaction data, and then the first uplink transaction data is uplink-linked, so that other publishing nodes that desire to view the first transaction privacy data and have permission to view may determine the corresponding hash value by the identification information corresponding to the first transaction privacy data, therefore, the first transaction privacy data can be obtained in a local transmission mode, and the publishing node without permission to view cannot obtain the first transaction privacy data information, so that the security of the transaction data can be improved, further, the first uplink transaction data and the transaction data uplink which can not be subjected to hash processing can better ensure that the marketing service based on the alliance chain operates smoothly, further, the privacy of the transaction privacy data is protected through the irreversibility of the first hash value per se in the mode of the first uplink transaction data uplink comprising the first hash value, the data volume on the alliance chain is reduced, the cost of operating the alliance chain is reduced, and the user experience is improved.
In a possible implementation manner, before determining the first transaction privacy data according to the second transaction privacy data, the second transaction privacy data may be further checked to determine the validity of the second transaction privacy data, specifically, the third hash processing may be performed on the second transaction privacy data to obtain a hash value to be checked corresponding to the second marketing service, and then second uplink transaction data corresponding to the first other publishing node is obtained from the federation chain, where the second uplink transaction data is data obtained by processing the second hash value and the node identifier of the first other publishing node, the second hash value is a hash value obtained by performing second hash processing on the second transaction privacy data by the first other publishing node, and then the hash value to be checked is compared with the second hash value included in the second uplink transaction data, if the hash value to be verified is the same as the second hash value, the received second transaction privacy data is determined to be valid, so that the authenticity and validity of the received second transaction privacy data can be more accurately determined, and the accuracy of obtaining the transaction data is improved.
In a possible implementation manner, the current publishing node may further obtain a second request sent by a second other publishing node, where the second request carries a node identifier of the second other publishing node, and the second request is used to request the current publishing node for the first transaction privacy data, and then determine whether the node identifier of the second other publishing node belongs to a predetermined identifier set, where the predetermined identifier set is used to characterize that the authority to obtain the first transaction privacy data, and if so, send the first transaction privacy data to the first other publishing node, in such a way, it may be ensured that the authority-possessed second other publishing node may obtain the first transaction privacy data, and other non-authority second other publishing nodes may only know that the authority-possessed data is uploaded but cannot obtain the first transaction privacy data, further, the current publishing node may also publish the data that may not be hashed into the federation chain, for example, assuming that the first marketing participant corresponding to the current publishing node is a marketer, the marketer can publish the product information to the alliance chain, so that buyers of the marketing participants corresponding to other publishing nodes can directly acquire the transaction data of the product information from the alliance chain, thereby ensuring the effective operation of marketing services, improving the security of the transaction data, and improving the experience of users.
Based on the same inventive concept, an embodiment of the present invention provides a federation chain-based transaction data processing apparatus, which is capable of implementing a function corresponding to the above federation chain-based transaction data processing method. The federation chain-based transaction data processing apparatus may be a hardware structure, a software module, or a hardware structure plus a software module. The transaction data processing device based on the alliance chain can be realized by a chip system, and the chip system can be formed by a chip and can also comprise the chip and other discrete devices. Referring to fig. 4, the processing of the federation-based transaction data includes a first obtaining module 401, a processing module 402, a second obtaining module 403, and a uplink module 404, where:
a first obtaining module 401, configured to obtain first transaction privacy data in the marketing service, where the first transaction privacy data includes identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data is used to characterize a transaction event associated with the first marketing participant in the marketing service;
a processing module 402, configured to perform a first hash process on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data;
a second obtaining module 403, configured to process the first hash value and the node identifier of the current publishing node to obtain first uplink transaction data;
the uplink module 404 is configured to perform uplink processing on the first uplink transaction data to distribute the first uplink transaction data to the alliance chain.
In one possible implementation, the first obtaining module 401 is configured to:
if the first marketing participant corresponding to the current publishing node is a supplier, the first transaction privacy data comprises at least one of supplier identity information, supplier bank account information, supplier contact information, buyer contact information, order product quantity data, order product unit price data, order product total amount data and marketer contribution amount data; or if the first marketing participant corresponding to the current publishing node is a buyer, the first transaction privacy data comprises at least one of buyer identity information, buyer contact information, purchased product information and purchased product quantity data; or if the first marketing participant corresponding to the current publishing node is a marketer, the first transaction privacy data comprises at least one of identity information of the marketer, job number information of the marketer, bank account information of the marketer and proportion data of the marketer for drawing funds.
In one possible implementation, the first obtaining module 401 is configured to:
receiving second transaction privacy data sent by the first other publishing node, wherein the second transaction privacy data comprises identity information of a second marketing participant corresponding to the first other publishing node and/or second marketing data, and the second marketing data is used for representing a transaction event associated with the second marketing participant in a marketing service; first transaction privacy data is determined based on the second transaction privacy data.
In a possible implementation, the first obtaining module 401 is configured to:
according to second marketing data in the second transaction privacy data, determining order demand information of a second marketing participant corresponding to the first other publishing node, wherein the order demand information comprises product information and demander information; and processing the identity information of the first marketing participant corresponding to the current publishing node, the identity information of the second marketing participant corresponding to the first other publishing node and the order demand information to determine first transaction privacy data.
In a possible implementation manner, the federation chain-based transaction data processing apparatus in an embodiment of the present invention further includes a receiving module, configured to:
sending a first request to a first other publishing node, wherein the first request carries a node identifier of the current publishing node, and the first request is used for requesting second transaction privacy data from the first other publishing node; and receiving second transaction privacy data sent by the first other publishing node through a predetermined data transmission protocol.
In a possible implementation manner, the federation chain-based transaction data processing apparatus in an embodiment of the present invention further includes a verification module, configured to:
performing third hash processing on the second transaction privacy data to obtain a hash value to be verified corresponding to the second transaction privacy data; acquiring second uplink transaction data corresponding to the first other publishing nodes from the alliance chain, wherein the second uplink transaction data are data obtained by processing a second hash value and node identifications of the first other publishing nodes, and the second hash value is a hash value obtained by performing second hash processing on second transaction privacy data by the first other publishing nodes; comparing the hash value to be verified with a second hash value included in the second uplink transaction data; and if the hash value to be verified is the same as the second hash value, determining that the received second transaction privacy data is valid.
In a possible implementation manner, the federation chain-based transaction data processing apparatus in an embodiment of the present invention further includes a determining module, configured to:
obtaining a second request sent by a second other publishing node, wherein the second request carries a node identifier of the second other publishing node, and the second request is used for requesting the first transaction privacy data from the current publishing node; determining whether the node identification of the second other publishing node belongs to a predetermined identification set; and if so, sending the first transaction privacy data to a second other publishing node.
All relevant contents of each step related to the embodiment of the federation chain-based transaction data processing method may be referred to the functional description of the functional module corresponding to the federation chain-based transaction data processing apparatus in the embodiment of the present invention, and are not described herein again.
The division of the modules in the embodiments of the present invention is schematic, and only one logical function division is provided, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present invention may be integrated in one processor, or may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Based on the same inventive concept, an embodiment of the present invention provides a computing device, please refer to fig. 5, where the computing device includes at least one processor 501 and a memory 502 connected to the at least one processor, a specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present invention, in fig. 5, the processor 501 and the memory 502 are connected through a bus 500 as an example, the bus 500 is represented by a thick line in fig. 5, and a connection manner between other components is only schematically illustrated and is not limited. The bus 500 may be divided into an address bus, a data bus, a control bus, etc., and is shown with only one thick line in fig. 5 for ease of illustration, but does not represent only one bus or one type of bus. In the embodiment of the present invention, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may execute the steps included in the above-mentioned federation chain-based transaction data processing method by executing the instructions stored in the memory 502.
The processor 501 is a control center of the computing device, and may connect various parts of the entire device by using various interfaces and lines, and perform various functions of the device and process data by operating or executing instructions stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the computing device.
Optionally, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles an operating system, a user interface, an application program, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 501 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method for determining a cloned vehicle disclosed in the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 402 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
By programming the processor 501, the code corresponding to the federation chain-based transaction data processing method described in the foregoing embodiment may be solidified into a chip, so that the chip can execute the steps of the federation chain-based transaction data processing method when running.
Based on the same inventive concept, the embodiment of the present invention further provides a storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the steps of the federation chain-based transaction data processing method as described above.
In some possible embodiments, the aspects of the federation chain-based transaction data processing method provided by the present invention may also be implemented in the form of a program product comprising program code for causing a device to perform the steps in the federation chain-based transaction data processing method according to various exemplary embodiments of the present invention described above in this specification when the program product is run on the device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A federation chain-based transaction data processing method, the method comprising:
obtaining first transaction privacy data in a marketing business, wherein the first transaction privacy data comprises identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data is used for representing a transaction event related to the first marketing participant in the marketing business;
performing first hash processing on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data;
processing the first hash value and the node identifier of the current release node to obtain first uplink transaction data;
and performing uplink processing on the first uplink transaction data so as to distribute the first uplink transaction data to the alliance chain.
2. The method of claim 1,
if the first marketing participant corresponding to the current publishing node is a supplier, the first transaction privacy data comprises at least one of supplier identity information, supplier bank account information, supplier contact information, buyer contact information, order product quantity data, order product unit price data, order product total amount data and marketer contribution amount data; alternatively, the first and second electrodes may be,
if the first marketing participant corresponding to the current publishing node is a buyer, the first transaction privacy data comprises at least one of buyer identity information, buyer contact information, purchased product information and purchased product quantity data; alternatively, the first and second electrodes may be,
and if the first marketing participant corresponding to the current release node is a marketer, the first transaction privacy data comprises at least one of identity information of the marketer, job number information of the marketer, bank account information of the marketer and proportional data of the marketer for drawing funds.
3. The method of claim 1, wherein obtaining first transaction privacy data in a marketing service comprises:
receiving second transaction privacy data sent by a first other publishing node, wherein the second transaction privacy data comprises identity information of a second marketing participant corresponding to the first other publishing node and/or second marketing data, and the second marketing data is used for representing a transaction event associated with the second marketing participant in the marketing service;
determining the first transaction privacy data according to the second transaction privacy data.
4. The method of claim 3, wherein determining the first transaction privacy data from the second transaction privacy data comprises:
determining order demand information of a second marketing participant corresponding to the first other publishing node according to the second marketing data in the second transaction privacy data, wherein the order demand information comprises product information and demander information;
and processing the identity information of the first marketing participant corresponding to the current publishing node, the identity information of the second marketing participant corresponding to the first other publishing node and the order demand information to determine the first transaction privacy data.
5. The method of claim 3, wherein receiving second transaction privacy data sent by the first other publishing node comprises:
sending a first request to the first other publishing node, where the first request carries the node identifier of the current publishing node, and the first request is used to request the second transaction privacy data from the first other publishing node;
and receiving the second transaction privacy data sent by the first other publishing node through a predetermined data transmission protocol.
6. The method of claim 5, wherein prior to determining the first transaction privacy data from the second transaction privacy data, the method further comprises:
performing third hash processing on the second transaction privacy data to obtain a hash value to be verified corresponding to the second transaction privacy data;
acquiring second uplink transaction data corresponding to the first other publishing node from the alliance chain, wherein the second uplink transaction data are data obtained by processing a second hash value and a node identifier of the first other publishing node, and the second hash value is a hash value obtained by performing second hash processing on the second transaction privacy data by the first other publishing node;
comparing the hash value to be verified with the second hash value included in the second uplink transaction data;
and if the hash value to be verified is the same as the second hash value, determining that the received second transaction privacy data is valid.
7. The method of any of claims 1-6, further comprising:
obtaining a second request sent by a second other publishing node, wherein the second request carries a node identifier of the second other publishing node, and the second request is used for requesting the first transaction privacy data from the current publishing node;
determining whether the node identification of the second other publishing node belongs to a predetermined identification set;
and if the first transaction privacy data belongs to the second other publishing node, sending the first transaction privacy data to the second other publishing node.
8. A federation chain-based transaction data processing apparatus, the apparatus comprising:
the system comprises a first obtaining module, a first transaction privacy data processing module and a second obtaining module, wherein the first transaction privacy data comprises identity information of a first marketing participant corresponding to a current publishing node and/or first marketing data, and the first marketing data is used for representing a transaction event related to the first marketing participant in the marketing service;
the processing module is used for carrying out first hash processing on the first transaction privacy data to obtain a first hash value corresponding to the first transaction privacy data;
a second obtaining module, configured to process the first hash value and the node identifier of the current publishing node to obtain first uplink transaction data;
and the uplink module is used for performing uplink processing on the first uplink transaction data so as to distribute the first uplink transaction data to the alliance chain.
9. A computing device, wherein the computing device comprises:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps comprised in the method of any one of claims 1 to 7 in accordance with the obtained program instructions.
10. A storage medium storing computer-executable instructions for causing a computer to perform the steps comprising the method of any one of claims 1-7.
CN201811600099.3A 2018-12-26 2018-12-26 Transaction data processing method and device based on alliance chain Pending CN111369355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811600099.3A CN111369355A (en) 2018-12-26 2018-12-26 Transaction data processing method and device based on alliance chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811600099.3A CN111369355A (en) 2018-12-26 2018-12-26 Transaction data processing method and device based on alliance chain

Publications (1)

Publication Number Publication Date
CN111369355A true CN111369355A (en) 2020-07-03

Family

ID=71206032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811600099.3A Pending CN111369355A (en) 2018-12-26 2018-12-26 Transaction data processing method and device based on alliance chain

Country Status (1)

Country Link
CN (1) CN111369355A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019330A (en) * 2020-08-04 2020-12-01 广东省科技基础条件平台中心 Intranet security audit data storage method and system based on alliance chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610578A (en) * 2016-01-25 2016-05-25 杭州复杂美科技有限公司 Block chain information archiving and privacy protection method
CN108768663A (en) * 2018-05-31 2018-11-06 中国地质大学(武汉) A kind of block chain access control method and its processing system
CN108809630A (en) * 2018-06-19 2018-11-13 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of testament store method, system, equipment and computer readable storage medium
CN108830733A (en) * 2018-06-21 2018-11-16 中国银行股份有限公司 A kind of information processing method, block scm cluster and system
CN109067539A (en) * 2018-06-13 2018-12-21 深圳前海微众银行股份有限公司 Alliance's chain method of commerce, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610578A (en) * 2016-01-25 2016-05-25 杭州复杂美科技有限公司 Block chain information archiving and privacy protection method
CN108768663A (en) * 2018-05-31 2018-11-06 中国地质大学(武汉) A kind of block chain access control method and its processing system
CN109067539A (en) * 2018-06-13 2018-12-21 深圳前海微众银行股份有限公司 Alliance's chain method of commerce, equipment and computer readable storage medium
CN108809630A (en) * 2018-06-19 2018-11-13 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of testament store method, system, equipment and computer readable storage medium
CN108830733A (en) * 2018-06-21 2018-11-16 中国银行股份有限公司 A kind of information processing method, block scm cluster and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019330A (en) * 2020-08-04 2020-12-01 广东省科技基础条件平台中心 Intranet security audit data storage method and system based on alliance chain
CN112019330B (en) * 2020-08-04 2024-03-29 广东省科技基础条件平台中心 Intranet security audit data storage method and system based on alliance chain

Similar Documents

Publication Publication Date Title
CN112214780B (en) Data processing method and device, intelligent equipment and storage medium
CN108712395B (en) Account management method, device, server and storage medium based on block chain
CA3057385C (en) Methods and devices for protecting sensitive data of transaction activity based on smart contract in blockchain
CN108256859B (en) Financial product transaction consensus method, node and system based on block chain
CN108702287B (en) Information issuing and acquiring method and device based on block chain and block chain link point
CN107454114B (en) Auction method, server and readable storage medium
CN110046996B (en) Data processing method and device
CN110795767B (en) Electric power transaction method, device and system and trusted cloud platform
CN110838063B (en) Transaction processing method based on blockchain, electronic equipment and storage medium
JP2013512503A (en) Secure mobile payment processing
CN109300038B (en) Resource flow transaction system
CN112288434B (en) Privacy transaction method, device, zero knowledge proof system and privacy transaction architecture model
CN111369338A (en) Data processing method and device based on block chain
CN111880919A (en) Data scheduling method, system and computer equipment
CN112036878A (en) Data processing method and device
CN115796871A (en) Resource data processing method and device based on block chain and server
CN111314066B (en) Block chain-based data transfer method, terminal and computer-readable storage medium
KR101120059B1 (en) Billing verifying apparatus, billing apparatus and method for cloud computing environment
CN111369355A (en) Transaction data processing method and device based on alliance chain
CN112418850A (en) Transaction method and device based on block chain and electronic equipment
CN115941773A (en) Project transaction method, system, terminal device and medium based on cloud service sharing
CN111125734B (en) Data processing method and system
CN113032478B (en) Block chain system and data uplink method, device, equipment and medium
CN114124515A (en) Bidding transmission method, key management method, user verification method and corresponding device
CN114301675A (en) Private data transaction method, system, computer 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