CN111127013A - Decentralized data transaction method, device, equipment and medium based on block chain - Google Patents

Decentralized data transaction method, device, equipment and medium based on block chain Download PDF

Info

Publication number
CN111127013A
CN111127013A CN201911352243.0A CN201911352243A CN111127013A CN 111127013 A CN111127013 A CN 111127013A CN 201911352243 A CN201911352243 A CN 201911352243A CN 111127013 A CN111127013 A CN 111127013A
Authority
CN
China
Prior art keywords
data
transaction
preset
target
sub
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
CN201911352243.0A
Other languages
Chinese (zh)
Other versions
CN111127013B (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.)
Shenzhen University
Original Assignee
Shenzhen University
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 Shenzhen University filed Critical Shenzhen University
Priority to CN201911352243.0A priority Critical patent/CN111127013B/en
Publication of CN111127013A publication Critical patent/CN111127013A/en
Application granted granted Critical
Publication of CN111127013B publication Critical patent/CN111127013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a decentralized data transaction method, a decentralized data transaction device, equipment and a medium based on a block chain, wherein the method comprises the following steps: when first transaction subdata is received based on a preset block link, selecting a first target fragment from each preset fragment of a preset network, and distributing the first transaction subdata to the first target fragment for processing, wherein each preset fragment is obtained based on a preset first workload proof puzzle; when second transaction subdata of the data transaction is received, selecting a second target fragment, and distributing the second transaction subdata to the second target fragment for processing; and acquiring target storage data of the seller blockchain users pointed by the first transaction subdata and the second transaction subdata, and sending the target storage data to the buyer blockchain users pointed by the first transaction subdata and the second transaction subdata. The invention solves the technical problem of low transaction efficiency of the existing data transaction based on the block chain.

Description

Decentralized data transaction method, device, equipment and medium based on block chain
Technical Field
The invention relates to the technical field of block chains, in particular to a decentralized data transaction method, a decentralized data transaction device, equipment and a medium based on a block chain.
Background
The blockchain technology has been applied to the fields of digital currencies such as bitcoin, distributed ledger and the like, but in the large-scale data transaction process, the transaction speed of the data transaction based on the blockchain technology is limited, specifically, the efficiency of the consensus mechanism of the blockchain determines the transaction speed, while the existing consensus mechanism of the blockchain technology needs to rely on each consensus node in the whole network to achieve credible and unique blockrecord, and the dependence on each consensus node in the whole network causes the decrease of the consensus efficiency, thereby decreasing the transaction efficiency of the whole data transaction.
Disclosure of Invention
The invention mainly aims to provide a decentralized data transaction method, a decentralized data transaction device, equipment and a medium based on a block chain, and aims to solve the technical problem that the existing data transaction based on the block chain is low in transaction efficiency.
In order to achieve the above object, an embodiment of the present invention provides a block chain-based decentralized data transaction method, where the block chain-based decentralized data transaction method includes:
when first transaction subdata of data transaction is received based on a preset block link, selecting a first target fragment from each preset fragment of a preset network, and distributing the first transaction subdata to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle;
when second transaction subdata of the data transaction is received based on the preset block link, selecting a second target fragment from each fragment of the preset network, and distributing the second transaction subdata to the second target fragment for processing;
after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly are obtained, and the target storage data is sent to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly.
Optionally, the step of obtaining each preset segment of the preset network based on a preset first workload proof puzzle includes:
selecting a target directory service node corresponding to the preset network through a preset second workload certification puzzle;
acquiring the number of nodes of processing nodes contained in each preset network fragment, acquiring each initial network fragment through a preset first workload proof puzzle and the number of the nodes, and acquiring a random code corresponding to each initial network fragment;
and performing consensus verification on the random code through the target directory service node, and determining the initial network fragment as each preset fragment of the preset network if the consensus verification passes.
Optionally, the step of selecting the target directory service node corresponding to the preset network by presetting a second workload certification puzzle comprises:
randomly selecting a certain number of first service nodes from the preset network;
the puzzle is proved through a preset second workload, and a plurality of second service nodes are selected from the preset network in sequence within a preset time;
and replacing the nodes in the first service node with the plurality of second service nodes one by one to obtain the target directory service node.
Optionally, when first transaction sub-data of a data transaction is received based on a preset block link, selecting a first target segment from preset segments of a preset network, and allocating the first transaction sub-data to the first target segment before the processing step includes:
acquiring an area file for indexing the target storage data, and linking the area file to a routing layer corresponding to a preset database for storing the target storage data through a preset link mechanism so as to link the area file to the target storage data;
acquiring data attribute information of the target storage data and a hash value of the zone file;
and storing the data attribute information, the hash value of the zone file and the target storage data into the preset block chain so as to avoid tampering of the data transaction.
Optionally, after the processing the first transaction sub-data and the second transaction sub-data, obtaining target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point together, and sending the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point together includes:
after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point together are obtained through the area file index;
verifying the target storage data through the data attribute information stored in the preset block chain and the hash value of the zone file;
and if the target storage data passes the verification, sending the target storage data to a buyer block chain user pointed by the first transaction sub-data and the second transaction sub-data together.
Optionally, the step of sending the target storage data to the buyer block chain user to which the first transaction sub-data and the second transaction sub-data are commonly directed comprises:
acquiring first evaluation information of the buyer blockchain user on the target storage data and the seller blockchain user;
acquiring second evaluation information of the seller blockchain user on the buyer blockchain user;
storing the first evaluation information and the second evaluation information into the preset block chain, and updating credit values of the buyer block chain users and the seller block chain users pre-stored in the preset block chain based on the first evaluation information and the second evaluation information.
Optionally, the step of selecting a first target segment from each preset segment of the preset network when receiving the first transaction sub-data of the data transaction based on the preset block link includes:
when first transaction subdata of data transaction is received based on a preset block link, address information carried by the first transaction subdata is obtained;
and selecting a first target fragment from all preset fragments of a preset network according to the address information.
The invention also provides a decentralized data transaction device based on the block chain, which comprises:
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a first target fragment from all preset fragments of a preset network when first transaction subdata of data transaction is received based on a preset block link, and distributing the first transaction subdata to the first target fragment for processing, wherein all the preset fragments of the preset network are obtained based on a preset first workload certification puzzle;
the second selection module is used for selecting a second target fragment from each fragment of the preset network when second transaction subdata of the data transaction is received based on the preset block link, and distributing the second transaction subdata to the second target fragment for processing;
the first obtaining module is configured to, after processing the first transaction sub-data and the second transaction sub-data, obtain target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly, and send the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly.
Optionally, the first selecting module includes:
the first selection unit is used for selecting a target directory service node corresponding to the preset network through a preset second workload certification puzzle;
the first obtaining unit is used for obtaining the number of nodes of processing nodes contained in each preset network fragment, obtaining each initial network fragment through a preset first workload proving puzzle and the number of the nodes, and obtaining a random code corresponding to each initial network fragment;
and the determining unit is used for carrying out consensus verification on the random code through the target directory service node, and determining the initial network fragment as each preset fragment of the preset network if the consensus verification passes.
Optionally, the first selecting unit includes:
the first selection subunit is used for randomly selecting a certain number of first service nodes from the preset network;
the second selection subunit is used for sequentially selecting a plurality of second service nodes from the preset network within preset time through a preset second workload certification puzzle;
and the replacing subunit is used for replacing the nodes in the first service node with the plurality of second service nodes one by one to obtain the target directory service node.
Optionally, the block chain-based decentralized data transaction device includes:
a second obtaining module, configured to obtain an area file for indexing the target storage data, and link the area file to a routing layer corresponding to a preset database storing the target storage data through a preset link mechanism, so as to link the area file to the target storage data;
a third obtaining module, configured to obtain data attribute information of the target storage data and a hash value of the zone file;
and the storage module is used for storing the data attribute information, the hash value of the zone file and the target storage data into the preset block chain so as to avoid tampering of the data transaction.
Optionally, the first obtaining module includes:
the second obtaining unit is used for obtaining target storage data of a seller blockchain user pointed by the first transaction sub-data and the second transaction sub-data through the area file index after processing the first transaction sub-data and the second transaction sub-data;
the first verification unit is used for verifying the target storage data through the data attribute information stored in the preset block chain and the hash value of the zone file;
and the sending unit is used for sending the target storage data to a buyer block chain user pointed by the first transaction subdata and the second transaction subdata when the target storage data passes verification.
Optionally, the block chain-based decentralized data transaction device includes:
the fourth acquisition module is used for acquiring the target storage data of the buyer blockchain user and the first evaluation information of the seller blockchain user;
the fifth obtaining module is used for obtaining second evaluation information of the seller blockchain user to the buyer blockchain user;
and the updating module is used for storing the first evaluation information and the second evaluation information into the preset block chain and updating credit values of the buyer block chain users and the seller block chain users prestored in the preset block chain based on the first evaluation information and the second evaluation information.
Optionally, the first selecting module includes:
the third obtaining unit is used for obtaining address information carried by first transaction subdata when the first transaction subdata of data transaction is received based on a preset block link;
and the second selection unit is used for selecting the first target fragment from all preset fragments of the preset network according to the address information.
The invention also provides a medium, wherein the medium stores a block chain based decentralized data transaction program, and the block chain based decentralized data transaction program realizes the steps of the block chain based decentralized data transaction method when being executed by a processor.
When first transaction subdata of data transaction is received based on a preset block link, a first target fragment is selected from each preset fragment of a preset network, and the first transaction subdata is distributed to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle; when second transaction subdata of the data transaction is received based on the preset block link, selecting a second target fragment from each fragment of the preset network, and distributing the second transaction subdata to the second target fragment for processing; after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly are obtained, and the target storage data is sent to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly. In the application, when first transaction sub-data and second transaction sub-data of a data transaction are received based on a preset block link, corresponding first target fragments and corresponding second target fragments are selected from preset fragments of a preset network for processing, and the preset fragments of the preset network are obtained based on a preset first workload certification puzzle, that is, in the application, for the transaction based on a block chain, processing can be realized only by fragment consensus, so that the transaction processing efficiency is improved, target storage data of a seller block chain user to which the first transaction sub-data and the second transaction sub-data point commonly are obtained, and the target storage data is sent to the buyer block chain user to which the first transaction sub-data and the second transaction sub-data point commonly. The technical problem that the transaction efficiency of the existing data transaction based on the block chain is low is solved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a first embodiment of a block chain-based decentralized data transaction method according to the present invention;
fig. 2 is a detailed flowchart of steps in which each preset segment of the preset network is obtained based on a preset first workload proof puzzle according to a second embodiment of the decentralized data transaction method based on a block chain;
FIG. 3 is a schematic diagram of an apparatus architecture of a hardware operating environment to which a method of an embodiment of the invention relates;
FIG. 4 is a schematic diagram of a block chain based decentralized data transaction method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a decentralized data transaction method based on a block chain, and in one embodiment of the decentralized data transaction method based on the block chain, referring to fig. 1, the decentralized data transaction method based on the block chain comprises the following steps:
step S10, when first transaction subdata of data transaction is received based on a preset block link, selecting a first target fragment from each preset fragment of a preset network, and distributing the first transaction subdata to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle;
step S20, when second transaction subdata of the data transaction is received based on the preset block link, selecting a second target fragment from each fragment of the preset network, and distributing the second transaction subdata to the second target fragment for processing;
step S30, after the first transaction sub-data and the second transaction sub-data are processed, obtaining target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point, and sending the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point.
The method comprises the following specific steps:
step S10, when first transaction subdata of data transaction is received based on a preset block link, selecting a first target fragment from each preset fragment of a preset network, and distributing the first transaction subdata to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle;
it should be noted that, in this embodiment, the block chain based decentralized data transaction method is applied to a block chain based decentralized data transaction system, the block chain based decentralized data transaction system belongs to a block chain based decentralized data transaction device, specifically, in the block chain based decentralized data transaction system, a bottom layer is provided with a plurality of or one preset block chain (corresponding to one or more block chain users), the one or preset block chain constitutes a block chain subsystem of the decentralized data transaction system, in the block chain subsystem, besides ensuring normal generation of blocks, each block, block node or block chain user can be fragmented to improve a transaction speed, specifically, in a fragmentation process, the block chain subsystem is first obtained corresponding to a preset network region, for example, the preset network region corresponding to the block chain subsystem may be a network region of the whole city region of shenzhen city, after the network region of the city region of shenzhen city is acquired, a block or a block node corresponding to an organization such as a bank and a government with a front reputation is selected from the blocks or the block nodes of the city region network of shenzhen city as a service node (of course, in this embodiment, the service node may not be provided), and the service node plays roles of supervising sharding, common identification verification, and the like, that is, after the service node is acquired, sharding is performed on other blocks or block nodes outside the non-service node of the network of shenzhen city, and the purpose of the sharding may be: the data transaction in the corresponding partitioned area does not need to be based on the block of the whole network or the block of the whole network area for consensus, so that the consensus efficiency is improved, and due to the partitioning, the data transaction in the corresponding area can be processed in batch in a targeted manner, so that the transaction efficiency is improved. That is, a consensus function for data transactions is implemented in the blockchain subsystem and authenticity of data transactions is ensured.
In addition, in this embodiment, the decentralized data transaction system is further provided with a virtual chain subsystem, where the virtual chain subsystem is a subsystem corresponding to the blockchain subsystem and storing or processing various data of the blockchain subsystem, that is, functions of the virtual chain subsystem include or are equivalent to functions of a database at an existing server end, and only the virtual chain subsystem correspondingly processes various data of the blockchain subsystem instead of terminal data or client data.
The virtual chain subsystem determines the data transaction mode as follows: the virtual chain subsystem acquires a data transaction mode from a preset intelligent contract, wherein the intelligent contract is a prestored program which automatically runs and defines the elements of the contract, such as a data transaction precondition, the operation of data transaction execution and the like, the virtual chain subsystem can automatically complete the fulfillment of the transaction mode through the intelligent contract without human intervention, and it should be noted that the virtual chain subsystem supports a plurality of data modes of data transaction through the intelligent contract, for example, a common mode is a publish-search-buy mode, that is, specifically, the seller blockchain user publishes data index information at the decentralized data transaction system, the buyer blockchain user searches for data of interest and locates the seller blockchain user through the decentralized data transaction system, and then the buyer blockchain user purchases the data of the seller blockchain user. The buyer blockchain user may evaluate the purchased data (i.e., the seller blockchain user) after the purchase, and the seller blockchain user may also evaluate the buyer blockchain user, it should be noted that the data transaction mode determined by the virtual chain subsystem may also include another mode, which is a request-response-purchase mode. The data request is submitted by a buyer blockchain user, the data request describes the content such as the type and the like of required data, the seller blockchain user can respond to the data request within a determined time, or the decentralized data transaction system can automatically match the data request according to the data release information of each seller blockchain user, finally, the buyer blockchain user manually selects or automatically selects the seller blockchain user according to a preset algorithm according to the response or the matching result, the buyer blockchain user starts data purchase, and after the buyer blockchain user purchases, the data buyer and seller blockchain users can evaluate the other party. It should be noted that both of the above two modes can be further refined, that is, there may be multiple seller blockchain users and multiple buyer blockchain users, the data source may be jointly provided by multiple seller blockchain users (for example, each seller has data that can complement each other, but does not want to directly disclose the data), and multiple buyer blockchain users jointly purchase the data and make evaluations on the data source and the seller blockchain users. Likewise, the seller blockchain user may also rate the buyer blockchain user.
Furthermore, the virtual chain subsystem may define a finite state machine (finite state machine), determine data operations of the legal transaction data, data states of the legal transaction data, and the like, generate a migration table composed of the data states of the legal transaction data, the data operations, and the like, and implement verification, maintenance, or recording of the data operations, the data states of the data, and the like.
Referring to fig. 4, in addition to the virtual chain subsystem and the blockchain subsystem, the decentralized data transaction system further includes a data subsystem (or a preset database) and a routing subsystem (routing layer), where the data subsystem (or the preset database, the storage layer) stores therein data of each seller blockchain user, and the data of each seller blockchain user corresponds to an index path, and the index path is disposed in the routing subsystem, so that the buyer blockchain user can index the data to the seller blockchain user.
It should be noted that, in the data subsystem (or the preset database), two storage modes are simultaneously supported, one is a variable storage mode, and the other is an unchangeable storage mode, for the variable storage mode, if a user of a certain blockchain modifies data based on the original data, the index information of the corresponding area file needs to be updated, for the unchangeable storage mode, if a user of a certain blockchain modifies data based on the original data, the index information of the corresponding area file does not need to be updated,
specifically, data transaction is realized by a decentralized data transaction system including a virtual chain subsystem, a blockchain subsystem, a data subsystem, a routing subsystem, and the like, for example: the a blockchain user performs data transaction with the B blockchain user through the blockchain, and if the a blockchain user is a data purchaser, that is, a purchaser blockchain user, and the B blockchain user is a data provider, that is, a seller blockchain user, the specific data transaction process may be: the data purchaser A blockchain user submits a purchase order for the service S to the data provider B blockchain user by submitting the purchase order to the decentralized data transaction system based on the blockchain, the data provider B blockchain user submits a payment request P to the data purchaser A blockchain user after receiving the purchase order, the data purchaser A blockchain user pays the payment request to complete the payment, after the payment is completed, the seller blockchain user B blockchain user sends the service S based on the payment completion, at the moment, the data purchaser can use the service S, and transaction information is generated (the process comprises the steps of positioning to the B blockchain user through the routing subsystem, and obtaining the service S of the B blockchain user through the data subsystem). Wherein, the payment from the data buyer a blockchain user to the seller blockchain user B blockchain user involves a data transaction on the blockchain, and the confirmation of the payment received by the seller blockchain user B blockchain user and the sending of the data to the data buyer a blockchain user also involves a data transaction on the blockchain.
When first transaction subdata of data transaction is received based on a preset block link, selecting a first target fragment from each preset fragment of a preset network, and distributing the first transaction subdata to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle;
in this embodiment, when first transaction sub-data of a data transaction, such as a payment request instruction, is received based on a preset block link, a first target segment is selected from each preset segment of a preset network, where the step of selecting the first target segment from each preset segment of the preset network when the first transaction sub-data of the data transaction is received based on the preset block link includes:
step S11, when first transaction subdata of a data transaction is received based on a preset block link, address information carried by the first transaction subdata is obtained;
step S12, selecting a first target segment from each preset segment of the preset network according to the address information.
In this embodiment, instead of randomly performing fragmentation, after address information carried by the first transaction sub-data is extracted, fragmentation is performed according to the address information, where the carried address information is obtained from an IP address carried in the first transaction sub-data, and specifically, the carried address information is obtained from an IP address of a buyer block chain user carried in the first transaction sub-data.
And selecting a first target fragment from each preset fragment of the preset network according to the address information, for example, if the address information is an a region, and the a region is closest to the W fragment, using the W fragment as a corresponding first target fragment. Of course, other slicing modes are available, and are not specifically described here.
And after determining a first target fragment, distributing the first transaction sub-data to the first target fragment for processing. The allocating of the first transaction sub-data to the first target segment refers to allocating the first transaction sub-data to the first target segment for block chain consensus processing, authenticity confirmation, and the like.
In this embodiment, preset segments of a preset network are processed, specifically, each preset segment of the preset network is obtained based on a preset first workload proof puzzle, that is, the preset segment is a segment, in this embodiment, L transaction data of a certain data transaction is placed in a transaction pool, each blockchain user (or a blocknode, a block, etc.) competes in the transaction pool to obtain a billing right corresponding to the L transaction data, the competing to obtain the billing right corresponding to the L transaction data is to find a blockchain user or a blocknode that meets a preset first workload proof puzzle value, a nonce is a random number or a random code (it should be noted that a process of searching for nonces by all blockchain users is a traversal process), n0 nodes before a nonce are obtained first, and the n0 nodes can form a network segment, after obtaining one network fragment, continuing to search for and find other N0 nodes of the nonce, and forming another network fragment by the other N0 nodes, and finally obtaining preset N network fragments, wherein the value of N can be set.
Specifically, the step of obtaining each preset segment of the preset network based on a preset first workload proof puzzle includes:
step S13, a second workload proof puzzle is preset, and a target directory service node corresponding to the preset network is selected;
in this embodiment, in order to ensure the authenticity and accuracy in the fragmentation process, a directory service node (which may be a selected block chain user with high reputation or a block node) corresponding to a preset network is further selected, and the authenticity in the fragmentation process is ensured through the directory service node. I.e., the directory service node, functions to assist in network fragmentation. Specifically, the network fragmentation can be realized in two steps: a part of specific nodes are selected as directory service nodes (called DS nodes for short, and the set of directory service nodes may be referred to as a final DS committee), and after the final DS committee is selected, the rest of block nodes or block chain user nodes of the default network are fragmented.
Wherein, the step of selecting the target directory service node corresponding to the preset network by presetting a second workload certification puzzle comprises:
step A1, randomly selecting a certain number of first service nodes from the preset network;
in this embodiment, the first service node is determined randomly, for example, 100 nodes are randomly selected from the block chain nodes in Shenzhen region as the first service node, and the initial DS committee is formed by the first service node.
Step A2, proving puzzles through a preset second workload, and selecting a plurality of second service nodes from the preset network in sequence within a preset time;
step a3, replacing the nodes in the first service node with the plurality of second service nodes one by one to obtain the target directory service node.
After the first service node is obtained, a plurality of second service nodes are successively selected from the preset network within a preset time through a preset second workload proof puzzle, and a plurality of second service nodes are successively selected from the block nodes or the block chain nodes of the preset network within a preset time through a preset second workload proof puzzle, wherein the process specifically comprises the following steps: block nodes or block chain nodes in the preset network area continuously try nonces (random numbers or random codes) to solve the POW2 puzzle (preset second workload proof puzzle), try nonces (random numbers) to solve the POW2 puzzle (preset second workload proof puzzle), namely the process of mining DS blocks, when a block node or block chain node obtains a valid nonce, a new DS block (including the result nonce of the POW2 puzzle) is created, and the result nonce including the POW2 puzzle is broadcasted to the initial DS committee. The initial DS committee node (the first service node) performs consensus verification on the DS block or block node and block link node (issue a nonce to solve the POW2 puzzle to other nodes to see whether it can really solve the POW2 puzzle), signs the block node or block link node if the verification passes, submits the block node or block link node to the DS block chain (belonging to the initial DS committee) when the block node or block link node is signed by the initial DS committee node exceeding 2/3, and updates the initial DS committee node after the DS block is submitted to the DS block chain to obtain an updated DS committee node.
Specifically, in order to ensure that the number of the DS committees is unchanged, a new DS node is added to the DS committees, and the oldest node in the DS committees is eliminated, that is, after a block node of the solution POW2 is obtained, a first service node is selected from the nodes in the initial DS committee and removed, and the DS block newly added to the DS committee is set as a leader of the DS committee.
Specifically, when a node digs a DS block (solves the puw 2 puzzle), there may be a situation where a plurality of block nodes or block chain users dig out DS blocks at the same time, and in order to handle such a conflict, when a new DS block is received, the received DS block is sorted from small to large according to the solution values n (which may be solution order) recorded in all DS blocks, and the maximum solution value n of the received DS block is recorded as nmax to avoid the conflict.
The updated DS committee node or the initial DS committee node performs consensus verification on the newly added DS blocks, specifically, after verification, each DS node or each DS block in the updated DS committee compares the solution problem value of the newly added DS block with its own solution problem value, and if the solution problem value of the newly added DS block is greater than or equal to the maximum solution problem value nmax of the updated DS committee DS node, the newly added DS block is also the leader of the DS committee, that is, in this embodiment, nmax is set as the leader of the updated DS committee or the initial DS committee, and this leader rotation mechanism avoids the absolute leader of the byzantine node from affecting the slice network. In this embodiment, after the initial DS committee is updated for a predetermined number of times or for a predetermined time, the DS committee is not updated any more, and the final DS committee is obtained.
Step S14, acquiring the number of nodes of processing nodes contained in each preset network fragment, acquiring each initial network fragment through a preset first workload proof puzzle and the number of the nodes, and acquiring a random code corresponding to each initial network fragment;
step S15, performing consensus verification on the random code through the target directory service node, and if the consensus verification passes, determining the initial network segment as each preset segment of the preset network.
Acquiring the number of nodes of processing nodes contained in each preset network fragment, such as n0, acquiring each initial network fragment through a preset first workload proving puzzle and the number of the nodes, and acquiring a random code corresponding to each initial network fragment. And after the random codes corresponding to each initial network fragment are obtained, respectively sending the random codes to a final DS committee, and verifying through the final DS committee. That is, whether the first workload puzzle can be truly solved when the random code corresponding to each initial network segment is verified, if yes, the verification is passed, and if not, the verification is not passed.
In this embodiment, the allocating the first transaction sub-data to the first target segment for processing, where the processing process of each first target segment on the first transaction sub-data may be: the method comprises the steps that first transaction subdata is recorded through block node competition in a first target fragment, after an F block node in the first target fragment is obtained through competition, the F block node broadcasts competition random codes obtained in the process of recording the first transaction subdata through competition to other nodes in the first target fragment, after other nodes are verified, a leader node (a block node or a block chain user node) in the first target fragment receives the competition random codes and packs the competition random codes into a TX block, the TX block is broadcasted to partial DS nodes of a DS committee, and the partial DS nodes broadcast the TX block in the DS committee to enable the TX block to reach a DS leader. It should be noted that, during the same time period, the DS committee leader (leader node) will combine the TX blocks received from each fragmentation network to form a final block (final block), and then execute a new round of consensus protocol in the DS committee (i.e. verify the correctness of the final block), specifically, the final block verified by the DS committee will contain an EC-Schnorr multiple signature signed by DS nodes above 2/3, after signing, the nodes in each fragmentation network verify the EC-Schnorr multiple signature of the final block by using the public key of the DS nodes, if the signature is verified and confirmed by nodes above 2/3n0, the next check is performed, such as checking the validity of transaction hash of the data header of the final block, and when the transaction content is verified and valid, the transaction content contained in the final block will be reconstructed, and then adding the updated account state and the global state to a transaction block chain locally corresponding to the corresponding block node, wherein the account state, the global state and the like are correspondingly recorded. If the transaction content fails to be verified, the node will temporarily reject the transaction that corresponds to the transaction that has not yet been determined.
In order to avoid the double-flower attack in the above process, in this embodiment, a transaction field value carried in the first transaction sub-data is further obtained, where the transaction field value records the total transaction initiating times of the transaction initiator account, and when a transaction is added to the transaction block chain, the transaction field value is increased, and if the transaction field value in the transaction (i.e., the number of transactions initiated by the transaction initiator account) is less than or equal to the transaction times recorded in the transaction block chain, which indicates that the transaction has been recorded in the transaction block chain, the transaction may be rejected.
Step S20, when second transaction subdata of the data transaction is received based on the preset block link, selecting a second target fragment from each fragment of the preset network, and distributing the second transaction subdata to the second target fragment for processing;
in this embodiment, when receiving second transaction sub-data of the data transaction based on the preset block link, a second target fragment is selected from the fragments of the preset network, and the second transaction sub-data is allocated to the second target fragment for processing. The processing procedure of the second target segment on the second transaction sub-data is similar to the processing procedure of the first target segment on the first transaction sub-data, and is not specifically described here.
Step S30, after the first transaction sub-data and the second transaction sub-data are processed, obtaining target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point, and sending the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point.
In this embodiment, after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly is obtained, and the target storage data is sent to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly, that is, in this embodiment, a decentralized data transaction system based on a blockchain obtains specific data transaction contents of the buyer blockchain user, searches for corresponding target storage data, and sends the target storage data to the buyer blockchain user.
When first transaction subdata of data transaction is received based on a preset block link, a first target fragment is selected from each preset fragment of a preset network, and the first transaction subdata is distributed to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle; when second transaction subdata of the data transaction is received based on the preset block link, selecting a second target fragment from each fragment of the preset network, and distributing the second transaction subdata to the second target fragment for processing; after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly are obtained, and the target storage data is sent to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly. In the application, when first transaction sub-data and second transaction sub-data of a data transaction are received based on a preset block link, corresponding first target fragments and corresponding second target fragments are selected from preset fragments of a preset network for processing, and the preset fragments of the preset network are obtained based on a preset first workload certification puzzle, that is, in the application, for the transaction based on a block chain, processing can be realized only by fragment consensus, so that the transaction processing efficiency is improved, target storage data of a seller block chain user to which the first transaction sub-data and the second transaction sub-data point commonly are obtained, and the target storage data is sent to the buyer block chain user to which the first transaction sub-data and the second transaction sub-data point commonly. The technical problem that the transaction efficiency of the existing data transaction based on the block chain is low is solved.
Further, based on the foregoing embodiment, the present invention provides another embodiment of a block chain-based decentralized data transaction method, where in this embodiment, when first transaction sub-data of a data transaction is received based on a preset block link, selecting a first target segment from preset segments of a preset network, and allocating the first transaction sub-data to the first target segment processing step includes:
step B1, obtaining an area file for indexing the target storage data, and linking the area file to a routing layer corresponding to a preset database for storing the target storage data through a preset link mechanism so as to link to the target storage data;
in this embodiment, an area file for indexing the target storage data is further obtained, where the area file is linked to a routing layer corresponding to a preset database storing the target storage data through a preset linking mechanism to link to the target storage data, that is, a main function of a current routing layer (routing subsystem) is to allow a virtual chain (or a virtual subsystem) to obtain a specific address of the storage data through the area file (zone file).
Specifically, the decentralized data transaction system based on the block chain acquires routing information of a zone file (zone file), the decentralized data transaction system based on the block chain forms a peer-to-peer network built based on a Distributed Hash Table (DHT) for storing the routing information, and the Distributed Hash Table (DHT) only stores routing information of the zone files which are declared with hash values in the block chain subsystem before, so that the zone files which can be put into the DHT can be quickly put into a white list.
Step B2, acquiring the data attribute information of the target storage data and the hash value of the zone file;
step B3, storing the data attribute information, the hash value of the zone file, and the target storage data into the preset block chain, so as to avoid tampering of the data transaction.
In this embodiment, in the data transaction process, a routing layer is not required to be trusted, that is, only the zone file is obtained through the routing layer, and then an address of the data storage is obtained, after the address of the data storage is obtained, the zone file and specific content (pre-stored) corresponding to target data in a preset database can be obtained, after the zone file in the preset database is obtained, the hash value of the zone file can be calculated, and the hash value is verified with the hash value of the zone file recorded in the transaction database of the virtual chain layer (so that the zone file in the routing layer is not required to be trusted). That is, in this embodiment, after the data attribute information of the target storage data and the hash value of the zone file are acquired, the data attribute information, the hash value of the zone file, and the target storage data are stored in the preset block chain, so as to avoid tampering of the data transaction.
Specifically, the transaction process may be: when a virtual chain (virtual chain subsystem) sends an address resolution request to a routing layer (routing subsystem), the routing subsystem will first find a corresponding area file according to the address resolution request. Then, through the region file, the URI of the specific storage position (such as common cloud end: https://, IPFS storage IPFS://, storj storage storj: /) of the corresponding data can be obtained, and then a data request is sent to the data subsystem through the URI.
The step of obtaining target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly after processing the first transaction sub-data and the second transaction sub-data, and sending the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly includes:
step C1, after the first transaction sub-data and the second transaction sub-data are processed, obtaining target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point together through the zone file index;
in this embodiment, after the first transaction sub-data and the second transaction sub-data are processed, that is, after the buyer blockchain user performs a payment operation through the blockchain (the seller blockchain user is used as a receiving address to transfer payment, and the private key of the buyer blockchain user is used to sign the data transaction of the payment operation, and after the validity of the data transaction of the payment operation is confirmed, the process blockchain records the payment information of the buyer blockchain user to the seller blockchain user), if the seller blockchain user confirms that the data transaction of the payment operation is completed through the blockchain (the buyer blockchain user is confirmed to transfer the data to the private address, and the password of the data stored in the target disk is encrypted and written into the blockchain by using the public key of the buyer blockchain user), the first transaction sub-data and the second transaction sub-data are processed, and after the first transaction sub-data and the second transaction sub-data are processed, and obtaining target storage data of the seller blockchain user pointed by the first transaction sub-data and the second transaction sub-data through the area file index, namely obtaining the target storage data through the area file index stored in the router subsystem. It should be noted that, all the above processes related to data transmission all involve encryption, that is, after a transaction occurs, in this embodiment, an identity-based encryption (IBE) mode is adopted to encrypt data transmission between two parties of the transaction, where IBE encryption is an asymmetric encryption, that is, different keys are used in the encryption and decryption processes: one is a public key and the other is a private key; one for encryption and the other for decryption. When a user of the blockchain registers in the system, a piece of information (such as an identification number) which is about to own and is only owned by the user needs to be selected as an identity identifier of the user, the identifier is used as a public key in IBE encryption to encrypt a key to be transmitted, and meanwhile, a corresponding private key is generated for the user of the blockchain by the decentralized data transaction system based on the blockchain, and the private key is used for decrypting a data key after purchasing data. When a transaction occurs, the provider of the data encrypts the data key using the data purchaser's identification information as a public key, and the encrypted data key is transmitted to the data purchaser. After obtaining the encrypted data and the encrypted data key, the data purchaser firstly decrypts the data key according to a private key generated by the data purchaser from the unique identification information, and then decrypts the data through the data key
Step C2, verifying the target storage data through the data attribute information stored in the preset block chain and the hash value of the zone file;
after target storage data is obtained, verifying the target storage data through the data attribute information stored in the preset block chain, such as the data body name and the hash value of the zone file, namely calculating the hash value of the zone file after the zone file in the preset database is obtained, verifying the hash value with the hash value of the zone file recorded in the transaction database of the virtual chain layer, and determining that the target storage data passes verification after the verification is passed.
Step C3, if the target storage data passes the verification, sending the target storage data to the buyer blockchain user pointed by the first transaction sub-data and the second transaction sub-data.
And if the target storage data passes the verification, the target storage data is sent to the buyer block chain user pointed by the first transaction sub-data and the second transaction sub-data together so as to be obtained by the buyer block chain user, and the safety of the data transaction process is improved.
In this embodiment, by acquiring a region file for indexing the target storage data, the region file is linked to a routing layer corresponding to a preset database storing the target storage data through a preset link mechanism so as to be linked to the target storage data; acquiring data attribute information of the target storage data and a hash value of the zone file; and storing the data attribute information, the hash value of the zone file and the target storage data into the preset block chain so as to avoid tampering of the data transaction. The embodiment ensures the safety of data transaction.
Further, based on the foregoing embodiment, the present invention provides another embodiment of a block chain-based decentralized data transaction method, in which the step of sending the target storage data to the buyer block chain user to which the first transaction sub-data and the second transaction sub-data are jointly directed includes:
step D1, obtaining first evaluation information of the buyer blockchain user on the target storage data and the seller blockchain user;
step D2, obtaining second evaluation information of the seller blockchain user to the buyer blockchain user;
in this embodiment, after the data transaction is completed, the buyer blockchain user and the seller blockchain user perform comprehensive feedback on the data transaction, that is, specifically, first evaluation information of the buyer blockchain user on the target storage data and the seller blockchain user is obtained, second evaluation information of the seller blockchain user on the buyer blockchain user is obtained, and the first evaluation information and the second evaluation information are synthesized to obtain comprehensive feedback information
Step D3, storing the first evaluation information and the second evaluation information into the preset block chain, and updating the credit values of the buyer and seller block chain users pre-stored in the preset block chain based on the first evaluation information and the second evaluation information.
And after the comprehensive feedback information is obtained, updating the credit values of the buyer blockchain users and the seller blockchain users based on the comprehensive feedback information to obtain the seller updated credit value and the buyer updated credit value. If the sub-feedback information of the buyer to the seller in the comprehensive feedback information matches with the preset positive feedback information, the credit value (general credit value +1) of the seller blockchain user is increased to obtain an updated credit value of the seller, and if the sub-feedback information of the seller to the buyer in the comprehensive feedback information matches with the preset positive feedback information, the credit value of the buyer blockchain user is increased to obtain an updated credit value (general credit value +1) of the buyer.
In the embodiment, the target storage data and the first evaluation information of the seller blockchain user are obtained by the buyer blockchain user; acquiring second evaluation information of the seller blockchain user on the buyer blockchain user; storing the first evaluation information and the second evaluation information into the preset block chain, and updating credit values of the buyer block chain users and the seller block chain users pre-stored in the preset block chain based on the first evaluation information and the second evaluation information. In the embodiment, bidirectional feedback is realized, and the quality of data transaction is ensured.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The decentralized data transaction device based on the block chain in the embodiment of the invention can be a PC, and can also be a terminal device such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 3, the block chain-based decentralized data transaction device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Optionally, the block chain-based decentralized data transaction device may further include a target user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. The target user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the selectable target user interfaces may also include standard wired interfaces, wireless interfaces. The network interface optionally may include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the blockchain based decentralized data transaction device architecture shown in fig. 3 does not constitute a limitation of blockchain based decentralized data transaction devices and may include more or fewer components than those shown, or combine certain components, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, and a blockchain-based decentralized data transaction program. The operating system is a program that manages and controls hardware and software resources of the blockchain-based decentralized data transaction device, and supports the operation of the blockchain-based decentralized data transaction program as well as other software and/or programs. The network communication module is used to implement communication between the components within the memory 1005 and with other hardware and software in the blockchain-based decentralized data transaction device.
In the data transaction apparatus based on block chain decentralized shown in fig. 3, the processor 1001 is configured to execute a data transaction program based on block chain decentralized stored in the memory 1005, so as to implement any of the steps of the data transaction method based on block chain decentralized described above.
The specific implementation of the decentralized data transaction device based on the block chain is basically the same as that of the decentralized data transaction method based on the block chain, and is not described herein again.
In addition, an embodiment of the present invention further provides a block chain-based decentralized data transaction apparatus, where the block chain-based decentralized data transaction apparatus includes:
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a first target fragment from all preset fragments of a preset network when first transaction subdata of data transaction is received based on a preset block link, and distributing the first transaction subdata to the first target fragment for processing, wherein all the preset fragments of the preset network are obtained based on a preset first workload certification puzzle;
the second selection module is used for selecting a second target fragment from each fragment of the preset network when second transaction subdata of the data transaction is received based on the preset block link, and distributing the second transaction subdata to the second target fragment for processing;
the first obtaining module is configured to, after processing the first transaction sub-data and the second transaction sub-data, obtain target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly, and send the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly.
Optionally, the first selecting module includes:
the first selection unit is used for selecting a target directory service node corresponding to the preset network through a preset second workload certification puzzle;
the first obtaining unit is used for obtaining the number of nodes of processing nodes contained in each preset network fragment, obtaining each initial network fragment through a preset first workload proving puzzle and the number of the nodes, and obtaining a random code corresponding to each initial network fragment;
and the determining unit is used for carrying out consensus verification on the random code through the target directory service node, and determining the initial network fragment as each preset fragment of the preset network if the consensus verification passes.
Optionally, the first selecting unit includes:
the first selection subunit is used for randomly selecting a certain number of first service nodes from the preset network;
the second selection subunit is used for sequentially selecting a plurality of second service nodes from the preset network within preset time through a preset second workload certification puzzle;
and the replacing subunit is used for replacing the nodes in the first service node with the plurality of second service nodes one by one to obtain the target directory service node.
Optionally, the block chain-based decentralized data transaction device includes:
a second obtaining module, configured to obtain an area file for indexing the target storage data, and link the area file to a routing layer corresponding to a preset database storing the target storage data through a preset link mechanism, so as to link the area file to the target storage data;
a third obtaining module, configured to obtain data attribute information of the target storage data and a hash value of the zone file;
and the storage module is used for storing the data attribute information, the hash value of the zone file and the target storage data into the preset block chain so as to avoid tampering of the data transaction.
Optionally, the first obtaining module includes:
the second obtaining unit is used for obtaining target storage data of a seller blockchain user pointed by the first transaction sub-data and the second transaction sub-data through the area file index after processing the first transaction sub-data and the second transaction sub-data;
the first verification unit is used for verifying the target storage data through the data attribute information stored in the preset block chain and the hash value of the zone file;
and the sending unit is used for sending the target storage data to a buyer block chain user pointed by the first transaction subdata and the second transaction subdata when the target storage data passes verification.
Optionally, the block chain-based decentralized data transaction device includes:
the fourth acquisition module is used for acquiring the target storage data of the buyer blockchain user and the first evaluation information of the seller blockchain user;
the fifth obtaining module is used for obtaining second evaluation information of the seller blockchain user to the buyer blockchain user;
and the updating module is used for storing the first evaluation information and the second evaluation information into the preset block chain and updating credit values of the buyer block chain users and the seller block chain users prestored in the preset block chain based on the first evaluation information and the second evaluation information.
Optionally, the first selecting module includes:
the third obtaining unit is used for obtaining address information carried by first transaction subdata when the first transaction subdata of data transaction is received based on a preset block link;
and the second selection unit is used for selecting the first target fragment from all preset fragments of the preset network according to the address information.
The specific implementation of the block chain based decentralized data transaction device is basically the same as that of the above block chain based decentralized data transaction method, and is not described herein again.
Furthermore, the present invention also provides a computer medium having one or more programs stored thereon that are executable by one or more processors for performing the steps of the embodiments of the above block chain based decentralized data transaction method.
The expanding contents of the specific implementation of the device and the medium (i.e., the computer medium) of the present invention are basically the same as those of the embodiments of the foregoing block chain-based decentralized data transaction method, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A block chain based decentralized data transaction method is characterized by comprising the following steps:
when first transaction subdata of data transaction is received based on a preset block link, selecting a first target fragment from each preset fragment of a preset network, and distributing the first transaction subdata to the first target fragment for processing, wherein each preset fragment of the preset network is obtained based on a preset first workload certification puzzle;
when second transaction subdata of the data transaction is received based on the preset block link, selecting a second target fragment from each fragment of the preset network, and distributing the second transaction subdata to the second target fragment for processing;
after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly are obtained, and the target storage data is sent to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly.
2. The blockchain-based decentralized data transaction method according to claim 1, wherein the step of obtaining each predetermined segment of the predetermined network based on a predetermined first workload certification puzzle comprises:
selecting a target directory service node corresponding to the preset network through a preset second workload certification puzzle;
acquiring the number of nodes of processing nodes contained in each preset network fragment, acquiring each initial network fragment through a preset first workload proof puzzle and the number of the nodes, and acquiring a random code corresponding to each initial network fragment;
and performing consensus verification on the random code through the target directory service node, and determining the initial network fragment as each preset fragment of the preset network if the consensus verification passes.
3. The blockchain-based decentralized data transaction method according to claim 2, wherein said step of selecting the target directory service node corresponding to the predetermined network through a predetermined second workload certification puzzle comprises:
randomly selecting a certain number of first service nodes from the preset network;
the puzzle is proved through a preset second workload, and a plurality of second service nodes are selected from the preset network in sequence within a preset time;
and replacing the nodes in the first service node with the plurality of second service nodes one by one to obtain the target directory service node.
4. The method for decentralized data transaction according to claim 1, wherein when receiving first transaction sub-data for data transaction based on a predetermined blockchain, selecting a first target segment from each predetermined segment of a predetermined network, and allocating the first transaction sub-data to the first target segment comprises:
acquiring an area file for indexing the target storage data, and linking the area file to a routing layer corresponding to a preset database for storing the target storage data through a preset link mechanism so as to link the area file to the target storage data;
acquiring data attribute information of the target storage data and a hash value of the zone file;
and storing the data attribute information, the hash value of the zone file and the target storage data into the preset block chain so as to avoid tampering of the data transaction.
5. The blockchain-based decentralized data transaction method according to claim 4, wherein the step of obtaining target storage data of the seller blockchain user to which the first transaction sub-data and the second transaction sub-data are commonly directed after processing the first transaction sub-data and the second transaction sub-data, and sending the target storage data to the buyer blockchain user to which the first transaction sub-data and the second transaction sub-data are commonly directed comprises:
after the first transaction sub-data and the second transaction sub-data are processed, target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point together are obtained through the area file index;
verifying the target storage data through the data attribute information stored in the preset block chain and the hash value of the zone file;
and if the target storage data passes the verification, sending the target storage data to a buyer block chain user pointed by the first transaction sub-data and the second transaction sub-data together.
6. The blockchain-based decentralized data transaction method according to claim 1, wherein the step of sending target storage data to the buyer blockchain user to which the first transaction sub-data and the second transaction sub-data are commonly directed is followed by:
acquiring first evaluation information of the buyer blockchain user on the target storage data and the seller blockchain user;
acquiring second evaluation information of the seller blockchain user on the buyer blockchain user;
storing the first evaluation information and the second evaluation information into the preset block chain, and updating credit values of the buyer block chain users and the seller block chain users pre-stored in the preset block chain based on the first evaluation information and the second evaluation information.
7. The method of claim 1, wherein the step of selecting the first target segment from the preset segments of the preset network when receiving the first transaction sub-data of the data transaction based on the preset blockchain comprises:
when first transaction subdata of data transaction is received based on a preset block link, address information carried by the first transaction subdata is obtained;
and selecting a first target fragment from all preset fragments of a preset network according to the address information.
8. A blockchain-based decentralized data transaction apparatus, characterized in that the blockchain-based decentralized data transaction apparatus comprises:
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a first target fragment from all preset fragments of a preset network when first transaction subdata of data transaction is received based on a preset block link, and distributing the first transaction subdata to the first target fragment for processing, wherein all the preset fragments of the preset network are obtained based on a preset first workload certification puzzle;
the second selection module is used for selecting a second target fragment from each fragment of the preset network when second transaction subdata of the data transaction is received based on the preset block link, and distributing the second transaction subdata to the second target fragment for processing;
the first obtaining module is configured to, after processing the first transaction sub-data and the second transaction sub-data, obtain target storage data of a seller blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly, and send the target storage data to a buyer blockchain user to which the first transaction sub-data and the second transaction sub-data point commonly.
9. A blockchain-based decentralized data transaction device, characterized in that the device comprises: memory, a processor and a blockchain based decentralized data transaction program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the blockchain based decentralized data transaction method according to any of claims 1 to 7.
10. A medium having stored thereon a blockchain based decentralized data transaction program, which when executed by a processor implements the steps of the blockchain based decentralized data transaction method according to any one of claims 1 to 7.
CN201911352243.0A 2019-12-24 2019-12-24 Block chain-based decentralization data transaction method, device, equipment and medium Active CN111127013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911352243.0A CN111127013B (en) 2019-12-24 2019-12-24 Block chain-based decentralization data transaction method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911352243.0A CN111127013B (en) 2019-12-24 2019-12-24 Block chain-based decentralization data transaction method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111127013A true CN111127013A (en) 2020-05-08
CN111127013B CN111127013B (en) 2023-12-29

Family

ID=70502201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911352243.0A Active CN111127013B (en) 2019-12-24 2019-12-24 Block chain-based decentralization data transaction method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111127013B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932263A (en) * 2020-10-10 2020-11-13 支付宝(杭州)信息技术有限公司 Data management method, device and equipment
CN111950025A (en) * 2020-08-21 2020-11-17 安徽高山科技有限公司 File distributed storage method based on block chain intelligent contract
CN112184454A (en) * 2020-11-09 2021-01-05 上海优扬新媒信息技术有限公司 Block chain consensus method, device, system and storage medium
CN113015973A (en) * 2020-06-17 2021-06-22 达闼机器人有限公司 Data processing method, storage medium, electronic device and data transaction system
CN113032484A (en) * 2021-03-16 2021-06-25 中国互联网络信息中心 Block chain-based data system congestion management method and system
CN113411376A (en) * 2021-05-12 2021-09-17 精英数智科技股份有限公司 Sensor data processing method and device based on block chain fragmentation storage
CN113553375A (en) * 2021-07-12 2021-10-26 华中科技大学 Partitioned storage device and method for schema block chain
CN113570461A (en) * 2021-07-23 2021-10-29 北京芯安微电子技术有限公司 User data transaction system based on block chain
WO2022143242A1 (en) * 2020-12-31 2022-07-07 杭州趣链科技有限公司 Blockchain-based transaction distribution executing method and apparatus, server, and storage medium
CN115292340A (en) * 2022-09-27 2022-11-04 国网数字科技控股有限公司 Block chain storage optimization method and device based on distributed network coding
WO2023070924A1 (en) * 2021-10-28 2023-05-04 湖南天河国云科技有限公司 Blockchain transaction processing method and system
CN116455904A (en) * 2023-06-12 2023-07-18 湖南天河国云科技有限公司 Block chain consensus method and system based on asynchronous network decentralization

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107819583A (en) * 2016-09-13 2018-03-20 渡边浩志 The anti-abuse technology of key
CN108881488A (en) * 2018-08-01 2018-11-23 夸克链科技(深圳)有限公司 It is a kind of based on the block chain transaction processing method and network that divide domain
CN109242456A (en) * 2018-09-04 2019-01-18 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, system and storage medium
WO2019019056A1 (en) * 2017-07-26 2019-01-31 杭州复杂美科技有限公司 Method for frontal machine to participate in block chain consensus
CN109379397A (en) * 2018-08-31 2019-02-22 阿里巴巴集团控股有限公司 Transaction common recognition processing method and processing device, electronic equipment based on block chain
CN109889504A (en) * 2019-01-23 2019-06-14 北京航空航天大学 Decentralization data access rights method of commerce and system
CN110287205A (en) * 2019-06-21 2019-09-27 中国银联股份有限公司 A kind of across the fragment transaction data processing method of block chain and device
CN110503560A (en) * 2019-09-27 2019-11-26 深圳市网心科技有限公司 Data trade method, data trade apparatus and system based on block chain
US20190370793A1 (en) * 2018-06-04 2019-12-05 Decentralized Finance Labs, Inc. Hybrid consensus for blockchain using proof of work and proof of stake

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819583A (en) * 2016-09-13 2018-03-20 渡边浩志 The anti-abuse technology of key
WO2019019056A1 (en) * 2017-07-26 2019-01-31 杭州复杂美科技有限公司 Method for frontal machine to participate in block chain consensus
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
US20190370793A1 (en) * 2018-06-04 2019-12-05 Decentralized Finance Labs, Inc. Hybrid consensus for blockchain using proof of work and proof of stake
CN108881488A (en) * 2018-08-01 2018-11-23 夸克链科技(深圳)有限公司 It is a kind of based on the block chain transaction processing method and network that divide domain
CN109379397A (en) * 2018-08-31 2019-02-22 阿里巴巴集团控股有限公司 Transaction common recognition processing method and processing device, electronic equipment based on block chain
CN109242456A (en) * 2018-09-04 2019-01-18 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, system and storage medium
CN109889504A (en) * 2019-01-23 2019-06-14 北京航空航天大学 Decentralization data access rights method of commerce and system
CN110287205A (en) * 2019-06-21 2019-09-27 中国银联股份有限公司 A kind of across the fragment transaction data processing method of block chain and device
CN110503560A (en) * 2019-09-27 2019-11-26 深圳市网心科技有限公司 Data trade method, data trade apparatus and system based on block chain

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113015973A (en) * 2020-06-17 2021-06-22 达闼机器人有限公司 Data processing method, storage medium, electronic device and data transaction system
CN111950025A (en) * 2020-08-21 2020-11-17 安徽高山科技有限公司 File distributed storage method based on block chain intelligent contract
CN111932263A (en) * 2020-10-10 2020-11-13 支付宝(杭州)信息技术有限公司 Data management method, device and equipment
CN112184454A (en) * 2020-11-09 2021-01-05 上海优扬新媒信息技术有限公司 Block chain consensus method, device, system and storage medium
CN112184454B (en) * 2020-11-09 2023-07-25 度小满科技(北京)有限公司 Block chain consensus method, device, system and storage medium
WO2022143242A1 (en) * 2020-12-31 2022-07-07 杭州趣链科技有限公司 Blockchain-based transaction distribution executing method and apparatus, server, and storage medium
CN113032484A (en) * 2021-03-16 2021-06-25 中国互联网络信息中心 Block chain-based data system congestion management method and system
CN113032484B (en) * 2021-03-16 2024-01-02 中国互联网络信息中心 Block chain-based data system congestion management method and system
CN113411376A (en) * 2021-05-12 2021-09-17 精英数智科技股份有限公司 Sensor data processing method and device based on block chain fragmentation storage
CN113553375B (en) * 2021-07-12 2022-07-01 华中科技大学 Partitioned storage device and method for image type block chain
CN113553375A (en) * 2021-07-12 2021-10-26 华中科技大学 Partitioned storage device and method for schema block chain
CN113570461A (en) * 2021-07-23 2021-10-29 北京芯安微电子技术有限公司 User data transaction system based on block chain
WO2023070924A1 (en) * 2021-10-28 2023-05-04 湖南天河国云科技有限公司 Blockchain transaction processing method and system
CN115292340A (en) * 2022-09-27 2022-11-04 国网数字科技控股有限公司 Block chain storage optimization method and device based on distributed network coding
CN115292340B (en) * 2022-09-27 2022-12-02 国网数字科技控股有限公司 Block chain storage optimization method and device based on distributed network coding
CN116455904A (en) * 2023-06-12 2023-07-18 湖南天河国云科技有限公司 Block chain consensus method and system based on asynchronous network decentralization
CN116455904B (en) * 2023-06-12 2023-09-05 湖南天河国云科技有限公司 Block chain consensus method and system based on asynchronous network decentralization

Also Published As

Publication number Publication date
CN111127013B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN111127013B (en) Block chain-based decentralization data transaction method, device, equipment and medium
CN112214780B (en) Data processing method and device, intelligent equipment and storage medium
JP7222036B2 (en) Model training system and method and storage medium
CN107396360B (en) Block verification method and device
CN111914027B (en) Block chain transaction keyword searchable encryption method and system
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
EP3720045A1 (en) Blockchain-based data verification method and apparatus, and electronic device
US20190057115A1 (en) Method and system for distributing digital content on peer-to-peer network
EP3903268B1 (en) Blockchain management system
TW202018571A (en) Data storage method and device based on block chain and electronic equipment
CN110619520B (en) Block chain system and routing method applied to routing nodes of block chain system
CN108769230B (en) Transaction data storage method, device, server and storage medium
CN112559993B (en) Identity authentication method, device and system and electronic equipment
CN110555029A (en) ticket management method and device based on block chain and storage medium
EP4002786B1 (en) Distributed ledger system
CN106899548B (en) IP address correction method and device
CN110995446B (en) Evidence verification method, device, server and storage medium
CN110837491A (en) Block chain financial big data processing system and method
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN109377220B (en) Block chain-based media data transaction method and system and computer storage medium
KR102286016B1 (en) System Providing Cloud Service Based on Blockchain
CN111460400A (en) Data processing method and device and computer readable storage medium
CN115906181A (en) Encrypted file right confirming method, device and system based on block chain attribute
CN117616410A (en) Multiparty computing in a computer slicing environment
JP2022532889A (en) Multiple input transactions

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