CN112565412A - Data transaction method, system and equipment based on block chain - Google Patents

Data transaction method, system and equipment based on block chain Download PDF

Info

Publication number
CN112565412A
CN112565412A CN202011406247.5A CN202011406247A CN112565412A CN 112565412 A CN112565412 A CN 112565412A CN 202011406247 A CN202011406247 A CN 202011406247A CN 112565412 A CN112565412 A CN 112565412A
Authority
CN
China
Prior art keywords
data
transaction
blockchain
information
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011406247.5A
Other languages
Chinese (zh)
Other versions
CN112565412B (en
Inventor
李峰
管宏伟
蒋魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Xinzhi Automotive Technology Co.,Ltd.
Original Assignee
Chongqing Xinzhi Jinfu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Xinzhi Jinfu Information Technology Co ltd filed Critical Chongqing Xinzhi Jinfu Information Technology Co ltd
Priority to CN202011406247.5A priority Critical patent/CN112565412B/en
Publication of CN112565412A publication Critical patent/CN112565412A/en
Application granted granted Critical
Publication of CN112565412B publication Critical patent/CN112565412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • G06Q20/38215Use of certificates or encrypted proofs of transaction rights
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • G06Q30/0637Approvals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a data transaction method based on a block chain, which comprises the following steps: adding data; an order issuing step; matching and confirming the order; a new transaction creation step; a transaction step; and delivering data to inform the whole network; the data transaction method based on the blockchain is applied to data transaction, and a transaction cloud platform is constructed by utilizing the characteristics of decentralized and non-falsifiable distributed account book records and the like of the blockchain technology, so that the fairness, the safety, the privacy and the reliability of data transaction are improved.

Description

Data transaction method, system and equipment based on block chain
Technical Field
The invention relates to the field of computers, in particular to a data transaction method, a data transaction system and data transaction equipment based on a block chain.
Background
The block chain technology, also called as "distributed ledger technology", is a technical solution for decentralized and collective maintenance of distributed ledgers, and is essentially a distributed database system with multiple nodes participating together.
The blockchain is a result of integration of multiple technologies, a reliable and difficult-to-tamper ledger record is maintained by using the blockchain technology, risks caused by trust can be reduced, and the maintenance cost of each participant can be effectively reduced.
With the development of science and technology and the social progress, the amount of various data on the network is huge nowadays, but the huge data is provided by different and countless data holders, and the data has no uniform standard and cannot be directly corresponding to a data demand party, so that the data has no great value.
And the content searched by the data buyer on the network may not be the content wanted by the user or needs to be viewed for a fee, the content obtained after the fee payment may be different from the content wanted by the user or only a title party, and fraudulent behaviors exist, and the behaviors are not compliant because the amount is too low and the laws and regulations are not involved.
The prior technical scheme can not effectively solve the effective association of data of supply and demand parties.
In a traditional transaction mode, the transaction is generally achieved by relying on a transaction center (or a transaction platform) of a third party, the data processing capacity of the transaction center (or the transaction platform) directly influences the efficiency of the transaction, and the rule system of the transaction center (or the transaction platform) influences all related parties of the transaction.
The prior art has the following disadvantages:
the non-transparent property of the traditional transaction cannot ensure the transaction trust completely, and the transaction platform can artificially tamper data through a background, so that fraudulent behaviors are caused;
in the traditional transaction platform, the integrity of transaction data is difficult to maintain, and the transaction history is difficult to trace;
the traditional trading platform is likely to be attacked by a network to cause the problem of data loss, so that the data security of the trading cannot be ensured;
the traditional trading platform is greatly restricted by a platform party, for example, the processing capacity of the platform influences the trading efficiency, the work and rest system of the platform party influences the trading timeliness, and any fault of the platform party influences all trading related parties.
Disclosure of Invention
One of the objectives of the present invention is to provide a data transaction method, system and device based on blockchain, which can provide a data transaction platform developed by using blockchain technology, integrate data provided by each party, and serve both parties.
The invention aims to provide a data transaction method, a system and equipment based on a block chain, which relate to the application of a block chain technology to data transaction, and utilize the characteristics of decentralized and non-falsifiable distributed account book records and the like of the block chain technology to construct a transaction cloud platform so as to improve the fairness, safety, privacy and reliability of the data transaction.
One of the purposes of the invention is to provide a data transaction method, system and device based on block chain, which has fairness and verifies that the data transaction of both sides can not be blocked by one-sided repentance of a certain party after passing;
one of the objectives of the present invention is to provide a data transaction method, system and device based on a block chain, which has security, and performs data providing and obtaining through encryption and decryption, so that a network attacker cannot obtain any additional information of data from a transaction flow, thereby avoiding divulging of divulging data information to a certain extent;
one of the objectives of the present invention is to provide a data transaction method, system and device based on block chain, which is time-efficient, and due to the decentralized feature, data transaction can be achieved in real time without being processed on a platform, and verification and audit only need to execute a preset rule, thereby greatly reducing the waiting time.
The invention aims to provide a data transaction method, a system and equipment based on a block chain, which have privacy and protect the identity information of both data supply and demand parties based on the anonymity function of the block chain.
One of the objectives of the present invention is to provide a data transaction method, system and device based on block chain, which has reliability, and since both users are bound to a digital wallet during registration, the transaction will be executed if the value is transferred, thereby reducing the credit risk.
In order to achieve at least one of the above objects, the present invention provides a data transaction method based on a blockchain, including the steps of:
adding data;
an order issuing step;
matching and confirming the order;
a new transaction creation step;
a transaction step; and
delivering data and informing the whole network;
in the step of adding data, the data to be sold is encrypted and uploaded to the equipment of the data provider after the data is arranged by the data provider, meanwhile, the storage address of the data, the hash value of the data and the selling conditions are added into the intelligent contract, the data information is generated into the hash value, and the hash value of the data information is written into the block chain;
in the step of issuing the order, the data purchasing direction issues an order to an intelligent contract, the order comprises data type, data quantity and data price information to form data purchasing information, and the data purchasing information is generated into a hash value and written into a block chain;
the order matching and confirming step executes order matching and confirming, wherein for information of successful matching, a corresponding hash value is obtained and written into a block chain;
in the new transaction establishing step, after the order matching is successful, a new transaction order is generated and submitted to a transaction system or a transaction platform for verification, the newly established transaction order information is generated into a hash value, and the hash value of the newly established transaction order information is written into a block chain;
in the step of delivering data and informing the whole network, after the order passes the verification, the data provider submits the encrypted result to the data purchasing party, and the order is completed.
In some embodiments, the order matching and confirming step further comprises the steps of:
the intelligent contract sends a matching order through matching the requirements of the data provider and the data buyer, and the matching is successful after the two parties confirm; and
one party of supply and demand inquires about buying or selling orders on the block chain, sends out an offer, and the other party confirms that the matching is successful.
In some embodiments, wherein the step of transacting further comprises the steps of:
a transaction verification step, namely after the transaction system receives the newly created order information, verifying whether the order content conforms to the preset verification rule;
if the transaction passes the verification, the information passing the transaction verification is generated into a hash value, and the hash value of the information passing the transaction verification is written into the block chain; and
if the transaction verification fails, information that fails the transaction verification is generated into a hash value, and the hash value of the information that fails the transaction verification is written into the blockchain.
In some embodiments, the data transaction method based on blockchain further includes a transaction record step, wherein in the transaction record step, after the order is completed or the verification fails, the system records the whole process and the result of the order, if the order is provided by the one-time data, the corresponding data information is removed, and the hash value of the record information is written into the blockchain, wherein the record information is sent to other nodes in the blockchain and received and stored by the other nodes.
In some embodiments, in the step of adding data, the data material information is also sent to other nodes in the blockchain, and the other nodes receive and store the data material information; in the step of issuing the order, the data purchasing information is also sent to other nodes in the block chain, and the other nodes receive and store the data purchasing information; in the step of order matching and confirmation, order matching and confirmation information is also sent to other nodes in the block chain, and the other nodes receive and store the order matching and confirmation information; wherein in the new trade creating step, the newly created trade order information is also sent to other nodes in the blockchain, and is received and saved by other nodes; wherein in the step of informing the whole network of the delivery data, the information of order completion is sent to other nodes in the blockchain, and is received and stored by other nodes.
In some embodiments, the blockchain-based data transaction method further comprises a pre-transaction preparation step of:
registering in a system before entering a transaction system, and acquiring a user hash address;
user binding wallet hashes, wherein one user binds at least one wallet hash, but one wallet hash can bind only one user hash;
the verification of the compliance of laws and regulations is carried out before the transaction is finished, and if the verification is not passed, the transaction is stopped and recorded; and
and introducing supervision, and setting a supervision mechanism as one of the nodes on the block chain to supervise the transaction behavior in the system.
According to another aspect of the present invention, there is also provided a blockchain-based data transaction system, where the blockchain-based data transaction system sets a plurality of blockchain nodes on a blockchain, and each blockchain node executes the steps of the blockchain-based data transaction method accordingly.
In some embodiments, the blockchain-based data transaction system stores main data based on a blockchain network, the upper layer application adopts a traditional WEB application service architecture, the application and the blockchain network use a remote procedure call framework for interaction, the WEUI and BootStrap framework are adopted for WEUI end page display, the iView front end framework is adopted for computer end page display, and the MySql database is adopted for data storage; wherein each block chain node is freely connected with each other to form a new connecting unit, and any one node in each block chain node can be set as a staged control center; wherein the blockchain-based data transaction system further provides a supervisory node capable of being supervised by any one of the blockchain networks; the data transaction system based on the blockchain provides a shared ledger based on a distributed ledger technology, and after a transaction is recorded in the shared ledger, the transaction record cannot be changed or tampered; the data transaction system based on the blockchain is provided with rules of intelligent contracts, and the rules are stored in the blockchain to be automatically executed, wherein the rules of the intelligent contracts comprise encryption and decryption rules, data submission rules, data query request rules, order submission rules, data acquisition rules and complaint and supervision rules.
In some embodiments, the node devices are connected to form a common area and a user area, wherein the node devices of the common area are configured to: executing user registration authentication and a public recording block; wherein the user area is configured to: the user node equipment is accessed to execute the backup of the public recording block and the storage of the user private data; if the user is a data provider, storing the encrypted private data in a self-owned device area, and after the transaction is completed, the data provider sends a data key to a data purchasing party to perform the transfer of the private data; if the user is a data provider, the transaction information after the transaction is completed is displayed as public information, and the transaction content is set as private data and only stored in the equipment area of the user; the data transaction system based on the block chain encrypts the data according to the category of the data to be encrypted and the configuration information of the user terminal, so that the application program in the user terminal can output the data only under the condition of possessing the secret key.
According to another aspect of the present invention, there is also provided a blockchain-based data transaction apparatus, including:
a memory for storing a software application,
a processor for executing the software application,
wherein the software application performs the steps of the blockchain-based data transaction method accordingly.
Drawings
Fig. 1 is a business flow diagram of a data transaction method based on a blockchain according to an embodiment of the present invention.
Fig. 2 is a block chain-based data transaction system in accordance with an embodiment of the present invention.
Fig. 3 is a platform architecture diagram of a blockchain-based data transaction system according to an embodiment of the present invention.
Fig. 4 is a diagram of a data transaction architecture for a blockchain-based data transaction system, according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of decryption and encryption between an application server of a blockchain-based data transaction system and node devices of an uninterrupted synchronized blockchain network according to an embodiment of the present invention.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
The present invention relates to a computer program. The invention relates to a data transaction method based on a block chain, which is a solution for controlling or processing an external object or an internal object of a computer by executing a computer program compiled according to a computer program processing flow through the computer on the basis of the computer program processing flow. The data transaction method based on the blockchain can utilize a computer system to be applied to data transaction, and utilize the characteristics of decentralized and non-falsifiable distributed account book records and the like of the blockchain technology to construct a transaction cloud platform, so that fairness, safety, privacy and reliability of data transaction are realized. It should be understood that the term "computer" as used herein refers not only to desktop computers, notebook computers, tablet computers, etc., but also includes other intelligent electronic devices capable of operating according to programs and processing data.
Specifically, the data transaction method based on the blockchain comprises the following steps:
adding data;
an order issuing step;
matching and confirming the order;
a new transaction creation step;
a transaction step;
delivering data and informing the whole network; and
and (5) a transaction filing step.
In the step of adding data, the data to be sold is encrypted and uploaded to the equipment of the data provider after the data is arranged by the data provider, meanwhile, the storage address of the data, the hash value of the data and the selling conditions are added into the intelligent contract, the data information is generated into the hash value, and the hash value of the data information is written into the block chain; it is worth mentioning that the adding condition is to more accurately match the buyer, and improve the timeliness and reliability. It is worth mentioning that in the data adding step, the data information is also sent to other nodes in the block chain, and the other nodes receive and store the data information.
In the step of issuing the order, the data purchasing direction issues an order to an intelligent contract, the order comprises data type, data quantity and data price information to form data purchasing information, and the data purchasing information is generated into a hash value and written into a block chain; it should be noted that in the step of issuing an order, the data purchase information is also sent to other nodes in the block chain, and the other nodes receive and store the data purchase information.
Wherein, the order matching and confirming step further comprises the following steps:
the intelligent contract sends a matching order through matching the requirements of the data provider and the data buyer, and the matching is successful after the two parties confirm;
one party of supply and demand inquires about buying or selling orders on the block chain, sends out an offer, and the other party of supply and demand succeeds in matching after confirmation; and
and acquiring the corresponding hash value for the information successfully matched and writing the hash value into the block chain.
It is worth mentioning that in the order matching and confirming step, the order matching and confirming information is also sent to other nodes in the block chain, and the other nodes receive and store the order matching and confirming information.
In the new transaction establishing step, after the order matching is successful, a new transaction order is generated and submitted to a transaction system or a transaction platform for verification, the newly established transaction order information is generated into a hash value, and the hash value of the newly established transaction order information is written into a block chain; it is worth mentioning that in the new trade creation step, the newly created trade order information is also sent to other nodes in the blockchain and received and saved by the other nodes.
Wherein the step of trading further comprises the steps of:
a transaction verification step, namely after the transaction system receives the newly created order information, verifying whether the order content conforms to the preset verification rule;
if the transaction passes the verification, the information passing the transaction verification is generated into a hash value, and the hash value of the information passing the transaction verification is written into the block chain; and
if the transaction verification fails, information that fails the transaction verification is generated into a hash value, and the hash value of the information that fails the transaction verification is written into the blockchain.
It should be noted that, in the transaction verification step, the verification rule verification result information is sent to other nodes in the blockchain, and is received and stored by the other nodes.
It should be noted that in the transaction verification step, the information that the transaction is verified is sent to other nodes in the blockchain, and is received and stored by other nodes.
It should be noted that in the transaction verification step, the information of the transaction verification failure is sent to other nodes in the blockchain, and is received and stored by other nodes.
In the step of delivering data notification, after the order passes verification, the data provider submits the encrypted result to the data purchasing party, and the order is completed; the system freezes the corresponding value in the digital wallet of the buyer, transfers the value according to a predetermined time point and writes the hash value of the information of order completion into the block chain; it should be noted that in the step of notifying the whole network of the delivery data, the information of order completion is sent to other nodes in the blockchain, and is received and stored by other nodes.
In the step of transaction record, after the order is completed or the verification fails, the system records the whole flow and the result of the order, if the order is provided by disposable data, corresponding data information is removed, and the hash value of the record information is written into the block chain; it should be noted that in the transaction registration step, the registration information is sent to other nodes in the blockchain, and is received and stored by other nodes.
It is worth mentioning that fig. 1 indicates the flow direction sequence of the implementation. In the new transaction creating step, the order is completed, and the link transaction and the value transfer are related. The block chain-based data transaction method further comprises the steps of preparing before transaction:
registering in a transaction system to obtain a user hash address when entering the transaction system;
the user has to bind wallet hashes, one user can bind a plurality of wallet hashes, but one wallet hash can only bind one user hash;
the transaction system must accord with relevant laws and regulations, and is verified before the transaction is completed, if yes, the transaction is prevented from being completed, and the transaction is recorded; and
and supervision is introduced, and a supervision mechanism is used as one of the nodes on the chain and can supervise the transaction behavior in the system at any time.
Further, a business flow diagram of a system implementing the blockchain-based data transaction method is shown in fig. 1. In the system, 101, 102, 103, 104, 105, 106, 107, 108, and 109 nodes in a block chain are provided.
The data to be sold can be sorted and encrypted and uploaded to own equipment, and meanwhile, the storage address comprising the data, the hash value of the data and selling conditions (including time point, selling price and other contents) are added into an intelligent contract, wherein the adding conditions are used for more accurately matching a buyer, and the timeliness and the reliability are improved; and generating a hash value of the data information, and writing the hash value of the data information into the block chain. And the 101 node is also used for sending the data information to other nodes except the 101 node in the block chain. And the other nodes except the node 101 are used for receiving and storing the data information.
102 nodes in the block chain issue orders, registered users need to buy data information (a data buyer can also be called as a buyer), an order can be issued to an intelligent contract, the order comprises information such as data type, data quantity, data price and the like, the data buying information is generated into a hash value, and the hash value of the buying information is written into the block chain. And the 102 node is further used for sending the purchase information to other nodes except the 102 node in the block chain. And the other nodes except the 102 node are used for receiving and storing the purchasing information.
The 103 nodes in the block chain, order matching and confirmation, are performed in the following two ways. The first method is as follows: the intelligent contract sends a matching order through the consistency of the requirements of the two matching parties, and the matching is successful after the two matching parties confirm; the second method comprises the following steps: the supplier and the demander are issued when a certain party inquires about buying (or selling) orders on the chain, and the matching is successful after the other party confirms. And the successfully matched information acquires a corresponding hash value and writes the hash value into the block chain. And the 103 node is also used for sending the information to other nodes except the 103 node in the block chain. And the other nodes except the 103 node are used for receiving and storing the information.
And (3) creating a new transaction by using a 104 node in the block chain, and generating a new transaction order and submitting the new transaction order to a transaction system (namely transaction platform verification) after the matching is successful. And generating a hash value of the newly created transaction order information, and writing the hash value of the newly created transaction order information into the block chain. And the node 104 is further used for sending the newly created trade order information to other nodes except the node 104 in the block chain. And a node other than node 104 for receiving and storing the newly created trade order information.
And a 105 node in the block chain is used for transaction verification, and after the transaction system receives newly created order information, whether the order content accords with the order content is verified through realizing a set verification rule. 105 nodes, further configured to send the verification rule verification result information to other nodes in the block chain except for 104 nodes. And the other nodes except the 105 node are used for receiving and storing the verification rule verification result information.
And 106 nodes in the block chain, wherein the transaction passes the verification, the information passing the transaction verification is generated into a hash value, and the hash value of the information passing the transaction verification is written into the block chain. 106, and is further configured to send the information that the transaction is verified to other nodes in the blockchain except for 106. And the other nodes except the 106 node are used for receiving and storing the information that the transaction is verified.
And a 107 node in the block chain, wherein the transaction verification fails, the information which fails in the transaction verification is generated into a hash value, and the hash value of the information which fails in the transaction verification is written into the block chain. And the 107 node is also used for sending the information of the transaction verification failure to other nodes except the 106 node in the blockchain. And the other nodes except the 107 node are used for receiving and storing the information of the transaction verification failure.
And after the 108 nodes in the block chain pass data delivery and order verification, the data provider submits the encrypted result to the data purchasing party, and the order is completed. The order is completed, and if the value transfer is involved, the system freezes the corresponding value in the buyer digital wallet and transfers according to the time point agreed in advance. And simultaneously writing the hash value of the information of order completion into the block chain. And the 108 node is also used for sending the information of order completion to other nodes except the 108 node in the block chain. And the other nodes except the 108 node are used for receiving and storing the order completion information.
And (3) recording the whole flow and result of the order by the system after the transaction is recorded and the order is completed (or the verification fails) by the 109 nodes in the block chain, removing the data information if the whole flow and result of the order are recorded and writing the hash value of the recorded information into the block chain. And the node 109 is also used for sending the record information to other nodes except the node 109 in the block chain. And the other nodes except the 109 node are used for receiving and storing the recorded information.
Those skilled in the art will appreciate that the methods of the present invention can be implemented in hardware, software, or a combination of hardware and software. The present invention can be realized in a centralized fashion in at least one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods described herein is suited. A typical combination of hardware and software could be a general purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein.
According to another aspect of the present invention, there is also provided a blockchain-based data transaction system, as shown in fig. 2, which is a block diagram of the blockchain-based data transaction system. In this embodiment, the data transaction system based on the blockchain stores main data based on a hyper-ridger Fabric blockchain network to achieve the purposes of tamper resistance and traceability, and the upper layer application adopts a traditional web application service architecture: the Springboot, SpringMVC technology, the application and the block chain network use RPC (remote procedure call) frame interaction, and the page display is divided into two blocks: WeChat end mainly adopts WEUI and BootStrap frame, PC end mainly adopts iview frame in Vue.
It is worth mentioning that the data transaction system based on the blockchain introduces the blockchain technology:
A. decentralized, in a system with many nodes distributed, each node has a highly autonomous character. The nodes can be freely connected with each other to form a new connection unit. Any node may become a phased hub, but does not have mandatory central control functions. Its advantages are: fault tolerance, attack resistance, collusion prevention, and the like.
In addition, "decentralized" goes to the platform administrator and mediator, not the supervisor. The policing node may conveniently access any one of the blockchain networks. Due to the public and transparent characteristic of the block chain, a monitoring mechanism can monitor the transaction data of the whole system more conveniently, and due to the tamper-proof characteristic of the block chain, the transaction cannot be changed or deleted once occurring, so that the situation that the data is fake and the monitoring is hidden cannot occur, and the monitoring mechanism is more favorable for monitoring the market behavior.
B. Distributed ledger technology, all network participants have access to a distributed ledger and its unalterable transaction records. Using this shared ledger, transactions are recorded only once, thereby eliminating the duplicative work typical of traditional business networks.
C. Tamper-proof, any participant cannot alter or tamper with the transaction after it is recorded to the shared ledger. If the transaction record contains an error, a new transaction must be added to undo the error, and then both transactions are visible.
D. Intelligent contracts, in order to speed up transactions, a set of rules called intelligent contracts are stored on the blockchain and executed automatically. The smart contract may define rules, conditions, terms, etc.
It is worth mentioning that the data transaction system based on the blockchain adopts data encryption. The data are encrypted by means of symmetric encryption, asymmetric encryption and the like according to the type of the data to be encrypted and the configuration information of the user terminal, so that an application program in the user terminal can output the data only under the condition of possessing a secret key, the safety and the stability of a system in the user terminal are ensured, the data and information of a trader are encrypted, and the privacy of supply and demand parties and the privacy of the data information are also protected.
Further, FIG. 3 shows a block diagram of a platform architecture in an exemplary embodiment. The connection through the node device is divided into a public area and a user area.
Wherein the common area is set to: the functions of user registration authentication, public recording blocks and the like are realized through the system;
wherein the user area is set to: and the user node equipment is accessed to realize the backup of the public recording block and the storage of the private data of the user.
The transaction system serves as a public area and displays public and transparent data information.
If the user is the data provider, the private data after data encryption is stored in the own equipment area, and after the transaction is completed, the data provider sends a data key to the data buyer to transfer the private data.
If the user is the data provider, the transaction information after the transaction is completed is displayed as public information, and the transaction content (namely, the purchased specific data content) is private data and is only stored in the equipment area of the user.
The blockchain transaction in the blockchain-based data transaction system is not a transaction of hand-delivery of money in the conventional sense, but is a transfer-type transaction. When a node has a solution, it broadcasts all time stamped transactions for that block record to the whole network and is checked by other nodes of the whole network.
Further, as shown in fig. 4, a data transaction architecture diagram in an embodiment is shown, indicating a process of data transaction implementation. It is worth mentioning that, as it relates to transactions, the platform needs to establish specifications: encrypting and decrypting rules; a data submission rule; a data query request rule; order submission rules; a data acquisition rule; complaints and regulatory rules.
It is worth mentioning that the decentralized design is realized by changing the data centralization input mode into a mode that each client node can input data into a data block of a block chain. The decentralized storage method based on the block chain technology uses an independent program for each client, and each client is detailed to each process of suppliers, distributors, warehouse logistics and the like. According to the technology based on the block chain, in a block chain network, each client node is equal, when one client node records data and forms a block chain, according to a common identification mechanism of the block chain, common identification is achieved among all nodes, and the data is sent to all nodes in the block chain. And the data input by the client node is encrypted by combining each input block with the public key through an asymmetric encryption algorithm and is stored on the application program server.
When the user reads the node data (public information), the corresponding private key is used for decryption during encryption, so that the block chain data is acquired, as shown in fig. 5.
The monitoring mechanism serves as one of the nodes on the chain, and can also check information in the nodes at any time to monitor transaction behaviors in the system in real time.
It is worth mentioning that, based on the technology of the block chain, a single or even a plurality of nodes can be traced, and the modification of a single database cannot affect the databases of other nodes. Thereby enabling non-tamper-ability.
According to another aspect of the present invention, there is also provided a blockchain-based data transaction apparatus, including: a software application, a memory for storing the software application, and a processor for executing the software application. Each program of the software application program can correspondingly execute the steps of the data transaction method based on the block chain.
A typical combination of hardware and software could be a general purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein.
The present invention can be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein. The computer program product is embodied in one or more computer-readable storage media having computer-readable program code embodied therein. According to another aspect of the invention, there is also provided a computer-readable storage medium having stored thereon a computer program capable, when executed by a processor, of performing the steps of the method of the invention. Computer storage media is media in computer memory for storage of some discrete physical quantity. Computer storage media includes, but is not limited to, semiconductors, magnetic disk storage, magnetic cores, magnetic drums, magnetic tape, laser disks, and the like. It will be appreciated by persons skilled in the art that computer storage media are not limited by the foregoing examples, which are intended to be illustrative only and not limiting of the invention.
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.
It can be understood by those skilled in the art that, when the data transaction system based on the blockchain provided in the foregoing embodiment executes the data transaction method based on the blockchain, the above-mentioned division of the functional modules is merely illustrated, and in other embodiments, other modified embodiments and specific implementations may also be provided, and the present invention is not limited in this respect.
It will be appreciated by those skilled in the art that the present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, systems and computer program products according to the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations 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 and/or block diagram block or blocks.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are given by way of example only and are not limiting of the invention. The objects of the invention have been fully and effectively accomplished. The functional and structural principles of the present invention have been shown and described in the examples, and any variations or modifications of the embodiments of the present invention may be made without departing from the principles.

Claims (10)

1. A data transaction method based on a block chain is characterized by comprising the following steps:
adding data;
an order issuing step;
matching and confirming the order;
a new transaction creation step;
a transaction step; and
delivering data and informing the whole network;
in the step of adding data, the data to be sold is encrypted and uploaded to the equipment of the data provider after the data is arranged by the data provider, meanwhile, the storage address of the data, the hash value of the data and the selling conditions are added into the intelligent contract, the data information is generated into the hash value, and the hash value of the data information is written into the block chain;
in the step of issuing the order, the data purchasing direction issues an order to an intelligent contract, the order comprises data type, data quantity and data price information to form data purchasing information, and the data purchasing information is generated into a hash value and written into a block chain;
the order matching and confirming step executes order matching and confirming, wherein for information of successful matching, a corresponding hash value is obtained and written into a block chain;
in the new transaction establishing step, after the order matching is successful, a new transaction order is generated and submitted to a transaction system or a transaction platform for verification, the newly established transaction order information is generated into a hash value, and the hash value of the newly established transaction order information is written into a block chain;
in the step of delivering data and informing the whole network, after the order passes the verification, the data provider submits the encrypted result to the data purchasing party, and the order is completed.
2. The blockchain-based data transaction method of claim 1, wherein the order matching and confirming step further comprises the steps of:
the intelligent contract sends a matching order through matching the requirements of the data provider and the data buyer, and the matching is successful after the two parties confirm; and
one party of supply and demand inquires about buying or selling orders on the block chain, sends out an offer, and the other party confirms that the matching is successful.
3. The blockchain-based data transaction method of claim 1, wherein the transaction step further comprises the steps of:
a transaction verification step, namely after the transaction system receives the newly created order information, verifying whether the order content conforms to the preset verification rule;
if the transaction passes the verification, the information passing the transaction verification is generated into a hash value, and the hash value of the information passing the transaction verification is written into the block chain; and
if the transaction verification fails, information that fails the transaction verification is generated into a hash value, and the hash value of the information that fails the transaction verification is written into the blockchain.
4. The blockchain-based data transaction method according to claim 1, wherein the blockchain-based data transaction method further comprises a transaction filing step, wherein in the transaction filing step, after the order is completed or the verification fails, the system files the whole process and the result of the order, if the data is provided in one time, the corresponding data information is removed, and the hash value of the filed information is written into the blockchain, wherein the filed information is sent to other nodes in the blockchain and received and stored by the other nodes.
5. The blockchain-based data transaction method of claim 1, wherein in the adding data step, the data profile information is also transmitted to other nodes in the blockchain, and the other nodes receive and store the data profile information; in the step of issuing the order, the data purchasing information is also sent to other nodes in the block chain, and the other nodes receive and store the data purchasing information; in the step of order matching and confirmation, order matching and confirmation information is also sent to other nodes in the block chain, and the other nodes receive and store the order matching and confirmation information; wherein in the new trade creating step, the newly created trade order information is also sent to other nodes in the blockchain, and is received and saved by other nodes; wherein in the step of informing the whole network of the delivery data, the information of order completion is sent to other nodes in the blockchain, and is received and stored by other nodes.
6. The blockchain-based data transaction method according to claim 1, wherein the blockchain-based data transaction method further includes a pre-transaction preparation step of:
registering in a system before entering a transaction system, and acquiring a user hash address;
user binding wallet hashes, wherein one user binds at least one wallet hash, but one wallet hash can bind only one user hash;
the verification of the compliance of laws and regulations is carried out before the transaction is finished, and if the verification is not passed, the transaction is stopped and recorded; and
and introducing supervision, and setting a supervision mechanism as one of the nodes on the block chain to supervise the transaction behavior in the system.
7. A blockchain-based data transaction system, wherein the blockchain-based data transaction system is configured with a plurality of blockchain nodes on a blockchain, and each blockchain node performs the steps of the blockchain-based data transaction method according to any one of claims 1 to 6.
8. The blockchain-based data transaction system of claim 7, wherein the blockchain-based data transaction system stores main data based on a blockchain network, an upper layer application adopts a traditional WEB application service architecture, the application and the blockchain network use a remote procedure call framework for interaction, a WEUI and BootStrap framework is adopted for WEUI end-of-mail page presentation, an iView front end framework is adopted for computer end-of-mail page presentation, and a MySql database is adopted for data storage; wherein each block chain node is freely connected with each other to form a new connecting unit, and any one node in each block chain node can be set as a staged control center; wherein the blockchain-based data transaction system further provides a supervisory node capable of being supervised by any one of the blockchain networks; the data transaction system based on the blockchain provides a shared ledger based on a distributed ledger technology, and after a transaction is recorded in the shared ledger, the transaction record cannot be changed or tampered; the data transaction system based on the blockchain is provided with rules of intelligent contracts, and the rules are stored in the blockchain to be automatically executed, wherein the rules of the intelligent contracts comprise encryption and decryption rules, data submission rules, data query request rules, order submission rules, data acquisition rules and complaint and supervision rules.
9. The blockchain-based data trafficking system of claim 7, wherein the node devices are connected to form a common area and a user area, wherein the node devices of the common area are configured to: executing user registration authentication and a public recording block; wherein the user area is configured to: the user node equipment is accessed to execute the backup of the public recording block and the storage of the user private data; if the user is a data provider, storing the encrypted private data in a self-owned device area, and after the transaction is completed, the data provider sends a data key to a data purchasing party to perform the transfer of the private data; if the user is a data provider, the transaction information after the transaction is completed is displayed as public information, and the transaction content is set as private data and only stored in the equipment area of the user; the data transaction system based on the block chain encrypts the data according to the category of the data to be encrypted and the configuration information of the user terminal, so that the application program in the user terminal can output the data only under the condition of possessing the secret key.
10. A blockchain-based data transaction apparatus, comprising:
a memory for storing a software application,
a processor for executing the software application,
wherein the software application performs the steps of the blockchain-based data transaction method of any one of claims 1 to 6 accordingly.
CN202011406247.5A 2020-12-03 2020-12-03 Data transaction method, system and equipment based on block chain Active CN112565412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011406247.5A CN112565412B (en) 2020-12-03 2020-12-03 Data transaction method, system and equipment based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011406247.5A CN112565412B (en) 2020-12-03 2020-12-03 Data transaction method, system and equipment based on block chain

Publications (2)

Publication Number Publication Date
CN112565412A true CN112565412A (en) 2021-03-26
CN112565412B CN112565412B (en) 2022-11-04

Family

ID=75048228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011406247.5A Active CN112565412B (en) 2020-12-03 2020-12-03 Data transaction method, system and equipment based on block chain

Country Status (1)

Country Link
CN (1) CN112565412B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111429236A (en) * 2020-04-21 2020-07-17 重庆新致金服信息技术有限公司 Trading system and method for market maker trading mode
CN113724083A (en) * 2021-09-02 2021-11-30 上海万向区块链股份公司 Data transaction method and system based on intelligent contract
CN113743933A (en) * 2021-07-21 2021-12-03 德明尚品科技集团有限公司 E-commerce platform transaction information encryption transmission method and system based on block chain

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170011460A1 (en) * 2015-07-09 2017-01-12 Ouisa, LLC Systems and methods for trading, clearing and settling securities transactions using blockchain technology
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107483198A (en) * 2017-09-25 2017-12-15 中国科学院信息工程研究所 A kind of block catenary system supervised and method
CN108985761A (en) * 2018-06-26 2018-12-11 林群涛 Art work reservation exchange management method and its management platform based on block chain technology
CN109190331A (en) * 2018-08-20 2019-01-11 电信科学技术第五研究所有限公司 A kind of space instrumentation and command network data trade method based on block chain
CN109389500A (en) * 2018-09-29 2019-02-26 重庆邮电大学 Data trade platform based on ether mill
CN109558517A (en) * 2018-10-24 2019-04-02 中山大学 A kind of Secure election system based on block chain
CN110135819A (en) * 2019-05-21 2019-08-16 福建航誉大数据服务有限公司 A kind of third party's trust data transaction system and method based on block chain
US20200013118A1 (en) * 2018-07-06 2020-01-09 Accenture Global Solutions Limited Distributed ledger system for anonymized transaction management
CN111325548A (en) * 2020-02-27 2020-06-23 苏州市星际云通区块链科技有限公司 Switched blockchain system and corresponding general blockchain interoperation method and network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170011460A1 (en) * 2015-07-09 2017-01-12 Ouisa, LLC Systems and methods for trading, clearing and settling securities transactions using blockchain technology
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107483198A (en) * 2017-09-25 2017-12-15 中国科学院信息工程研究所 A kind of block catenary system supervised and method
CN108985761A (en) * 2018-06-26 2018-12-11 林群涛 Art work reservation exchange management method and its management platform based on block chain technology
US20200013118A1 (en) * 2018-07-06 2020-01-09 Accenture Global Solutions Limited Distributed ledger system for anonymized transaction management
CN109190331A (en) * 2018-08-20 2019-01-11 电信科学技术第五研究所有限公司 A kind of space instrumentation and command network data trade method based on block chain
CN109389500A (en) * 2018-09-29 2019-02-26 重庆邮电大学 Data trade platform based on ether mill
CN109558517A (en) * 2018-10-24 2019-04-02 中山大学 A kind of Secure election system based on block chain
CN110135819A (en) * 2019-05-21 2019-08-16 福建航誉大数据服务有限公司 A kind of third party's trust data transaction system and method based on block chain
CN111325548A (en) * 2020-02-27 2020-06-23 苏州市星际云通区块链科技有限公司 Switched blockchain system and corresponding general blockchain interoperation method and network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吉斌: "《基于联盟区块链的电力碳权交易机制设计》", 《华电技术》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111429236A (en) * 2020-04-21 2020-07-17 重庆新致金服信息技术有限公司 Trading system and method for market maker trading mode
CN111429236B (en) * 2020-04-21 2023-08-08 重庆新致金服信息技术有限公司 Transaction system and method for market maker transaction mode
CN113743933A (en) * 2021-07-21 2021-12-03 德明尚品科技集团有限公司 E-commerce platform transaction information encryption transmission method and system based on block chain
CN113724083A (en) * 2021-09-02 2021-11-30 上海万向区块链股份公司 Data transaction method and system based on intelligent contract

Also Published As

Publication number Publication date
CN112565412B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN112565412B (en) Data transaction method, system and equipment based on block chain
US20200272619A1 (en) Method and system for audit and payment clearing of electronic trading systems using blockchain database
US20180075536A1 (en) Multiparty reconciliation systems and methods
US20170124556A1 (en) Event synchronization systems and methods
JP2023018052A (en) Method and system for indicating exchange related to token held anonymously on block chain
US6938019B1 (en) Method and apparatus for making secure electronic payments
US10956973B1 (en) System and method for verifiable invoice and credit financing
CN112328689A (en) Universal asset business ecosystem based on block chain
KR20190107601A (en) Method and system for the generation of user-initiated federated identities
WO2020233404A1 (en) Transaction system and method, and nodes in transaction system
US20210233200A1 (en) Distributed ledger based distributed gaming system
CN111339550A (en) Comment information credibility method based on block chain technology
CN110941840B (en) Data processing method, system and terminal
CN111414434B (en) Block chain-based data transaction management network, transaction device and storage medium
CN112801778A (en) Federated bad asset blockchain
CN111274597B (en) Data processing method and device
CN110766403A (en) Data processing device and method based on block chain and storage medium
KR102085997B1 (en) Method and system for real estate transaction service based on block chain
CN111583041A (en) Block chain-based bond issue data storage and verification processing method and device
CN111950009A (en) Block chain-based affiliation data detection method and device
CN113939841A (en) Transaction suggestion apparatus, system and method
CN110599176A (en) Data processing method and device based on block chain, storage medium and node equipment
CN110807684B (en) Block chain technology-based sales document storage method, device, server and medium
CN115619396A (en) Data certificate processing method and device, block link node and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 401147 21st floor, building 6, xiangnai mansion, 99 Xinji Avenue, Yubei District, Chongqing

Patentee after: Chongqing Xinzhi Automotive Technology Co.,Ltd.

Address before: 401147 21st floor, building 6, xiangnai mansion, 99 Xinji Avenue, Yubei District, Chongqing

Patentee before: Chongqing Xinzhi Jinfu Information Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder